wok annotate nginx-extras/receipt @ rev 23237
updated nginx and nginx-extras (1.9.4 -> 1.16.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 08:10:44 2020 +0100 (2020-03-25) |
parents | c83afd3687bf |
children | 2e9639a37ee1 |
rev | line source |
---|---|
nneul@18379 | 1 # SliTaz package receipt. |
nneul@18379 | 2 |
nneul@18379 | 3 PACKAGE="nginx-extras" |
Hans-G?nter@23237 | 4 VERSION="1.16.0" |
nneul@18379 | 5 CATEGORY="network" |
Hans-G?nter@23237 | 6 SHORT_DESC="Asynchronous HTTP server designed for heavy loads and mail proxy." |
nneul@18379 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
nneul@18379 | 8 LICENSE="BSD" |
Hans-G?nter@23237 | 9 WEB_SITE="http://nginx.org/" |
Hans-G?nter@23237 | 10 |
Hans-G?nter@23237 | 11 TARBALL="nginx-$VERSION.tar.gz" |
Hans-G?nter@23237 | 12 WGET_URL="${WEB_SITE}download//$TARBALL" |
Hans-G?nter@23237 | 13 |
Hans-G?nter@23237 | 14 PROVIDE="lighttpd" |
Hans-G?nter@23237 | 15 CONFLICT="nginx" |
nneul@18379 | 16 SUGGESTED="php perl python" |
Hans-G?nter@23237 | 17 DEPENDS="geoip libgd libxslt openssl pcre zlib" |
Hans-G?nter@23237 | 18 BUILD_DEPENDS="geoip-dev libgd-dev libxslt-dev openssl-dev pcre-dev |
Hans-G?nter@23237 | 19 tiff zlib-dev" |
Hans-G?nter@23237 | 20 |
nneul@18379 | 21 CONFIG_FILES="/etc/nginx" |
nneul@18379 | 22 |
nneul@18379 | 23 # Rules to configure and make the package. |
nneul@18379 | 24 compile_rules() |
nneul@18379 | 25 { |
Hans-G?nter@23237 | 26 ./configure \ |
Hans-G?nter@23237 | 27 --prefix=/usr \ |
Hans-G?nter@23237 | 28 --conf-path=/etc/nginx/nginx.conf \ |
Hans-G?nter@23237 | 29 --pid-path=/var/run/nginx.pid \ |
Hans-G?nter@23237 | 30 --lock-path=/var/lock/nginx.lock \ |
Hans-G?nter@23237 | 31 --error-log-path=/var/log/nginx/error.log \ |
Hans-G?nter@23237 | 32 --http-log-path=/var/log/nginx/access.log \ |
Hans-G?nter@23237 | 33 --http-client-body-temp-path=/var/spool/nginx/body \ |
Hans-G?nter@23237 | 34 --http-proxy-temp-path=/var/spool/nginx/proxy \ |
Hans-G?nter@23237 | 35 --http-fastcgi-temp-path=/var/spool/nginx/fastcgi \ |
Hans-G?nter@23237 | 36 --with-http_ssl_module \ |
Hans-G?nter@23237 | 37 --with-http_spdy_module \ |
Hans-G?nter@23237 | 38 --with-http_realip_module \ |
Hans-G?nter@23237 | 39 --with-http_addition_module \ |
Hans-G?nter@23237 | 40 --with-http_xslt_module \ |
Hans-G?nter@23237 | 41 --with-http_image_filter_module \ |
Hans-G?nter@23237 | 42 --with-http_geoip_module \ |
Hans-G?nter@23237 | 43 --with-http_sub_module \ |
Hans-G?nter@23237 | 44 --with-http_dav_module \ |
Hans-G?nter@23237 | 45 --with-http_flv_module \ |
Hans-G?nter@23237 | 46 --with-http_mp4_module \ |
Hans-G?nter@23237 | 47 --with-http_gunzip_module \ |
Hans-G?nter@23237 | 48 --with-http_gzip_static_module \ |
Hans-G?nter@23237 | 49 --with-http_auth_request_module \ |
Hans-G?nter@23237 | 50 --with-http_random_index_module \ |
Hans-G?nter@23237 | 51 --with-http_secure_link_module \ |
Hans-G?nter@23237 | 52 --with-http_degradation_module \ |
Hans-G?nter@23237 | 53 --with-http_stub_status_module \ |
Hans-G?nter@23237 | 54 --with-mail \ |
Hans-G?nter@23237 | 55 --with-mail_ssl_module \ |
Hans-G?nter@23237 | 56 --with-stream \ |
Hans-G?nter@23237 | 57 --with-stream_ssl_module \ |
Hans-G?nter@23237 | 58 --with-pcre \ |
Hans-G?nter@23237 | 59 --with-pcre-jit \ |
Hans-G?nter@23237 | 60 --with-http_perl_module \ |
Hans-G?nter@23237 | 61 --user=80 \ |
Hans-G?nter@23237 | 62 --group=80 && |
nneul@18379 | 63 make && |
nneul@18379 | 64 make DESTDIR=$DESTDIR install |
nneul@18379 | 65 |
al@18741 | 66 # not yet available - perftools dep lib |
al@18741 | 67 #--with-google_perftools_module \ |
nneul@18379 | 68 } |
nneul@18379 | 69 |
nneul@18379 | 70 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18379 | 71 # On SliTaz Lighttpd runs as user/group : www/www or 80/80. |
nneul@18379 | 72 genpkg_rules() |
nneul@18379 | 73 { |
Hans-G?nter@23237 | 74 cp -a $install/* $fs |
Hans-G?nter@23237 | 75 rm -rf $fs/usr/html |
Hans-G?nter@23237 | 76 cp -a stuff/* $fs |
Hans-G?nter@23237 | 77 sed -i 's/#user nobody;/user www;/' \ |
Hans-G?nter@23237 | 78 $fs/etc/nginx/nginx.conf |
nneul@18379 | 79 } |
nneul@18379 | 80 |
nneul@18379 | 81 # Pre and post install commands for Tazpkg. |
nneul@18379 | 82 # We stop the server by default in case of upgarde. |
nneul@18379 | 83 pre_install() |
nneul@18379 | 84 { |
Hans-G?nter@23237 | 85 [ -f /etc/init.d/$PACKAGE ] && |
Hans-G?nter@23237 | 86 /etc/init.d/$PACKAGE stop |
Hans-G?nter@23237 | 87 |
Hans-G?nter@23237 | 88 # Backup configuration file. |
Hans-G?nter@23237 | 89 if [ -d "$1/$CONFIG_FILES" ] |
Hans-G?nter@23237 | 90 then |
pascal@18730 | 91 cp -a "$1/$CONFIG_FILES" "$1/$CONFIG_FILES.bak" |
al@18741 | 92 fi |
nneul@18379 | 93 } |
al@18741 | 94 |
nneul@18379 | 95 post_install() |
nneul@18379 | 96 { |
al@18741 | 97 mkdir -p /var/spool/nginx |
al@18741 | 98 |
Hans-G?nter@23237 | 99 # Restore original configuration. |
Hans-G?nter@23237 | 100 if [ -d "$1/$CONFIG_FILES.bak" ] |
Hans-G?nter@23237 | 101 then |
pascal@18730 | 102 rm -rf "$1/$CONFIG_FILES" |
pascal@18730 | 103 mv "$1/$CONFIG_FILES.bak" "$1/$CONFIG_FILES" |
al@18741 | 104 fi |
al@18741 | 105 |
al@18741 | 106 # Just in case. |
al@18741 | 107 chown www.www "$1/var/log/$PACKAGE" |
Hans-G?nter@23237 | 108 if [ -z "$1" ] |
Hans-G?nter@23237 | 109 then |
Hans-G?nter@23237 | 110 for i in apache lighttpd |
Hans-G?nter@23237 | 111 do |
nneul@18379 | 112 [ -f /etc/init.d/$i ] && /etc/init.d/$i stop |
Hans-G?nter@23237 | 113 done |
nneul@18379 | 114 /etc/init.d/$PACKAGE start |
al@18741 | 115 fi |
al@18741 | 116 |
al@18741 | 117 : |
nneul@18379 | 118 } |