pkgsrc/sysutils/daemontools/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.38 2017/10/03 00:21:44 schmonz Exp $
2005-03-23 01:57:20 +01:00
DISTNAME= daemontools-0.76
PKGREVISION= 2
2005-03-23 01:57:20 +01:00
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ ftp://cr.yp.to/daemontools/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
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
LICENSE= public-domain
MANPAGES= ${DISTNAME}-man-20020131.tar.gz
SITES.${MANPAGES}= http://smarden.org/pape/djb/manpages/
DJB_RESTRICTED= no
WRKSRC= ${WRKDIR}/admin/${PKGNAME_NOREV}
2006-01-11 10:27:27 +01:00
DJB_SLASHPACKAGE= YES
2005-03-23 01:57:20 +01:00
CMDDIR= ${WRKSRC}/command
USE_TOOLS+= file
INSTALLATION_DIRS= bin man ${PKGMANDIR}/man8
2004-07-26 21:16:09 +02:00
SUBST_FILES.djbware+= src/error.h
MAKE_ENV+= PKGSRC_SHELL=${TOOLS_PLATFORM.sh}
do-install:
(while read cmd; do \
if ${FILE_CMD} ${CMDDIR}/$$cmd | ${EGREP} "(executable .* script|shell script|text)" >/dev/null 2>&1; then \
2009-02-16 19:44:40 +01:00
${INSTALL_SCRIPT} ${CMDDIR}/$$cmd ${DESTDIR}${PREFIX}/bin; \
else \
2009-02-16 19:44:40 +01:00
${INSTALL_PROGRAM} ${CMDDIR}/$$cmd ${DESTDIR}${PREFIX}/bin; \
fi \
done) < ${WRKSRC}/package/commands
cd ${WRKDIR}/*-man; for i in 8; do \
2009-02-16 19:44:40 +01:00
for j in *.$$i; do ${INSTALL_MAN} $$j ${DESTDIR}${PREFIX}/${PKGMANDIR}/man$$i; done \
done
2005-03-23 01:51:09 +01:00
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"