1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/sysutils/daemontools/Makefile
Peter Pentchev fae6e72bf3 Add Gerritt Pape's patch to skip the timestamp when matching incoming
log messages against the specified patterns.  Bump PORTREVISION.

While I'm here, do some more maintenance:
- regenerate the distinfo file to drop the MD5 checksums
- rephrase the IGNORE messages
- declare the port's license as public domain

Requested by:	Matthias Teege <matthias@mteege.de> (the timestamp patch)
2010-11-12 13:41:43 +00:00

100 lines
2.7 KiB
Makefile

# New ports collection makefile for: daemontools
# Date created: 09 June 1998
# Whom: Dom Mitchell <dom@myrddin.demon.co.uk>
#
# $FreeBSD$
#
PORTNAME= daemontools
PORTVERSION= 0.76
PORTREVISION= 16
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ \
ftp://cr.yp.to/daemontools/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= roam@FreeBSD.org
COMMENT= Service monitoring and logging utilities by djb
LICENSE= PD
LICENSE_NAME= public domain
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_TEXT= The daemontools-0.76.tar.gz archive is in the public domain as of 2007.12.28.
OPTIONS= MAN "Install Gerrit Pape's manual pages" on \
S_EARLY "Start early, before the normal daemons" off \
S_NORMAL "Start normally in the usual boot sequence" on \
SIGQ12 "Add svc support for QUIT, USR1, and USR2 signals" off \
TESTS "Run the test suite, fails on NFS-mounted workdir" on
.include <bsd.port.pre.mk>
.if defined(WITH_S_EARLY)
. if defined(WITH_S_NORMAL)
IGNORE= needs exactly one of S_EARLY and S_NORMAL to be specified
. else
SVSCAN_REQUIRE?= SERVERS
SVSCAN_BEFORE?= DAEMON
. endif
.else
. if defined(WITH_S_NORMAL)
SVSCAN_REQUIRE?= LOGIN
SVSCAN_BEFORE?=
. else
IGNORE= needs either S_EARLY or S_NORMAL to be specified
. endif
.endif
SUB_LIST+= SVSCAN_REQUIRE=${SVSCAN_REQUIRE} SVSCAN_BEFORE=${SVSCAN_BEFORE}
.if !defined(WITHOUT_MAN)
MANDATE= -20010714
MASTER_SITES+= http://smarden.org/pape/djb/manpages/:1
DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:1
MAN8= envdir.8 envuidgid.8 fghack.8 multilog.8 pgrphack.8 \
readproctitle.8 setlock.8 setuidgid.8 softlimit.8 \
supervise.8 svc.8 svok.8 svscan.8 svscanboot.8 svstat.8 \
tai64n.8 tai64nlocal.8
MANCOMPRESSED= no
.endif
.if defined(WITH_SIGQ12)
#PATCH_SITES+= http://thedjbway.org/patches/:sigq12
PATCH_SITES+= ${MASTER_SITE_LOCAL:S/%SUBDIR%\//roam\/sysutils\/daemontools\/:sigq12/} \
http://people.FreeBSD.org/~roam/ports/sysutils/daemontools/:sigq12
PATCHFILES+= daemontools-0.76.sigq12.patch:sigq12
PATCH_DIST_STRIP= -p2
.endif
USE_RC_SUBR= svscan
WRKSRC= ${WRKDIR}/admin/${DISTNAME}/src
ALL_TARGET= it
INSTALL_TARGET= setup check
.if defined(WITHOUT_TESTS)
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 ${PREFIX}/bin; \
else \
${INSTALL_PROGRAM} ${WRKSRC}/$$cmd ${PREFIX}/bin; \
fi \
done) < ${WRKSRC}/../package/commands
post-install:
.if !defined(WITHOUT_MAN)
@${INSTALL_MAN} ${WRKDIR}/daemontools-man/*.8 ${PREFIX}/man/man8/
.endif
.include <bsd.port.post.mk>