mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
1bffea19a2
- This reverts the change from r247267 which removed it. - The upstream svscanboot script closes stdout, stdin and stderr. Our script should do the same. Doing this does not lose any output since the output is all piped to the proper logger. This fixes hangs when combined with Salt [1]. Reported by: C. R. Oldham <cro@ncbt.org> [1]
90 lines
2.2 KiB
Makefile
90 lines
2.2 KiB
Makefile
# Created by: Dom Mitchell <dom@myrddin.demon.co.uk>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= daemontools
|
|
PORTVERSION= 0.76
|
|
PORTREVISION= 18
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://cr.yp.to/daemontools/ \
|
|
http://mirror.shatow.net/freebsd/${PORTNAME}/:DEFAULT,1 \
|
|
LOCAL/bdrewery/${PORTNAME}/:DEFAULT,1
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
|
COMMENT= Service monitoring and logging utilities by djb
|
|
|
|
LICENSE= PD
|
|
|
|
CONFLICTS= freedt-[0-9]* serialmail-[0-9]*
|
|
|
|
OPTIONS_DEFINE= MAN SIGQ12 TESTS
|
|
OPTIONS_SUB= yes
|
|
MAN_DESC= Install Gerrit Pape's manual pages
|
|
S_EARLY_DESC= Start early, before the normal daemons
|
|
S_NORMAL_DESC= Start normally in the usual boot sequence
|
|
SIGQ12_DESC= Add svc support for QUIT, USR1, and USR2 signals
|
|
TESTS_DESC= Run the test suite, fails on NFS-mounted workdir
|
|
|
|
OPTIONS_SINGLE= SEQ
|
|
OPTIONS_SINGLE_SEQ= S_EARLY S_NORMAL
|
|
|
|
OPTIONS_DEFAULT= MAN S_NORMAL TESTS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
. if ${PORT_OPTIONS:MS_EARLY}
|
|
SVSCAN_REQUIRE?= SERVERS
|
|
SVSCAN_BEFORE?= DAEMON
|
|
. endif
|
|
|
|
. if ${PORT_OPTIONS:MS_NORMAL}
|
|
SVSCAN_REQUIRE?= LOGIN
|
|
SVSCAN_BEFORE?=
|
|
. endif
|
|
|
|
SUB_LIST+= SVSCAN_REQUIRE=${SVSCAN_REQUIRE} SVSCAN_BEFORE=${SVSCAN_BEFORE}
|
|
|
|
.if ${PORT_OPTIONS:MMAN}
|
|
MANDATE= -20010714
|
|
MASTER_SITES+= http://smarden.org/pape/djb/manpages/:1
|
|
DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:1
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSIGQ12}
|
|
#PATCH_SITES+= http://thedjbway.org/patches/:sigq12
|
|
PATCH_SITES+= LOCAL/bdrewery/${PORTNAME}/:sigq12
|
|
PATCHFILES+= daemontools-0.76.sigq12.patch:-p2:sigq12
|
|
.endif
|
|
|
|
USE_RC_SUBR= svscan
|
|
|
|
WRKSRC= ${WRKDIR}/admin/${DISTNAME}/src
|
|
|
|
ALL_TARGET= it
|
|
INSTALL_TARGET= setup check
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
EXTRA_PATCHES+= ${FILESDIR}/rts-skip.patch
|
|
.endif
|
|
|
|
post-patch:
|
|
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
@${ECHO_CMD} "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
|
|
|
|
do-install:
|
|
(while read cmd; do \
|
|
if ${FILE} ${WRKSRC}/$$cmd | ${GREP} -q "shell script"; then \
|
|
${INSTALL_SCRIPT} ${WRKSRC}/$$cmd \
|
|
${STAGEDIR}${PREFIX}/bin; \
|
|
else \
|
|
${INSTALL_PROGRAM} ${WRKSRC}/$$cmd \
|
|
${STAGEDIR}${PREFIX}/bin; \
|
|
fi \
|
|
done) < ${WRKSRC}/../package/commands
|
|
.if ${PORT_OPTIONS:MMAN}
|
|
${INSTALL_MAN} ${WRKDIR}/daemontools-man/*.8 \
|
|
${STAGEDIR}${MAN8PREFIX}/man/man8/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|