1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/sysutils/runit/Makefile
Chris Rees 6759731c83 Fix link without gcc
Reported by:	pointyhat

While here, stageify and tidy rc script
2013-10-30 16:25:29 +00:00

55 lines
1.6 KiB
Makefile

# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= runit
PORTVERSION= 2.1.1
CATEGORIES= sysutils
MASTER_SITES= http://smarden.org/${PORTNAME}/ \
http://www.bayofrum.net/dist/${PORTNAME}/
MAINTAINER= crees@FreeBSD.org
COMMENT= Service supervision tools compatible with DJB daemontools
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/package/COPYING
USE_RC_SUBR= runsvdir
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
SERVICE_DIR?= /var/service
SUB_LIST= SERVICE_DIR="${SERVICE_DIR}"
PORTDOCS= *
DOCS= package/CHANGES 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
do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-ld
do-build:
cd ${WRKSRC} && package/compile && package/check
@${MKDIR} ${WRKDIR}/etc/getty-ttyv4
.for file in ${CONFIG}
@${SED} -e 's!/etc/runit!${ETCDIR}!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/* ${STAGEDIR}${PREFIX}/sbin
@${INSTALL_MAN} ${WRKSRC}/man/* ${STAGEDIR}${PREFIX}/man/man8/
@${MKDIR} ${STAGEDIR}${ETCDIR}/getty-ttyv4
@${INSTALL_SCRIPT} ${WRKDIR}/etc/[123c]* ${STAGEDIR}${ETCDIR}
@${INSTALL_SCRIPT} ${WRKDIR}/etc/getty-ttyv4/* \
${STAGEDIR}${ETCDIR}/getty-ttyv4
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for doc in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
. endfor
.include <bsd.port.mk>