2003-07-18 00:50:55 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2003/07/17 22:53:30 grant 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-10-22 15:42:28 +02:00
|
|
|
ftp://ftp.innominate.org/pub/pape/djb/
|
2001-02-26 04:41:29 +01:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
2001-10-22 15:42:28 +02:00
|
|
|
${DISTNAME}-man-20001116.tar.gz
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2003-07-18 00:50:55 +02: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
|
2002-04-18 18:19:17 +02:00
|
|
|
@${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
|
2001-03-26 19:56:09 +02:00
|
|
|
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
|
2000-12-27 16:44:55 +01:00
|
|
|
|
|
|
|
post-build:
|
2001-10-22 21:03:42 +02:00
|
|
|
${SED} -e "s,@@PREFIX@@,${PREFIX}," \
|
|
|
|
-e "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
|
2000-12-27 16:44:55 +01:00
|
|
|
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
|
2001-10-22 21:03:42 +02:00
|
|
|
${SED} "s,@@SERVICEDIR@@,${SERVICEDIR},g" \
|
2000-12-27 16:44:55 +01:00
|
|
|
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/daemontools
|
2001-10-22 21:03:42 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} \
|
|
|
|
${PREFIX}/share/examples/daemontools
|
2000-12-27 16:44:55 +01:00
|
|
|
${INSTALL_DATA_DIR} ${SERVICEDIR}
|
|
|
|
|
2001-10-22 21:03:42 +02:00
|
|
|
cd ${WRKDIR}/${DISTNAME}-man && \
|
|
|
|
${INSTALL_MAN} *.8 ${PREFIX}/man/man8
|
2001-02-26 04:41:29 +01:00
|
|
|
|
2000-12-27 16:44:55 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|