diff options
author | ache <ache@FreeBSD.org> | 2001-10-25 00:03:38 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-10-25 00:03:38 +0800 |
commit | 71586889ceee37fb38ff39a2f2ccfd690d2b40c1 (patch) | |
tree | 2e52086082895333c85b5d60f409daffa4977189 /www/apache22 | |
parent | 31feaaedaa1863ba185c5fe67ec105f98852fd68 (diff) | |
download | freebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.tar.gz freebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.tar.zst freebsd-ports-gnome-71586889ceee37fb38ff39a2f2ccfd690d2b40c1.zip |
Sync with main Apache
Submitted by: MAINTAINER
Diffstat (limited to 'www/apache22')
-rw-r--r-- | www/apache22/Makefile | 9 | ||||
-rw-r--r-- | www/apache22/files/patch-docs:conf:httpd-std.conf | 10 | ||||
-rw-r--r-- | www/apache22/pkg-deinstall | 20 | ||||
-rw-r--r-- | www/apache22/pkg-install | 34 |
4 files changed, 66 insertions, 7 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 5ce2baf3327c..ebb0a3af1369 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -1,13 +1,13 @@ # New ports collection makefile for: apache2 # Date created: 7 April 2001 -# Whom: Hye-Shik Chang <perky@python.or.kr> +# Whom: Hye-Shik Chang <perky@fallin.lv> # # $FreeBSD$ # PORTNAME= apache PORTVERSION= 2.0.16 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www ipv6 MASTER_SITES= http://httpd.apache.org/dist/httpd/ \ http://www.cybernic.com/mirror/dist/httpd/ \ @@ -21,7 +21,7 @@ MASTER_SITES= http://httpd.apache.org/dist/httpd/ \ ftp://ftp.cuckoo.com/pub/mirrors/apache/httpd/ DISTNAME= httpd-${PORTVERSION:S/./_/g}-beta -MAINTAINER?= perky@python.or.kr +MAINTAINER?= perky@fallin.lv WRKSRC= ${WRKDIR}/httpd-${PORTVERSION:S/./_/g} FIND?= find @@ -65,6 +65,9 @@ CONFIGURE_ARGS+= --enable-${mod}=yes post-patch: @${FIND} ${WRKSRC} -name "*.orig"|${XARGS} ${RM} -f +pre-install: + PKG_PREFIX=${PREFIX} ./pkg-install ${PKGNAME} PRE-INSTALL + post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ diff --git a/www/apache22/files/patch-docs:conf:httpd-std.conf b/www/apache22/files/patch-docs:conf:httpd-std.conf index f70a76bf17df..928bc48b70d4 100644 --- a/www/apache22/files/patch-docs:conf:httpd-std.conf +++ b/www/apache22/files/patch-docs:conf:httpd-std.conf @@ -1,5 +1,5 @@ --- docs/conf/httpd-std.conf.orig Mon Mar 26 01:54:48 2001 -+++ docs/conf/httpd-std.conf Sun Apr 8 04:26:54 2001 ++++ docs/conf/httpd-std.conf Tue Oct 23 17:12:59 2001 @@ -64,7 +64,7 @@ # PidFile: The file in which the server should record its process # identification number when it starts. @@ -47,12 +47,14 @@ ### Section 2: 'Main' server configuration # -@@ -221,7 +243,7 @@ +@@ -220,8 +242,8 @@ + # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # - User nobody +-User nobody -Group #-1 -+Group nogroup ++User www ++Group www # # ServerAdmin: Your address, where problems with the server should be diff --git a/www/apache22/pkg-deinstall b/www/apache22/pkg-deinstall new file mode 100644 index 000000000000..1b5448bea737 --- /dev/null +++ b/www/apache22/pkg-deinstall @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD: /tmp/pcvs/ports/www/apache22/Attic/pkg-deinstall,v 1.1 2001-10-24 16:03:34 ache Exp $ +# + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +USER=www + +if pw usershow "${USER}" 2>/dev/null 1>&2; then + if pw userdel ${USER}; then + echo "Delete user/group \"${USER}\"." + else + echo "Deleting user/group \"${USER}\" failed..." + exit 1 + fi +fi + +exit 0 diff --git a/www/apache22/pkg-install b/www/apache22/pkg-install new file mode 100644 index 000000000000..cbeae9665004 --- /dev/null +++ b/www/apache22/pkg-install @@ -0,0 +1,34 @@ +#!/bin/sh +# $FreeBSD$ +# + +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi + +USER=www +GROUP=${USER} +UID=80 +GID=${UID} + +if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi +fi + +if ! pw usershow "${USER}" 2>/dev/null 1>&2; then + if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + -s "/sbin/nologin" -d "/nonexistent" \ + -c "World Wide Web Owner"; \ + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi +fi +exit 0 |