aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-06-21 09:44:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-21 10:20:45 +0000
commit8ded1028a7bcdabc411b39367920a61f7919fdd6 (patch)
tree704aa0d2bea26fd8de3bb77f52cb36fefd1cad2f /main/nginx
parent559eff0db97152c21d334cad269648b376eb1a3b (diff)
downloadaports-8ded1028a7bcdabc411b39367920a61f7919fdd6.tar.bz2
aports-8ded1028a7bcdabc411b39367920a61f7919fdd6.tar.xz
Revert "main/nginx: move /var/lib/nginx/tmp to /var/tmp/nginx"
FHS-3.0 says that /var/tmp should survive reboots, but for it is common practice to ignore FHS for security reasons and wipe dirs that are world writable. There is no good reason to store nginx data under a world writable directory, so move it back to /var/lib/nginx/tmp. Other distros does something similar. fixes #9246 fixes #10258 ref #9364 This reverts commit d6d624a149ca62af8679baf9cc99ce1354c190f0.
Diffstat (limited to 'main/nginx')
-rw-r--r--main/nginx/APKBUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD
index c84b9711f9..b71130cf38 100644
--- a/main/nginx/APKBUILD
+++ b/main/nginx/APKBUILD
@@ -15,7 +15,7 @@ pkgname=nginx
# NOTE: Upgrade only to even-numbered versions (e.g. 1.14.z, 1.16.z)!
# Odd-numbered versions are mainline (development) versions.
pkgver=1.16.0
-pkgrel=2
+pkgrel=3
# Revision of nginx-tests to use for check().
_tests_hgrev=2be630357aa7
_njs_ver=0.3.1
@@ -184,11 +184,11 @@ build() {
--conf-path=/etc/$pkgname/$pkgname.conf \
--pid-path=/run/$pkgname/$pkgname.pid \
--lock-path=/run/$pkgname/$pkgname.lock \
- --http-client-body-temp-path=/var/tmp/$pkgname/client_body \
- --http-proxy-temp-path=/var/tmp/$pkgname/proxy \
- --http-fastcgi-temp-path=/var/tmp/$pkgname/fastcgi \
- --http-uwsgi-temp-path=/var/tmp/$pkgname/uwsgi \
- --http-scgi-temp-path=/var/tmp/$pkgname/scgi \
+ --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 \
+ --http-uwsgi-temp-path=/var/lib/$pkgname/tmp/uwsgi \
+ --http-scgi-temp-path=/var/lib/$pkgname/tmp/scgi \
--with-perl_modules_path=/usr/lib/perl5/vendor_perl \
\
--user=$pkgusers \
@@ -268,8 +268,7 @@ package() {
install -dm755 ./etc/$pkgname/modules
install -dm750 -o $pkgusers -g $_grp_ngx ./var/lib/$pkgname
- install -dm700 -o $pkgusers -g $_grp_ngx ./var/tmp/$pkgname
- chmod 1777 "$pkgdir"/var/tmp
+ install -dm700 -o $pkgusers -g $_grp_ngx ./var/lib/$pkgname/tmp
install -dm755 -g $_grp_www ./var/www/localhost/htdocs
install -dm755 ./var/log
@@ -277,7 +276,6 @@ package() {
ln -sf /$_modules_dir ./var/lib/$pkgname/modules
ln -sf /var/log/$pkgname ./var/lib/$pkgname/logs
- ln -sf /var/tmp/$pkgname ./var/lib/$pkgname/tmp
ln -sf /run/$pkgname ./var/lib/$pkgname/run
# Remove archaic charset maps.