blob: fcac709244ca71f012d3496f63d1056e6496aa71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Colin Booth <colin@heliocat.net>
# $FreeBSD$
PORTNAME= s6
PORTVERSION= 2.2.2.0
CATEGORIES= sysutils
MASTER_SITES= http://www.skarnet.org/software/${PORTNAME}/
MAINTAINER= colin@heliocat.net
COMMENT= skarnet.org supervision suite
LICENSE= ISCL
BUILD_DEPENDS= skalibs>=2.3.8.0:${PORTSDIR}/devel/skalibs \
execline>=2.1.4.2:${PORTSDIR}/lang/execline
RUN_DEPENDS= execlineb:${PORTSDIR}/lang/execline
USES= gmake
USE_RC_SUBR= s6
SERVICE_DIR?= /var/service
SUB_FILES= s6-svscan_finish s6-svscan-log_run s6-svscanboot s6-svscan_env_PATH
SUB_LIST= SERVICE_DIR="${SERVICE_DIR}"
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--prefix=${PREFIX} \
--with-default-path=${LOCALBASE}/bin:/usr/bin:/bin \
--with-include=${LOCALBASE}/include \
--with-dynlib=${LOCALBASE}/lib \
--with-lib=${LOCALBASE}/lib/skalibs \
--with-lib=${LOCALBASE}/lib/execline \
--enable-shared
DOCS= AUTHORS COPYING INSTALL README doc/*.html
OPTIONS_DEFINE= DOCS
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libs6.so.${PORTVERSION}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/s6lockd-helper
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_MAN} ${DOCS} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR} && ${INSTALL_SCRIPT} s6-svscanboot \
${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${ETCDIR}/s6-svscan/env
cd ${WRKDIR} && ${INSTALL_SCRIPT} s6-svscan_finish \
${STAGEDIR}${ETCDIR}/s6-svscan/finish.sample
cd ${WRKDIR} && ${INSTALL_DATA} s6-svscan_env_PATH \
${STAGEDIR}${ETCDIR}/s6-svscan/env/PATH.sample
@${MKDIR} ${STAGEDIR}${ETCDIR}/s6-svscan-log
cd ${WRKDIR} && ${INSTALL_SCRIPT} s6-svscan-log_run \
${STAGEDIR}${ETCDIR}/s6-svscan-log/run.sample
.include <bsd.port.mk>
|