diff options
author | clement <clement@FreeBSD.org> | 2004-08-17 20:41:26 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-08-17 20:41:26 +0800 |
commit | ecf5c13d3da42cee9d3a2bfa82376ed2f829e6c9 (patch) | |
tree | e6ab2ce45f97385532e41f2fa8bb3070e39cd47e /www | |
parent | 915264f5d91ef853152406e14beff3cfe8930816 (diff) | |
download | freebsd-ports-gnome-ecf5c13d3da42cee9d3a2bfa82376ed2f829e6c9.tar.gz freebsd-ports-gnome-ecf5c13d3da42cee9d3a2bfa82376ed2f829e6c9.tar.zst freebsd-ports-gnome-ecf5c13d3da42cee9d3a2bfa82376ed2f829e6c9.zip |
- Bump PORTREVISION for all previous changes
- Allow access to /home if mod_userdir is loaded
- We don't need apache2libs.sh if apr is installed from ports.
- Add recent changes to UPGRADING
Diffstat (limited to 'www')
-rw-r--r-- | www/apache2/Makefile | 18 | ||||
-rw-r--r-- | www/apache2/files/patch-docs:conf:httpd-std.conf.in | 37 | ||||
-rw-r--r-- | www/apache2/pkg-plist | 2 | ||||
-rw-r--r-- | www/apache20/Makefile | 18 | ||||
-rw-r--r-- | www/apache20/files/patch-docs:conf:httpd-std.conf.in | 37 | ||||
-rw-r--r-- | www/apache20/pkg-plist | 2 |
6 files changed, 86 insertions, 28 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile index f9c115b0e05a..156efc00b756 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -9,7 +9,8 @@ PORTNAME= apache PORTVERSION= 2.0.50 -CATEGORIES= www ipv6 +PORTREVISION= 1 +CATEGORIES= www MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo DISTNAME= httpd-${PORTVERSION} @@ -77,10 +78,13 @@ WITH_HTTP_PORT?= 80 .if defined(WITHOUT_IPV6) CONFIGURE_ARGS+= --disable-ipv6 -.elif defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED) -CONFIGURE_ARGS+= --disable-v4-mapped .else +CATEGORIES+= ipv6 +. if defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED) +CONFIGURE_ARGS+= --disable-v4-mapped +. else CONFIGURE_ARGS+= --enable-v4-mapped +. endif .endif .if !defined(WITHOUT_SSL) @@ -185,8 +189,10 @@ post-patch: @${RM} -f ${WRKSRC}/docs/docroot/*.bak @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh +.if !defined(WITH_APR_FROM_PORTS) @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh +.endif @${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr @${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \ ${WRKSRC}/server/core.c @@ -205,10 +211,12 @@ pre-install: post-install: @${MKDIR} ${PREFIX}/etc/apache2/Includes - @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file." - @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh +.if !defined(WITH_APR_FROM_PORTS) @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup file." @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh +.endif + @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file." + @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh @@${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/apache2/files/patch-docs:conf:httpd-std.conf.in b/www/apache2/files/patch-docs:conf:httpd-std.conf.in index 31c157a66b46..12128e97a5a1 100644 --- a/www/apache2/files/patch-docs:conf:httpd-std.conf.in +++ b/www/apache2/files/patch-docs:conf:httpd-std.conf.in @@ -1,5 +1,5 @@ --- docs/conf/httpd-std.conf.in.orig Sat Apr 24 20:13:43 2004 -+++ docs/conf/httpd-std.conf.in Sun Jul 25 11:37:58 2004 ++++ docs/conf/httpd-std.conf.in Tue Aug 17 12:11:17 2004 @@ -68,7 +68,7 @@ # <IfModule !mpm_netware.c> @@ -34,7 +34,7 @@ </Directory> # -@@ -365,8 +366,11 @@ +@@ -365,24 +366,29 @@ # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. # @@ -46,15 +46,36 @@ # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. -@@ -384,6 +388,8 @@ - # </LimitExcept> - #</Directory> - -+</IfModule> + # +-#<Directory /home/*/public_html> +-# AllowOverride FileInfo AuthConfig Limit Indexes +-# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +-# <Limit GET POST OPTIONS PROPFIND> +-# Order allow,deny +-# Allow from all +-# </Limit> +-# <LimitExcept GET POST OPTIONS PROPFIND> +-# Order deny,allow +-# Deny from all +-# </LimitExcept> +-#</Directory> ++<Directory /home/*/public_html> ++ AllowOverride FileInfo AuthConfig Limit Indexes ++ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ++ <Limit GET POST OPTIONS PROPFIND> ++ Order allow,deny ++ Allow from all ++ </Limit> ++ <LimitExcept GET POST OPTIONS PROPFIND> ++ Order deny,allow ++ Deny from all ++ </LimitExcept> ++</Directory> + ++</IfModule> + # # DirectoryIndex: sets the file that Apache will serve if a directory - # is requested. @@ -472,7 +478,7 @@ # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. diff --git a/www/apache2/pkg-plist b/www/apache2/pkg-plist index b37c326e8eca..f9b69059d301 100644 --- a/www/apache2/pkg-plist +++ b/www/apache2/pkg-plist @@ -14,7 +14,7 @@ etc/apache2/mime.types-dist @unexec if cmp -s %D/etc/apache2/ssl.conf %D/etc/apache2/ssl-std.conf; then rm -f %D/etc/apache2/ssl.conf; fi etc/apache2/ssl-std.conf @exec [ -f %B/ssl.conf ] || cp %B/%f %B/ssl.conf -etc/rc.d/000.apache2libs.sh +%%PORTS_APR%%etc/rc.d/000.apache2libs.sh etc/rc.d/apache2.sh include/apache2/ap_compat.h include/apache2/ap_config.h diff --git a/www/apache20/Makefile b/www/apache20/Makefile index f9c115b0e05a..156efc00b756 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -9,7 +9,8 @@ PORTNAME= apache PORTVERSION= 2.0.50 -CATEGORIES= www ipv6 +PORTREVISION= 1 +CATEGORIES= www MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo DISTNAME= httpd-${PORTVERSION} @@ -77,10 +78,13 @@ WITH_HTTP_PORT?= 80 .if defined(WITHOUT_IPV6) CONFIGURE_ARGS+= --disable-ipv6 -.elif defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED) -CONFIGURE_ARGS+= --disable-v4-mapped .else +CATEGORIES+= ipv6 +. if defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED) +CONFIGURE_ARGS+= --disable-v4-mapped +. else CONFIGURE_ARGS+= --enable-v4-mapped +. endif .endif .if !defined(WITHOUT_SSL) @@ -185,8 +189,10 @@ post-patch: @${RM} -f ${WRKSRC}/docs/docroot/*.bak @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh +.if !defined(WITH_APR_FROM_PORTS) @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh +.endif @${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr @${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \ ${WRKSRC}/server/core.c @@ -205,10 +211,12 @@ pre-install: post-install: @${MKDIR} ${PREFIX}/etc/apache2/Includes - @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file." - @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh +.if !defined(WITH_APR_FROM_PORTS) @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup file." @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh +.endif + @${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file." + @${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh @@${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/apache20/files/patch-docs:conf:httpd-std.conf.in b/www/apache20/files/patch-docs:conf:httpd-std.conf.in index 31c157a66b46..12128e97a5a1 100644 --- a/www/apache20/files/patch-docs:conf:httpd-std.conf.in +++ b/www/apache20/files/patch-docs:conf:httpd-std.conf.in @@ -1,5 +1,5 @@ --- docs/conf/httpd-std.conf.in.orig Sat Apr 24 20:13:43 2004 -+++ docs/conf/httpd-std.conf.in Sun Jul 25 11:37:58 2004 ++++ docs/conf/httpd-std.conf.in Tue Aug 17 12:11:17 2004 @@ -68,7 +68,7 @@ # <IfModule !mpm_netware.c> @@ -34,7 +34,7 @@ </Directory> # -@@ -365,8 +366,11 @@ +@@ -365,24 +366,29 @@ # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. # @@ -46,15 +46,36 @@ # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. -@@ -384,6 +388,8 @@ - # </LimitExcept> - #</Directory> - -+</IfModule> + # +-#<Directory /home/*/public_html> +-# AllowOverride FileInfo AuthConfig Limit Indexes +-# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +-# <Limit GET POST OPTIONS PROPFIND> +-# Order allow,deny +-# Allow from all +-# </Limit> +-# <LimitExcept GET POST OPTIONS PROPFIND> +-# Order deny,allow +-# Deny from all +-# </LimitExcept> +-#</Directory> ++<Directory /home/*/public_html> ++ AllowOverride FileInfo AuthConfig Limit Indexes ++ Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ++ <Limit GET POST OPTIONS PROPFIND> ++ Order allow,deny ++ Allow from all ++ </Limit> ++ <LimitExcept GET POST OPTIONS PROPFIND> ++ Order deny,allow ++ Deny from all ++ </LimitExcept> ++</Directory> + ++</IfModule> + # # DirectoryIndex: sets the file that Apache will serve if a directory - # is requested. @@ -472,7 +478,7 @@ # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. diff --git a/www/apache20/pkg-plist b/www/apache20/pkg-plist index b37c326e8eca..f9b69059d301 100644 --- a/www/apache20/pkg-plist +++ b/www/apache20/pkg-plist @@ -14,7 +14,7 @@ etc/apache2/mime.types-dist @unexec if cmp -s %D/etc/apache2/ssl.conf %D/etc/apache2/ssl-std.conf; then rm -f %D/etc/apache2/ssl.conf; fi etc/apache2/ssl-std.conf @exec [ -f %B/ssl.conf ] || cp %B/%f %B/ssl.conf -etc/rc.d/000.apache2libs.sh +%%PORTS_APR%%etc/rc.d/000.apache2libs.sh etc/rc.d/apache2.sh include/apache2/ap_compat.h include/apache2/ap_config.h |