2007-09-15 17:14:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2007/09/15 21:14:02 merdely Exp $
|
2004-09-30 18:35:15 -04:00
|
|
|
|
2007-09-15 17:14:00 -04:00
|
|
|
COMMENT= daemontools alike replacement for init
|
2004-09-30 18:35:15 -04:00
|
|
|
|
2006-12-26 10:04:54 -05:00
|
|
|
DISTNAME= runit-1.7.2
|
2004-09-30 18:35:15 -04:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.smarden.org/runit/
|
|
|
|
|
|
|
|
MAINTAINER= Lars Hansson <lars@unet.net.ph>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-20 05:35:34 -05:00
|
|
|
WANTLIB= c
|
2004-09-30 18:35:15 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2004-10-11 16:01:25 -04:00
|
|
|
WRKDIST= ${WRKDIR}/admin/${DISTNAME}
|
2004-09-30 18:35:15 -04:00
|
|
|
WRKSRC= ${WRKDIST}/src
|
2006-12-26 10:04:54 -05:00
|
|
|
SBINPROGRAMS= chpst runit runit-init runsv runsvchdir runsvdir \
|
|
|
|
sv svlogd utmpset
|
|
|
|
MANPAGES= chpst.8 runit.8 runit-init.8 runsv.8 runsvchdir.8 runsvdir.8 \
|
|
|
|
sv.8 svlogd.8 utmpset.8
|
|
|
|
DOCS1= benefits.html chpst.8.html dependencies.html faq.html \
|
|
|
|
index.html install.html replaceinit.html runit-init.8.html \
|
|
|
|
runit.8.html runlevels.html runscripts.html runsv.8.html \
|
|
|
|
runsvchdir.8.html runsvdir.8.html sv.8.html svlogd.8.html \
|
|
|
|
upgrade.html useinit.html index.html utmpset.8.html
|
2004-09-30 18:35:15 -04:00
|
|
|
DOCS2= CHANGES README COPYING THANKS
|
|
|
|
EXAMPLES= etc/2 etc/openbsd/1 etc/openbsd/3 etc/openbsd/ctrlaltdel
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
echo "${CC} ${CFLAGS} ${COPTS}" > ${WRKSRC}/conf-cc
|
|
|
|
echo "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIST} && package/compile
|
|
|
|
|
2004-10-02 19:07:01 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKDIST}/compile && make check
|
|
|
|
|
2004-09-30 18:35:15 -04:00
|
|
|
do-install:
|
|
|
|
.for pgm in ${SBINPROGRAMS}
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/command/${pgm} ${PREFIX}/sbin/
|
|
|
|
.endfor
|
2006-12-26 10:04:54 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/etc/2 ${PREFIX}/sbin/runsvdir-start
|
2004-09-30 18:35:15 -04:00
|
|
|
.for page in ${MANPAGES}
|
|
|
|
${INSTALL_MAN} ${WRKDIST}/man/${page} ${PREFIX}/man/man8
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/runit
|
|
|
|
.for doc in ${DOCS1}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/${doc} ${PREFIX}/share/doc/runit/
|
|
|
|
.endfor
|
|
|
|
.for doc in ${DOCS2}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/package/${doc} ${PREFIX}/share/doc/runit/
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/runit
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/rc.shutdown ${PREFIX}/share/examples/runit/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/runit/init
|
|
|
|
.for file in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/${file} ${PREFIX}/share/examples/runit/init/
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/runit/init/getty-ttyC4
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/etc/openbsd/getty-ttyC4/run \
|
|
|
|
${PREFIX}/share/examples/runit/init/getty-ttyC4/run
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/etc/openbsd/getty-ttyC4/finish \
|
|
|
|
${PREFIX}/share/examples/runit/init/getty-ttyC4/finish
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|