blob: 335baafac3f358a35b9550b0a98047bbd9439ce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.9 2001/10/22 19:03:42 zuntum Exp $
# FreeBSD Id: ports/sysutils/daemontools/Makefile,v 1.8 2000/12/03 05:16:41 steve Exp
DISTNAME= daemontools-0.70
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ \
ftp://cr.yp.to/daemontools/ \
ftp://ftp.innominate.org/pub/pape/djb/
DISTFILES= ${DISTNAME}.tar.gz \
${DISTNAME}-man-20001116.tar.gz
MAINTAINER= zuntum@netbsd.org
HOMEPAGE= http://cr.yp.to/daemontools.html
COMMENT= Service monitoring and logging utilities by djb
RESTRICTED= "Redistribution of modified package is forbidden"
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
ALL_TARGET= it
INSTALL_TARGET= setup check
SAMPLERC= svscan.sh.sample
SERVICEDIR?= /var/spool/service
PLIST_SUBST+= SERVICEDIR=${SERVICEDIR}
DEINSTALL_FILE= ${WRKDIR}/.DEINSTALL
post-patch:
@${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
@${ECHO} ${CC} ${STRIPFLAG} > ${WRKSRC}/conf-ld
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
post-build:
${SED} -e "s,@@PREFIX@@,${PREFIX}," \
-e "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
${SED} "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/daemontools
${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} \
${PREFIX}/share/examples/daemontools
${INSTALL_DATA_DIR} ${SERVICEDIR}
cd ${WRKDIR}/${DISTNAME}-man && \
${INSTALL_MAN} *.8 ${PREFIX}/man/man8
.include "../../mk/bsd.pkg.mk"
|