blob: 309d348c619f15d6867ae2273fc5bf52271c3c60 (
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
|
# $NetBSD: Makefile,v 1.2 2001/02/17 17:42:12 wiz 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/ \
http://zuntum.eik.pl/pkgsrc/distfiles/
PATCH_SITES= http://www.fefe.de/daemontools/
PATCHFILES= daemontools-0.70-man.diff.bz2
PATCH_DIST_STRIP= -p1
MAINTAINER= zuntum@eik.pl
HOMEPAGE= http://cr.yp.to/daemontools.html
COMMENT= Service monitoring and logging utilities by djb
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} -s" > ${WRKSRC}/conf-ld
@${ECHO} "${PREFIX}" > ${WRKSRC}/conf-home
post-build:
@${SED} \
-e "s!/usr/local/!${PREFIX}/!" \
-e "s!/var/service!${SERVICEDIR}!g" \
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
@${SED} \
-e "s!/var/service!${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}
.include "../../mk/bsd.pkg.mk"
|