View | Details | Raw Unified | Return to bug 164698
Collapse All | Expand All

(-)Makefile (-3 / +4 lines)
Lines 9-14 Link Here
9
9
10
PORTNAME=	apache
10
PORTNAME=	apache
11
PORTVERSION=	2.2.22
11
PORTVERSION=	2.2.22
12
PORTREVISION=	1
12
#PORTREVISION=	1
13
#PORTREVISION=	1
13
CATEGORIES=	www
14
CATEGORIES=	www
14
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
15
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD}
Lines 43-48 Link Here
43
USE_RC_SUBR=		apache22 htcacheclean
44
USE_RC_SUBR=		apache22 htcacheclean
44
LIBTOOLFILES=	configure.in
45
LIBTOOLFILES=	configure.in
45
46
47
USERS=	www
48
GROUPS=	www
49
46
MPM_ITK_VERSION?=	20110321-01
50
MPM_ITK_VERSION?=	20110321-01
47
51
48
# for slave ports
52
# for slave ports
Lines 191-199 Link Here
191
	@${REINPLACE_CMD} -e "s,%%WWWOWN%%,${WWWOWN}," -e  "s,%%WWWGRP%%,${WWWGRP}," ${WRKSRC}/docs/conf/httpd.conf
195
	@${REINPLACE_CMD} -e "s,%%WWWOWN%%,${WWWOWN}," -e  "s,%%WWWGRP%%,${WWWGRP}," ${WRKSRC}/docs/conf/httpd.conf
192
	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/support/envvars-std
196
	@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/support/envvars-std
193
197
194
pre-install:
195
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
196
197
post-install:
198
post-install:
198
	@${MKDIR} ${PREFIX}/etc/apache22/envvars.d
199
	@${MKDIR} ${PREFIX}/etc/apache22/envvars.d
199
	@${MKDIR} ${PREFIX}/etc/apache22/Includes
200
	@${MKDIR} ${PREFIX}/etc/apache22/Includes
(-)pkg-install (-35 lines)
Removed Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/www/apache22/pkg-install,v 1.6 2009/08/02 19:35:56 mezz Exp $
3
#
4
5
if [ "$2" != "PRE-INSTALL" ]; then
6
	exit 0
7
fi
8
9
WWWUSER=www
10
WWWGROUP=${WWWUSER}
11
WWWUID=80
12
WWWGID=${WWWUID}
13
14
if ! pw groupshow "${WWWGROUP}" 2>/dev/null 1>&2; then
15
	if pw groupadd ${WWWGROUP} -g ${WWWGID}; then
16
		echo "Added group \"${WWWGROUP}\"."
17
	else
18
		echo "Adding group \"${WWWGROUP}\" failed..."
19
		exit 1
20
	fi
21
fi
22
23
if ! pw usershow "${WWWUSER}" 2>/dev/null 1>&2; then
24
	if pw useradd ${WWWUSER} -u ${WWWUID} -g ${WWWGROUP} -h - \
25
		-s "/sbin/nologin" -d "/nonexistent" \
26
		-c "World Wide Web Owner"; \
27
	then
28
		echo "Added user \"${WWWUSER}\"."
29
	else
30
		echo "Adding user \"${WWWUSER}\" failed..."
31
		exit 1
32
	fi
33
fi
34
35
exit 0

Return to bug 164698