2001-03-27 19:58:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2001/03/27 17:58:47 zuntum Exp $
|
2000-12-27 16:44:55 +01:00
|
|
|
# FreeBSD Id: ports/sysutils/daemontools/Makefile,v 1.8 2000/12/03 05:16:41 steve Exp
|
|
|
|
|
|
|
|
DISTNAME= daemontools-0.70
|
|
|
|
CATEGORIES= sysutils
|
2001-02-26 04:41:29 +01:00
|
|
|
MASTER_SITES= http://cr.yp.to/daemontools/ \
|
|
|
|
ftp://cr.yp.to/daemontools/ \
|
2001-03-27 19:58:47 +02:00
|
|
|
ftp://ftp.innominate.org/gpa/djb/
|
2001-02-26 04:41:29 +01:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
|
|
|
${DISTNAME}-man.tar.gz
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2001-03-16 21:51:13 +01:00
|
|
|
MAINTAINER= zuntum@netbsd.org
|
2000-12-27 16:44:55 +01:00
|
|
|
HOMEPAGE= http://cr.yp.to/daemontools.html
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Service monitoring and logging utilities by djb
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2001-03-06 17:16:46 +01:00
|
|
|
RESTRICTED= "Redistribution of modified package is forbidden"
|
|
|
|
NO_BIN_ON_CDROM=${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
|
2000-12-27 16:44:55 +01:00
|
|
|
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:
|
2001-03-26 19:56:09 +02:00
|
|
|
@${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
|
|
|
|
@${ECHO} ${CC} ${STRIPFLAG} > ${WRKSRC}/conf-ld
|
|
|
|
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
|
2000-12-27 16:44:55 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${SED} \
|
|
|
|
-e "s!/usr/local/!${PREFIX}/!" \
|
2001-02-26 04:41:29 +01:00
|
|
|
-e "s!/service!${SERVICEDIR}!g" \
|
2000-12-27 16:44:55 +01:00
|
|
|
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
|
|
|
|
@${SED} \
|
2001-02-26 04:41:29 +01:00
|
|
|
-e "s!/service!${SERVICEDIR}!g" \
|
2000-12-27 16:44:55 +01:00
|
|
|
${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}
|
|
|
|
|
2001-02-26 04:41:29 +01:00
|
|
|
cd ${WRKDIR}/${DISTNAME}-man && ${INSTALL_MAN} envdir.8 envuidgid.8 \
|
|
|
|
fghack.8 multilog.8 setlock.8 setuidgid.8 softlimit.8 \
|
|
|
|
supervise.8 svc.8 svok.8 svscan.8 svstat.8 tai64n.8 \
|
|
|
|
tai64nlocal.8 ${PREFIX}/man/man8
|
|
|
|
|
2000-12-27 16:44:55 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|