freebsd-ports/sysutils/runit/Makefile

62 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: runit
# Date created: 2003-06-20
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= runit
2009-07-21 02:51:44 +02:00
PORTVERSION= 2.0.0
CATEGORIES= sysutils
MASTER_SITES= http://smarden.org/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Service supervision tools compatible with DJB daemontools
USE_RC_SUBR= runsvdir.sh
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default
SERVICE_DIR?= /var/service
SUB_LIST= SERVICE_DIR="${SERVICE_DIR}"
2004-08-07 00:39:58 +02:00
MAN8= chpst.8 runit-init.8 runit.8 runsv.8 runsvchdir.8 \
runsvdir.8 sv.8 svlogd.8 utmpset.8
DOCS= package/CHANGES package/COPYING package/README \
package/THANKS doc/*.html
CONFIG= etc/freebsd/1 etc/2 etc/freebsd/3 etc/freebsd/ctrlaltdel \
etc/freebsd/getty-ttyv4/run etc/freebsd/getty-ttyv4/finish
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
BROKEN= fails to build with new utmpx
.endif
do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
do-build:
2004-08-07 00:39:58 +02:00
cd ${WRKSRC} && package/compile && package/check
@${MKDIR} ${WRKDIR}/etc/getty-ttyv4
.for file in ${CONFIG}
@${SED} -e 's!/etc/runit!${PREFIX}/etc/runit!g' \
-e 's!/service!${SERVICE_DIR}!g' \
-e 's!/usr/local!${PREFIX}!g' \
${WRKSRC}/${file} > ${WRKDIR}/${file:S!freebsd/!!}.sample
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/sbin
2004-08-07 00:39:58 +02:00
${INSTALL_MAN} ${WRKSRC}/man/*.8 ${MANPREFIX}/man/man8
@${MKDIR} ${PREFIX}/etc/runit/getty-ttyv4
${INSTALL_SCRIPT} ${WRKDIR}/etc/[123c]* ${PREFIX}/etc/runit
${INSTALL_SCRIPT} ${WRKDIR}/etc/getty-ttyv4/* \
${PREFIX}/etc/runit/getty-ttyv4
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>