View | Details | Raw Unified | Return to bug 100139 | Differences between
and this patch

Collapse All | Expand All

(-)xinetd.in Wed Jul 12 13:11:58 2006 (-1 / +1 lines)
Lines 2-8 Link Here
2
#
2
#
3
# $FreeBSD: ports/security/xinetd/files/xinetd.sh.tmpl,v 1.2 2006/02/20 20:47:40 dougb Exp $
3
# $FreeBSD: ports/security/xinetd/files/xinetd.sh.tmpl,v 1.2 2006/02/20 20:47:40 dougb Exp $
4
#
4
#
5
# PROVIDE: snmpd
5
# PROVIDE: xinetd
6
# REQUIRE: DAEMON
6
# REQUIRE: DAEMON
7
#
7
#
8
# Add the following line to /etc/rc.conf to enable xinetd:
8
# Add the following line to /etc/rc.conf to enable xinetd:
9
9
(-)Makefile (-10 / +1 lines)
Lines 16-26 Link Here
16
16
17
USE_GMAKE=	yes
17
USE_GMAKE=	yes
18
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
USE_RC_SUBR=	yes
19
USE_RC_SUBR=	xinetd
20
ALL_TARGET=	build
20
ALL_TARGET=	build
21
CONFIGURE_ARGS+=	--with-loadavg --with-libwrap --with-ipv6
21
CONFIGURE_ARGS+=	--with-loadavg --with-libwrap --with-ipv6
22
STARTUP_FILE=	${PREFIX}/etc/rc.d/xinetd.sh
23
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
24
22
25
MAN5=		xinetd.conf.5
23
MAN5=		xinetd.conf.5
26
MAN8=		xconv.8 xinetd.8 xinetd.log.8
24
MAN8=		xconv.8 xinetd.8 xinetd.log.8
Lines 30-43 Link Here
30
		${REINPLACE_CMD} -e 's!\@INSTALL\@!/bin/cp!; s!-m 640!!'
28
		${REINPLACE_CMD} -e 's!\@INSTALL\@!/bin/cp!; s!-m 640!!'
31
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xinetd/xconfig.h
29
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xinetd/xconfig.h
32
30
33
pre-install:
34
	-@[ -f ${STARTUP_FILE} ] && \
35
	(${ECHO} "Remove old ${STARTUP_FILE} before install." && exit 1)
36
37
post-install:
31
post-install:
38
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
39
		${FILESDIR}/xinetd.sh.tmpl > ${STARTUP_FILE}
40
	@${CHMOD} 755 ${STARTUP_FILE}
41
	@${STRIP_CMD} ${PREFIX}/sbin/xinetd
32
	@${STRIP_CMD} ${PREFIX}/sbin/xinetd
42
33
43
.include <bsd.port.mk>
34
.include <bsd.port.mk>

Return to bug 100139