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

(-)Makefile (-2 / +6 lines)
Lines 9-14 Link Here
9
9
10
PORTNAME=	apache
10
PORTNAME=	apache
11
PORTVERSION=	2.0.49
11
PORTVERSION=	2.0.49
12
PORTREVISION=	1
12
CATEGORIES=	www ipv6
13
CATEGORIES=	www ipv6
13
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD} \
14
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD} \
14
		http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo
15
		http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo
Lines 47-52 Link Here
47
USE_LIBTOOL_VER=	15
48
USE_LIBTOOL_VER=	15
48
USE_PERL5=		yes
49
USE_PERL5=		yes
49
USE_REINPLACE=		yes
50
USE_REINPLACE=		yes
51
USE_RC_SUBR=		yes
50
LIBTOOLFILES=		configure
52
LIBTOOLFILES=		configure
51
53
52
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} \
54
CONFIGURE_ARGS=	--prefix=${PREFIX_RELDEST} \
Lines 63-69 Link Here
63
		LOCALBASE="${LOCALBASE}"
65
		LOCALBASE="${LOCALBASE}"
64
66
65
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
67
PREFIX_RELDEST=	${PREFIX:S,^${DESTDIR},,}
66
RC_SUB=		-e 's,@@PREFIX@@,${PREFIX_RELDEST},g'
68
RC_SCRIPTS_SUB=	PREFIX_RELDEST=${PREFIX_RELDEST} RC_SUBR=${RC_SUBR}
69
67
MAKE_ENV+=	DESTDIR=${DESTDIR} EXPR_COMPAT=yes
70
MAKE_ENV+=	DESTDIR=${DESTDIR} EXPR_COMPAT=yes
68
71
69
WITH_MPM?=	prefork # or worker, perchild
72
WITH_MPM?=	prefork # or worker, perchild
Lines 165-171 Link Here
165
		ALT="[Powered by FreeBSD]"><IMG SRC="apache_pb2_ani,g' $$f \
168
		ALT="[Powered by FreeBSD]"><IMG SRC="apache_pb2_ani,g' $$f \
166
	 ); done
169
	 ); done
167
	@${RM} -f ${WRKSRC}/docs/docroot/*.bak
170
	@${RM} -f ${WRKSRC}/docs/docroot/*.bak
168
	@${SED} ${RC_SUB} ${FILESDIR}/apache.sh >${WRKDIR}/apache2.sh
171
	@${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
172
		${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh
169
	@${SED} ${RC_SUB} ${FILESDIR}/config.layout >>${WRKSRC}/config.layout
173
	@${SED} ${RC_SUB} ${FILESDIR}/config.layout >>${WRKSRC}/config.layout
170
	@${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr
174
	@${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr
171
175
(-)files/apache.sh (-14 / +27 lines)
Lines 1-17 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
PREFIX=@@PREFIX@@
2
# $FreeBSD$
3
3
4
case "$1" in
4
# PROVIDE: apache
5
start)
5
# REQUIRE: DAEMON
6
	[ "@@SSL@@" = "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] && SSL=ssl
6
# BEFORE: LOGIN
7
	[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev/null && echo -n ' apache2'
7
# KEYWORD: FreeBSD shutdown
8
	;;
9
stop)
10
	[ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache2'
11
	;;
12
*)
13
	echo "Usage: `basename $0` {start|stop}" >&2
14
	;;
15
esac
16
8
17
exit 0
9
# Define these apache_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#       /etc/rc.conf.d/apache
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
apache_enable="NO"
17
apache_flags=""
18
apache_pidfile="/var/run/httpd.pid"
19
20
. %%RC_SUBR%%
21
22
name="apache"
23
rcvar=`set_rcvar`
24
command="%%PREFIX_RELDEST%%/sbin/httpd"
25
26
load_rc_config $name
27
28
pidfile="${apache_pidfile}"
29
30
run_rc_command "$1"

Return to bug 66955