# nginx/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. As of 2021, this package can't be cross-built. I.e.: It needs to be built under the target distro. #--------------------------------------------------------------------- [buildtimes] 00.01 hours (or 000.58 minutes) - 2021 L.A. dedi box #--------------------------------------------------------------------- [settings] build = default license = See "license*.txt" in installed tree licfile = LICENSE setpaths = $PRODTREE/perl5 tmpsize = 26M #--------------------------------------------------------------------- [depends] actools gawk grep openssl pcre perl:strict sed zlib #--------------------------------------------------------------------- [configure] LOGDIR=/var/log/nginx ERRLOG=$LOGDIR/nginx-errors.log MAINLOG=$LOGDIR/nginx-access.log VARDIR=/var/nginx mkdir -p $LOGDIR $VARDIR chmod 777 $LOGDIR $VARDIR MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE rm -f /etc/nginx if [ -e /etc/nginx ]; then echo Error: Must remove or rename /etc/nginx exit 1 fi ln -s /opt/nginx /etc/ tar jxf $PKGDIR_SPECIAL/ngx-fancyindex-git-*.tar.bz2 mv ngx-fancyindex-git-* ngx-fancyindex tar jxf $PKGDIR_SPECIAL/nginx-unzip-module-git-*.tar.bz2 mv nginx-unzip-module-git-* nginx-unzip-module bash ./configure \ --prefix=$PKGDIR_PROD \ \ --conf-path=/opt/nginx/nginx.conf \ --error-log-path=$ERRLOG \ --http-log-path=$MAINLOG \ \ --http-client-body-temp-path=$VARDIR/tempbody \ --http-proxy-temp-path=$VARDIR/tempproxy \ --http-fastcgi-temp-path=$VARDIR/temp-fastcgi \ --http-uwsgi-temp-path=$VARDIR/temp-uwsgi \ --http-scgi-temp-path=$VARDIR/tmp \ \ --lock-path=$VARDIR/nginx.lock \ --pid-path=$VARDIR/nginx.pid \ \ --add-module=ngx-fancyindex \ --add-module=nginx-unzip-module \ \ --with-file-aio \ --with-stream \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ --with-threads \ \ --with-http_addition_module \ --with-http_auth_request_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_mp4_module \ --with-http_perl_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_v2_module #--------------------------------------------------------------------- [postbuild] DHDIR=/etc/ssl/certs DHPARAM=$DHDIR/dhparam.pem if [ \! -f $DHPARAM ]; then mkdir -p $DHDIR openssl dhparam -out $DHPARAM 2048 fi #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian_page = tbd url_home = tbd url_lfs = tbd url_tarball = http://nginx.org/download/nginx-1.26.0.tar.gz #--------------------------------------------------------------------- [history] 210417 Added package. Started with 1.18.0. 210906 Updated to 1.19.10 210912 Updated to 1.21.3 211118 Updated to 1.21.4 211228 Updated to 1.21.5 220625 Updated to 1.21.6 220722 Updated to 1.23.1 230108 Updated to 1.23.3 230411 Updated to 1.24.0 230525 Updated to 1.25.0 230816 Updated to 1.25.2 230816 Added some "nginx" extension modules 240328 Updated to 1.25.4 240503 Updated to 1.26.0