# Maintainer: Stuart Cardall # Contributor: Cameron Banta # Contributor: Jeff Bilyk # Contributor: Bartłomiej Piotrowski global pkgname := 'nginx-naxsi' global _pkgname := 'nginx' global pkgver := '1.11.10' global pkgrel := '1' global pkgdesc := '"Lightweight HTTP and reverse proxy server with Naxsi WAF support, see also 'nxapi''" global url := '"http://www.nginx.org | https://github.com/nbs-system/naxsi'" global arch := '"all'" global license := '"custom'" # Modules global _ngx_naxsi_name := 'naxsi' global _ngx_naxsi_ver := '0.55.3' global _ngx_naxsi_dir := ""$srcdir/$_ngx_naxsi_name-$_ngx_naxsi_ver/naxsi_src"" global _ngx_cache_purge_name := 'ngx_cache_purge' global _ngx_cache_purge_ver := '2.3.0.1' global _ngx_cache_purge_dir := ""$srcdir/$_ngx_cache_purge_name-$_ngx_cache_purge_ver"" global _ngx_upstream_fair_name := 'nginx-upstream-fair' global _ngx_upstream_fair_ver := '0.1.1' global _ngx_upstream_fair_dir := ""$srcdir/$_ngx_upstream_fair_name-$_ngx_upstream_fair_ver"" global _ngx_http_sysguard_name := 'tengine-http-sysguard' global _ngx_http_sysguard_ver := '2.2.0' global _ngx_http_sysguard_dir := ""$srcdir/$_ngx_http_sysguard_name-$_ngx_http_sysguard_ver"" global depends := '"!nginx'" global makedepends := '"linux-headers gd-dev geoip-dev libxml2-dev libxslt-dev libressl-dev pcre-dev perl-dev pkgconf zlib-dev'" global pkgusers := '"nginx'" global _grp_ngx := '"nginx'" global _grp_www := '"www-data'" global pkggroups := ""$_grp_ngx $_grp_www"" global install := ""$pkgname.pre-install $pkgname.pre-upgrade"" global options := '"!check'" global subpackages := ""$pkgname-doc"" global source := ""http://nginx.org/download/$_pkgname-$pkgver.tar.gz naxsi-$_ngx_naxsi_ver.tar.gz::https://github.com/nbs-system/$_ngx_naxsi_name/archive/$_ngx_naxsi_ver.tar.gz ngx_cache_purge-$_ngx_cache_purge_ver.tar.gz::https://github.com/itoffshore/$_ngx_cache_purge_name/archive/v$_ngx_cache_purge_ver.tar.gz upstream-fair-$_ngx_upstream_fair_ver.tar.gz::https://github.com/itoffshore/$_ngx_upstream_fair_name/archive/v$_ngx_upstream_fair_ver.tar.gz sysguard-$_ngx_http_sysguard_ver.tar.gz::https://github.com/itoffshore/$_ngx_http_sysguard_name/archive/v$_ngx_http_sysguard_ver.tar.gz anonymise.patch ipv6.patch sysguard.patch nginx.initd nginx.logrotate nginx.conf default.conf "" global builddir := ""$srcdir"/$_pkgname-$pkgver" global _modules_dir := '"usr/lib/nginx/modules'" global _modules := '" http-geoip http-image-filter http-perl http-xslt-filter mail stream http-naxsi http-cache-purge http-upstream-fair http-sysguard '" for _m in [$_modules] { global subpackages := ""$subpackages $pkgname-mod-$_m:_module"" } proc build { cd $builddir ./configure \ --prefix=/var/lib/$_pkgname \ --sbin-path=/usr/sbin/$_pkgname \ --modules-path=/$_modules_dir \ --conf-path=/etc/$_pkgname/$_pkgname.conf \ --pid-path=/run/$_pkgname/$_pkgname.pid \ --lock-path=/run/$_pkgname/$_pkgname.lock \ --error-log-path=/var/log/$_pkgname/error.log \ --http-log-path=/var/log/$_pkgname/access.log \ --http-client-body-temp-path=/var/lib/$_pkgname/tmp/client_body \ --http-proxy-temp-path=/var/lib/$_pkgname/tmp/proxy \ --http-fastcgi-temp-path=/var/lib/$_pkgname/tmp/fastcgi \ --with-perl_modules_path=/usr/lib/perl5/vendor_perl \ \ --user=$pkgusers \ --group=$_grp_ngx \ --with-threads \ --with-file-aio \ --without-http_uwsgi_module \ --without-http_scgi_module \ \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_auth_request_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-http_stub_status_module \ --with-http_xslt_module=dynamic \ --with-http_image_filter_module=dynamic \ --with-http_geoip_module=dynamic \ --with-http_perl_module=dynamic \ --with-mail=dynamic \ --with-mail_ssl_module \ --with-stream=dynamic \ --with-stream_ssl_module \ \ --add-dynamic-module="$_ngx_naxsi_dir" \ --add-dynamic-module="$_ngx_cache_purge_dir" \ --add-dynamic-module="$_ngx_upstream_fair_dir" \ --add-dynamic-module="$_ngx_http_sysguard_dir" \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README cd $pkgdir install -Dm644 "$srcdir"/nginx.conf ./etc/$_pkgname/nginx.conf install -Dm644 "$srcdir"/default.conf ./etc/$_pkgname/conf.d/default.conf install -m755 -D "$srcdir"/$_pkgname.initd ./etc/init.d/$_pkgname install -m644 -D "$srcdir"/$_pkgname.logrotate ./etc/logrotate.d/$_pkgname install -m644 -D "$srcdir"/naxsi-$_ngx_naxsi_ver/naxsi_config/naxsi_core.rules ./etc/nginx/naxsi_core.rules install -dm755 ./etc/$_pkgname/modules install -dm750 -o $pkgusers -g $_grp_ngx ./var/lib/$_pkgname install -dm700 -o $pkgusers -g $_grp_ngx ./var/lib/$_pkgname/tmp ln -sf /$_modules_dir ./var/lib/$_pkgname/modules ln -sf /var/log/$_pkgname ./var/lib/$_pkgname/logs ln -sf /run/$_pkgname ./var/lib/$_pkgname/run rm -rf ./run ./etc/$_pkgname/*.default # scgi & uwsgi servers are disabled rm ./etc/$_pkgname/scgi_params ./etc/$_pkgname/uwsgi_params } proc _module { var name = $(subpkgname#$pkgname-mod-) name := $(name//-/_) global soname := ""ngx_$(name)_module.so"" global pkgdesc := ""$pkgdesc (module $name)"" global depends := ""!nginx-mod-$name"" global provides := $name mkdir -p "$subpkgdir"/$_modules_dir cd $subpkgdir mv "$pkgdir"/$_modules_dir/$soname ./$_modules_dir/$soname || return 1 mkdir -p "$subpkgdir"/etc/nginx/modules echo "load_module \"modules/$soname\";" > ./etc/nginx/modules/$name.conf } global sha512sums := '"b6437d8305547a834a0f3ad076ac591b90189eb922f48759094efaa9618e39fc249600ab13650113fe841fc9af0b736acc61a9b9baba7bacd35224c34df1bbc9 nginx-1.11.10.tar.gz 9e8f41a5cd1342cc9b8aa334a603842d14a256aab1f4a21205bb1278aecbb0c49e39c889d8113a5b41aad2efeaa2ed9f11cba6929173f50add91f54c4c59c8a0 naxsi-0.55.3.tar.gz c49c81dbdb8bd507fccf31295e603cea8f0a964867c27eff0436dcea3b4a547c8ae2f11ecf49c4d82c693cf8138c17ebbed395738539d0d61254951e5f0db7e3 ngx_cache_purge-2.3.0.1.tar.gz fd305b859c868ef55171b05f64071a2836c12073bcd89d6197af4946a3d1177f77c6708d4d589d460c84967273dee87ca9de97ab0f0d47e6d65f86b465d70316 upstream-fair-0.1.1.tar.gz 2743d9aea60bd4984b650213e571cf27e6ff5b3db708242ccb53b8fc669d1cc82ee224ba79aee2f6969b6e13821cfdd3df7b412541e1fdbb867ecc95326e07e1 sysguard-2.2.0.tar.gz 1117ca5887822e002d9995c041435fda53890614fd7309ea011a59bfb0df3261fc7ba8670e93aaee9116cda16b9806921a85f52c9959b093f2e5ac5df4d9b0fb anonymise.patch cae9f842c3d1188730d4355440476ad2338b19c027c4b329efe88d4487e90d96bf60dea6feb4be6a6f96d4b356fc154345e32c2bb643d70f68e428df26330a49 ipv6.patch 2dca2ac74fb92e330fde7b6b6120b2fd2565c377a629c9536cf77beebe41aa4b092d4229d5b487b0fb02be4f2cc5b897c429c87bbbbc7b0d31e1cbb94231ddce sysguard.patch e0784764d509589a9626e20bd800787583573314293caf0ebc135bbfc50346f86847d4a93b91cb01d7b8f6e1b00285569ae8088e35ed9bc3ae8278cad3ba320e nginx.initd 01b77cff16f6e8bfd7fa1d4d20f625bbcddd08f0509173452d060c342c93dc315a7b0560f4734323a5d29ea294de0491f2e3f32e5337574e1a28ebc005eceea8 nginx.logrotate a1a1d9dbd65955b458d17918138fc65bf8990c46909ef43940b1633458c8f119eb485939179b6a9a3dac0c3b58c1eb0c5aec44e7b25ea7a34969c4a0807d4788 nginx.conf 9bd5145762a5040a6b5494d31f216d1db7c52921142275f26eed67aff746270526caad8e34eae65ec6390975ce603b35f6add05eb857f1670bf28ab5049b97d8 default.conf'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(nginx-naxsi)} spids:[13])] spids: [13] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(nginx)} spids:[16])] spids: [16] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.11.10)} spids:[19])] spids: [19] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[22])] spids: [22] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: { (DQ ( "Lightweight HTTP and reverse proxy server with Naxsi WAF support, see also 'nxapi'" ) ) } spids: [25] ) ] spids: [25] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.nginx.org | https://github.com/nbs-system/naxsi"))} spids: [30] ) ] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (custom))} spids:[40])] spids: [40] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_ngx_naxsi_name) op:Equal rhs:{(naxsi)} spids:[49])] spids: [49] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_ngx_naxsi_ver) op:Equal rhs:{(0.55.3)} spids:[52])] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_naxsi_dir) op: Equal rhs: { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_ngx_naxsi_name") (-) ($ VSub_Name "$_ngx_naxsi_ver") (/naxsi_src) ) } spids: [55] ) ] spids: [55] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_cache_purge_name) op: Equal rhs: {(ngx_cache_purge)} spids: [66] ) ] spids: [66] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_cache_purge_ver) op: Equal rhs: {(2.3.0.1)} spids: [69] ) ] spids: [69] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_cache_purge_dir) op: Equal rhs: { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_ngx_cache_purge_name") (-) ($ VSub_Name "$_ngx_cache_purge_ver") ) } spids: [72] ) ] spids: [72] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_upstream_fair_name) op: Equal rhs: {(nginx-upstream-fair)} spids: [82] ) ] spids: [82] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_upstream_fair_ver) op: Equal rhs: {(0.1.1)} spids: [85] ) ] spids: [85] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_upstream_fair_dir) op: Equal rhs: { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_ngx_upstream_fair_name") (-) ($ VSub_Name "$_ngx_upstream_fair_ver") ) } spids: [88] ) ] spids: [88] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_http_sysguard_name) op: Equal rhs: {(tengine-http-sysguard)} spids: [98] ) ] spids: [98] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_http_sysguard_ver) op: Equal rhs: {(2.2.0)} spids: [101] ) ] spids: [101] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_ngx_http_sysguard_dir) op: Equal rhs: { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_ngx_http_sysguard_name") (-) ($ VSub_Name "$_ngx_http_sysguard_ver") ) } spids: [104] ) ] spids: [104] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ ("!nginx"))} spids:[114])] spids: [114] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("linux-headers gd-dev geoip-dev libxml2-dev libxslt-dev libressl-dev\n") ("\tpcre-dev perl-dev pkgconf zlib-dev") ) } spids: [119] ) ] spids: [119] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgusers) op:Equal rhs:{(DQ (nginx))} spids:[125])] spids: [125] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_grp_ngx) op:Equal rhs:{(DQ (nginx))} spids:[130])] spids: [130] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_grp_www) op:Equal rhs:{(DQ (www-data))} spids:[135])] spids: [135] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkggroups) op: Equal rhs: {(DQ ($ VSub_Name "$_grp_ngx") (" ") ($ VSub_Name "$_grp_www"))} spids: [140] ) ] spids: [140] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:install) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (".pre-install ") ($ VSub_Name "$pkgname") (.pre-upgrade))} spids: [147] ) ] spids: [147] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ ("!check"))} spids:[155])] spids: [155] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [160] ) ] spids: [160] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://nginx.org/download/") ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tnaxsi-") ($ VSub_Name "$_ngx_naxsi_ver") (".tar.gz::https://github.com/nbs-system/") ($ VSub_Name "$_ngx_naxsi_name") (/archive/) ($ VSub_Name "$_ngx_naxsi_ver") (".tar.gz\n") ("\tngx_cache_purge-") ($ VSub_Name "$_ngx_cache_purge_ver") (".tar.gz::https://github.com/itoffshore/") ($ VSub_Name "$_ngx_cache_purge_name") (/archive/v) ($ VSub_Name "$_ngx_cache_purge_ver") (".tar.gz\n") ("\tupstream-fair-") ($ VSub_Name "$_ngx_upstream_fair_ver") (".tar.gz::https://github.com/itoffshore/") ($ VSub_Name "$_ngx_upstream_fair_name") (/archive/v) ($ VSub_Name "$_ngx_upstream_fair_ver") (".tar.gz\n") ("\tsysguard-") ($ VSub_Name "$_ngx_http_sysguard_ver") (".tar.gz::https://github.com/itoffshore/") ($ VSub_Name "$_ngx_http_sysguard_name") (/archive/v) ($ VSub_Name "$_ngx_http_sysguard_ver") (".tar.gz\n") ("\n") ("\tanonymise.patch\n") ("\tipv6.patch\n") ("\tsysguard.patch\n") ("\n") ("\tnginx.initd\n") ("\tnginx.logrotate\n") ("\tnginx.conf\n") ("\tdefault.conf\n") ("\t") ) } spids: [166] ) ] spids: [166] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} spids: [213] ) ] spids: [213] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_modules_dir) op: Equal rhs: {(DQ (usr/lib/nginx/modules))} spids: [223] ) ] spids: [223] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_modules) op: Equal rhs: { (DQ ("\n") ("\thttp-geoip\n") ("\thttp-image-filter\n") ("\thttp-perl\n") ("\thttp-xslt-filter\n") ("\tmail\n") ("\tstream\n") ("\thttp-naxsi\n") ("\thttp-cache-purge\n") ("\thttp-upstream-fair\n") ("\thttp-sysguard\n") ("\t") ) } spids: [228] ) ] spids: [228] ) (ForEach iter_name: _m iter_words: [{($ VSub_Name "$_modules")}] do_arg_iter: False body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: { (DQ ($ VSub_Name "$subpackages") (" ") ($ VSub_Name "$pkgname") (-mod-) ($ VSub_Name "$_m") (":_module") ) } spids: [257] ) ] spids: [257] ) ] spids: [254 267] ) spids: [250 252] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./configure)} {(--prefix) (Lit_Other "=") (/var/lib/) ($ VSub_Name "$_pkgname")} {(--sbin-path) (Lit_Other "=") (/usr/sbin/) ($ VSub_Name "$_pkgname")} {(--modules-path) (Lit_Other "=") (/) ($ VSub_Name "$_modules_dir")} {(--conf-path) (Lit_Other "=") (/etc/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (.conf) } {(--pid-path) (Lit_Other "=") (/run/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (.pid)} {(--lock-path) (Lit_Other "=") (/run/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (.lock) } {(--error-log-path) (Lit_Other "=") (/var/log/) ($ VSub_Name "$_pkgname") (/error.log)} {(--http-log-path) (Lit_Other "=") (/var/log/) ($ VSub_Name "$_pkgname") (/access.log) } {(--http-client-body-temp-path) (Lit_Other "=") (/var/lib/) ($ VSub_Name "$_pkgname") (/tmp/client_body) } {(--http-proxy-temp-path) (Lit_Other "=") (/var/lib/) ($ VSub_Name "$_pkgname") (/tmp/proxy)} {(--http-fastcgi-temp-path) (Lit_Other "=") (/var/lib/) ($ VSub_Name "$_pkgname") (/tmp/fastcgi) } {(--with-perl_modules_path) (Lit_Other "=") (/usr/lib/perl5/vendor_perl)} {(--user) (Lit_Other "=") ($ VSub_Name "$pkgusers")} {(--group) (Lit_Other "=") ($ VSub_Name "$_grp_ngx")} {(--with-threads)} {(--with-file-aio)} {(--without-http_uwsgi_module)} {(--without-http_scgi_module)} {(--with-http_ssl_module)} {(--with-http_v2_module)} {(--with-http_realip_module)} {(--with-http_addition_module)} {(--with-http_sub_module)} {(--with-http_dav_module)} {(--with-http_flv_module)} {(--with-http_mp4_module)} {(--with-http_gunzip_module)} {(--with-http_gzip_static_module)} {(--with-http_auth_request_module)} {(--with-http_random_index_module)} {(--with-http_secure_link_module)} {(--with-http_slice_module)} {(--with-http_stub_status_module)} {(--with-http_xslt_module) (Lit_Other "=") (dynamic)} {(--with-http_image_filter_module) (Lit_Other "=") (dynamic)} {(--with-http_geoip_module) (Lit_Other "=") (dynamic)} {(--with-http_perl_module) (Lit_Other "=") (dynamic)} {(--with-mail) (Lit_Other "=") (dynamic)} {(--with-mail_ssl_module)} {(--with-stream) (Lit_Other "=") (dynamic)} {(--with-stream_ssl_module)} {(--add-dynamic-module) (Lit_Other "=") (DQ ($ VSub_Name "$_ngx_naxsi_dir"))} {(--add-dynamic-module) (Lit_Other "=") (DQ ($ VSub_Name "$_ngx_cache_purge_dir"))} {(--add-dynamic-module) (Lit_Other "=") (DQ ($ VSub_Name "$_ngx_upstream_fair_dir"))} {(--add-dynamic-module) (Lit_Other "=") (DQ ($ VSub_Name "$_ngx_http_sysguard_dir"))} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [275] ) spids: [271 274] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(install)} {(-Dm644)} {(LICENSE)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/licenses/) ($ VSub_Name "$pkgname") (/LICENSE)} ) (C {(install)} {(-Dm644)} {(README)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/doc/) ($ VSub_Name "$pkgname") (/README)} ) (C {(cd)} {(DQ ($ VSub_Name "$pkgdir"))}) (C {(install)} {(-Dm644)} {(DQ ($ VSub_Name "$srcdir")) (/nginx.conf)} {(./etc/) ($ VSub_Name "$_pkgname") (/nginx.conf)} ) (C {(install)} {(-Dm644)} {(DQ ($ VSub_Name "$srcdir")) (/default.conf)} {(./etc/) ($ VSub_Name "$_pkgname") (/conf.d/default.conf)} ) (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (.initd)} {(./etc/init.d/) ($ VSub_Name "$_pkgname")} ) (C {(install)} {(-m644)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (.logrotate)} {(./etc/logrotate.d/) ($ VSub_Name "$_pkgname")} ) (C {(install)} {(-m644)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/naxsi-) ($ VSub_Name "$_ngx_naxsi_ver") (/naxsi_config/naxsi_core.rules) } {(./etc/nginx/naxsi_core.rules)} ) (C {(install)} {(-dm755)} {(./etc/) ($ VSub_Name "$_pkgname") (/modules)}) (C {(install)} {(-dm750)} {(-o)} {($ VSub_Name "$pkgusers")} {(-g)} {($ VSub_Name "$_grp_ngx")} {(./var/lib/) ($ VSub_Name "$_pkgname")} ) (C {(install)} {(-dm700)} {(-o)} {($ VSub_Name "$pkgusers")} {(-g)} {($ VSub_Name "$_grp_ngx")} {(./var/lib/) ($ VSub_Name "$_pkgname") (/tmp)} ) (C {(ln)} {(-sf)} {(/) ($ VSub_Name "$_modules_dir")} {(./var/lib/) ($ VSub_Name "$_pkgname") (/modules)} ) (C {(ln)} {(-sf)} {(/var/log/) ($ VSub_Name "$_pkgname")} {(./var/lib/) ($ VSub_Name "$_pkgname") (/logs)} ) (C {(ln)} {(-sf)} {(/run/) ($ VSub_Name "$_pkgname")} {(./var/lib/) ($ VSub_Name "$_pkgname") (/run)} ) (C {(rm)} {(-rf)} {(./run)} {(./etc/) ($ VSub_Name "$_pkgname") (/) (Lit_Other "*") (.default)} ) (C {(rm)} {(./etc/) ($ VSub_Name "$_pkgname") (/scgi_params)} {(./etc/) ($ VSub_Name "$_pkgname") (/uwsgi_params)} ) ] spids: [578] ) spids: [574 577] ) (FuncDef name: _module body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:name) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id: VOp1_Pound arg_word: {($ VSub_Name "$pkgname") (-mod-)} ) spids: [837 842] ) ) } spids: [835] ) ] spids: [833] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:name) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (PatSub pat: {(-)} replace: {(_)} do_all: True do_prefix: False do_suffix: False ) spids: [848 855] ) ) } spids: [846] ) ] spids: [846] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:soname) op: Equal rhs: {(DQ (ngx_) (${ VSub_Name name) (_module.so))} spids: [859] ) ] spids: [859] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ($ VSub_Name "$pkgdesc") (" (module ") ($ VSub_Name "$name") (")"))} spids: [870] ) ] spids: [870] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("!nginx-mod-") ($ VSub_Name "$name"))} spids: [879] ) ] spids: [879] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:provides) op: Equal rhs: {(DQ ($ VSub_Name "$name"))} spids: [886] ) ] spids: [886] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$_modules_dir")}) (C {(cd)} {(DQ ($ VSub_Name "$subpkgdir"))}) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/) ($ VSub_Name "$_modules_dir") (/) ($ VSub_Name "$soname") } {(./) ($ VSub_Name "$_modules_dir") (/) ($ VSub_Name "$soname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/nginx/modules)}) (SimpleCommand words: [ {(echo)} { (DQ ("load_module ") (EscapedLiteralPart token:) (modules/) ($ VSub_Name "$soname") (EscapedLiteralPart token:) (";") ) } ] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(./etc/nginx/modules/) ($ VSub_Name "$name") (.conf)} spids: [955] ) ] ) ] spids: [830] ) spids: [826 829] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "b6437d8305547a834a0f3ad076ac591b90189eb922f48759094efaa9618e39fc249600ab13650113fe841fc9af0b736acc61a9b9baba7bacd35224c34df1bbc9 nginx-1.11.10.tar.gz\n" ) ( "9e8f41a5cd1342cc9b8aa334a603842d14a256aab1f4a21205bb1278aecbb0c49e39c889d8113a5b41aad2efeaa2ed9f11cba6929173f50add91f54c4c59c8a0 naxsi-0.55.3.tar.gz\n" ) ( "c49c81dbdb8bd507fccf31295e603cea8f0a964867c27eff0436dcea3b4a547c8ae2f11ecf49c4d82c693cf8138c17ebbed395738539d0d61254951e5f0db7e3 ngx_cache_purge-2.3.0.1.tar.gz\n" ) ( "fd305b859c868ef55171b05f64071a2836c12073bcd89d6197af4946a3d1177f77c6708d4d589d460c84967273dee87ca9de97ab0f0d47e6d65f86b465d70316 upstream-fair-0.1.1.tar.gz\n" ) ( "2743d9aea60bd4984b650213e571cf27e6ff5b3db708242ccb53b8fc669d1cc82ee224ba79aee2f6969b6e13821cfdd3df7b412541e1fdbb867ecc95326e07e1 sysguard-2.2.0.tar.gz\n" ) ( "1117ca5887822e002d9995c041435fda53890614fd7309ea011a59bfb0df3261fc7ba8670e93aaee9116cda16b9806921a85f52c9959b093f2e5ac5df4d9b0fb anonymise.patch\n" ) ( "cae9f842c3d1188730d4355440476ad2338b19c027c4b329efe88d4487e90d96bf60dea6feb4be6a6f96d4b356fc154345e32c2bb643d70f68e428df26330a49 ipv6.patch\n" ) ( "2dca2ac74fb92e330fde7b6b6120b2fd2565c377a629c9536cf77beebe41aa4b092d4229d5b487b0fb02be4f2cc5b897c429c87bbbbc7b0d31e1cbb94231ddce sysguard.patch\n" ) ( "e0784764d509589a9626e20bd800787583573314293caf0ebc135bbfc50346f86847d4a93b91cb01d7b8f6e1b00285569ae8088e35ed9bc3ae8278cad3ba320e nginx.initd\n" ) ( "01b77cff16f6e8bfd7fa1d4d20f625bbcddd08f0509173452d060c342c93dc315a7b0560f4734323a5d29ea294de0491f2e3f32e5337574e1a28ebc005eceea8 nginx.logrotate\n" ) ( "a1a1d9dbd65955b458d17918138fc65bf8990c46909ef43940b1633458c8f119eb485939179b6a9a3dac0c3b58c1eb0c5aec44e7b25ea7a34969c4a0807d4788 nginx.conf\n" ) ( "9bd5145762a5040a6b5494d31f216d1db7c52921142275f26eed67aff746270526caad8e34eae65ec6390975ce603b35f6add05eb857f1670bf28ab5049b97d8 default.conf" ) ) } spids: [964] ) ] spids: [964] ) ] )