diff options
author | ache <ache@FreeBSD.org> | 2004-08-22 18:55:55 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2004-08-22 18:55:55 +0800 |
commit | 34b7f42d09e688bddc13835c0b2c5d3acaa4a0c8 (patch) | |
tree | 0a4696394a819f13645aded462731646765386cf /www/apache13 | |
parent | d1a06307d286f405b860944f6497e101e93c71ea (diff) | |
download | freebsd-ports-gnome-34b7f42d09e688bddc13835c0b2c5d3acaa4a0c8.tar.gz freebsd-ports-gnome-34b7f42d09e688bddc13835c0b2c5d3acaa4a0c8.tar.zst freebsd-ports-gnome-34b7f42d09e688bddc13835c0b2c5d3acaa4a0c8.zip |
Write-protect *-dist directories
Diffstat (limited to 'www/apache13')
-rw-r--r-- | www/apache13/Makefile | 4 | ||||
-rw-r--r-- | www/apache13/pkg-plist | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/www/apache13/Makefile b/www/apache13/Makefile index dee20d819ea1..e6d4877cd611 100644 --- a/www/apache13/Makefile +++ b/www/apache13/Makefile @@ -7,7 +7,7 @@ PORTNAME= apache PORTVERSION= 1.3.31 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} DISTNAME= apache_${PORTVERSION} @@ -150,12 +150,14 @@ post-extract: ${FILESDIR}/apache.sh > ${WRKSRC}/apache.sh pre-install: + -@${CHMOD} u+w ${DOCUMENT_ROOT}-dist ${CGIBIN_ROOT}-dist PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: ${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh @${TOUCH} ${DOCUMENT_ROOT}-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING @${TOUCH} ${CGIBIN_ROOT}-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING + @${CHMOD} a-w ${DOCUMENT_ROOT}-dist ${CGIBIN_ROOT}-dist @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/www/apache13/pkg-plist b/www/apache13/pkg-plist index b1ee92afe930..ce7491375f7e 100644 --- a/www/apache13/pkg-plist +++ b/www/apache13/pkg-plist @@ -105,6 +105,7 @@ sbin/httpd sbin/logresolve sbin/rotatelogs %%SUB_SUEXEC%%sbin/suexec +@exec mkdir -p -m 755 www/data-dist www/data-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING @exec [ -d %D/www/data/ ] || ln -fs %B %D/www/data www/data-dist/apache_pb.gif @@ -138,6 +139,7 @@ www/data-dist/index.html.ru.ucs4 www/data-dist/index.html.ru.utf8 www/data-dist/index.html.se www/data-dist/index.html.zh-tw.big5 +@exec chmod a-w www/data-dist share/doc/apache/LICENSE share/doc/apache/bind.html.en share/doc/apache/bind.html.fr @@ -431,10 +433,12 @@ share/doc/apache/win_service.html.ja.jis share/doc/apache/windows.html.en share/doc/apache/windows.html.html share/doc/apache/windows.html.ja.jis +@exec mkdir -p -m 755 www/cgi-bin-dist www/cgi-bin-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING @exec [ -d %D/www/cgi-bin/ ] || ln -fs %B %D/www/cgi-bin www/cgi-bin-dist/printenv www/cgi-bin-dist/test-cgi +@exec chmod a-w www/cgi-bin-dist www/icons/README www/icons/a.gif www/icons/a.png |