aboutsummaryrefslogtreecommitdiff
path: root/www/nginx-devel/pkg-plist
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2004-10-21 17:54:45 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2004-10-21 17:54:45 +0000
commitbd4066ee457a1089e012ea4b1afe800f4db21264 (patch)
tree97335de753ae58ffd94ec09aa4426c0844ac6139 /www/nginx-devel/pkg-plist
parentb782ad3e7e48bc609e6763160065255d409774e7 (diff)
downloadports-bd4066ee457a1089e012ea4b1afe800f4db21264.tar.gz
ports-bd4066ee457a1089e012ea4b1afe800f4db21264.zip
Notes
Diffstat (limited to 'www/nginx-devel/pkg-plist')
-rw-r--r--www/nginx-devel/pkg-plist16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/nginx-devel/pkg-plist b/www/nginx-devel/pkg-plist
new file mode 100644
index 000000000000..4e4b4e625352
--- /dev/null
+++ b/www/nginx-devel/pkg-plist
@@ -0,0 +1,16 @@
+@comment $FreeBSD$
+@unexec if cmp -s %D/etc/nginx/mime.types %D/etc/nginx/mime.types-dist; then rm -f %D/etc/nginx/mime.types; fi
+etc/nginx/mime.types-dist
+@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types
+@unexec if cmp -s %D/etc/nginx/nginx.conf %D/etc/nginx/nginx.conf-dist; then rm -f %D/etc/nginx/nginx.conf; fi
+etc/nginx/nginx.conf-dist
+@exec [ -f %B/nginx.conf ] || cp %B/%f %B/nginx.conf
+@unexec rmdir $D/etc/nginx 2>/dev/null || true
+@exec mkdir -p -m 755 www/nginx-dist
+@comment @unexec chmod u+w www/nginx-dist
+www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
+@exec [ -d %D/www/nginx/ ] || ln -fs %B %D/www/nginx
+www/nginx-dist/index.html
+@exec chmod a-w www/nginx-dist
+@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi
+@dirrm www/nginx-dist