2006-07-27 20:48:02 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2006/07/27 18:48:03 jlam Exp $
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2005-03-23 01:57:20 +01:00
|
|
|
DISTNAME= daemontools-0.76
|
2006-01-14 08:00:30 +01:00
|
|
|
PKGREVISION= 1
|
2005-03-23 01:57:20 +01:00
|
|
|
CATEGORIES= sysutils
|
2005-04-10 00:36:56 +02:00
|
|
|
MASTER_SITES= http://cr.yp.to/daemontools/ ftp://cr.yp.to/daemontools/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2005-03-23 01:57:20 +01:00
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
|
|
HOMEPAGE= http://cr.yp.to/daemontools.html
|
|
|
|
COMMENT= Service monitoring and logging utilities by djb
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2005-04-10 00:36:56 +02:00
|
|
|
MANPAGES= ${DISTNAME}-man-20020131.tar.gz
|
2006-07-27 20:48:02 +02:00
|
|
|
SITES.${MANPAGES}= http://smarden.org/pape/djb/manpages/
|
2005-04-10 00:36:56 +02:00
|
|
|
|
2005-03-23 01:57:20 +01:00
|
|
|
DJB_RESTRICTED= YES
|
2001-03-06 17:16:46 +01:00
|
|
|
|
2004-07-26 21:16:09 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2005-05-17 10:41:36 +02:00
|
|
|
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
|
2006-01-11 10:27:27 +01:00
|
|
|
DJB_SLASHPACKAGE= YES
|
2004-07-22 03:16:53 +02:00
|
|
|
|
2005-03-23 01:57:20 +01:00
|
|
|
CMDDIR= ${WRKSRC}/command
|
2000-12-27 16:44:55 +01:00
|
|
|
|
2006-01-14 08:00:30 +01:00
|
|
|
INSTALLATION_DIRS= bin man man/man8
|
2004-07-26 21:16:09 +02:00
|
|
|
|
2006-01-13 19:01:52 +01:00
|
|
|
SUBST_FILES.djbware+= src/error.h
|
|
|
|
|
2004-05-02 19:50:05 +02:00
|
|
|
do-install:
|
|
|
|
(while read cmd; do \
|
2004-08-25 19:20:56 +02:00
|
|
|
if ${FILE_CMD} ${CMDDIR}/$$cmd | ${EGREP} "(executable .* script|shell script|text)" >/dev/null 2>&1; then \
|
2004-05-02 19:50:05 +02:00
|
|
|
${INSTALL_SCRIPT} ${CMDDIR}/$$cmd ${PREFIX}/bin; \
|
|
|
|
else \
|
|
|
|
${INSTALL_PROGRAM} ${CMDDIR}/$$cmd ${PREFIX}/bin; \
|
|
|
|
fi \
|
|
|
|
done) < ${WRKSRC}/package/commands
|
|
|
|
|
2000-12-27 16:44:55 +01:00
|
|
|
post-install:
|
2005-04-10 00:36:56 +02:00
|
|
|
cd ${WRKDIR}/*-man; for i in 8; do \
|
|
|
|
for j in *.$$i; do ${INSTALL_MAN} $$j ${PREFIX}/man/man$$i; done \
|
|
|
|
done
|
2001-02-26 04:41:29 +01:00
|
|
|
|
2005-03-23 01:51:09 +01:00
|
|
|
.include "../../mk/djbware.mk"
|
2000-12-27 16:44:55 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|