Files
ports/sysutils/s6-rc/Makefile
T
Jan Bramkamp 6ae2f7ba1a sysutils/s6-rc: Upgrade to version 0.6.0.0
Changes from NEWS file:
 - Bugfixes.
 - Support for shared libraries on MacOS.
 - New: s6-rc-repo-* and s6-rc-set-* binaries, the "repo"
collection of tools to help with management of source definition
directories.
 - The boot database is now configurable at build time (--bootdb)
and the default is now /etc/s6-rc/compiled/current.
 - Some commands now accept long options.
 - s6-rc-compile is less verbose on -v2.
2026-03-08 23:24:49 +01:00

68 lines
2.2 KiB
Makefile

PORTNAME= s6-rc
DISTVERSION= 0.6.0.0
CATEGORIES= sysutils
MASTER_SITES= http://www.skarnet.org/software/${PORTNAME}/
MAINTAINER= crest@rlwinm.de
COMMENT= Skarnet.org service manager
WWW= https://www.skarnet.org/software/s6-rc/
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= execline>=2.9.8.1:lang/execline \
skalibs>=2.14.5.1:devel/skalibs \
s6>=2.14.0.1:sysutils/s6
RUN_DEPENDS= execline>=2.9.8.1:lang/execline \
skalibs>=2.14.5.1:devel/skalibs \
s6>=2.14.0.1:sysutils/s6
LIB_DEPENDS= libs6.so:sysutils/s6 \
libskarnet.so:devel/skalibs
FLAVORS= hier run
FLAVOR?= ${FLAVORS:[1]}
USES= gmake
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
run_PKGNAMESUFFIX= -run
# The only difference between the hier and the run flavors is the default live directory path
# hard coded into the s6-rc utilities allowing their use without passing -l <live_dir>.
# A FreeBSD port should follow the operating system file system layout, but there is a corner
# case where s6-rc replacing base system init system *has* to deviate from hier(7).
# The problem is that s6-rc requires a writeable file system
# (to track service state, bind unix sockets, create named fifos)
# very early in the boot process before FreeBSD used to mount /var and /var/run.
# One way to satisfy this requirement is to mount a tmpfs directly under /.
# The live directory shouldn't be kept on /tmp because this often a small
# file system that could be exhausted by accident breaking s6-rc.
# Adding a small /run tmpfs dedicated to s6-rc solves this problem.
.if ${FLAVOR} == run # Follow hier(7)
LIVEDIR?= /run/${PORTNAME}
.endif
LIVEDIR?= /var/run/${PORTNAME}
CONFIGURE_ARGS+=--prefix=${PREFIX} \
--with-include=${LOCALBASE}/include \
--with-lib=${LOCALBASE}/lib \
--with-lib=${LOCALBASE}/lib/execline \
--with-lib=${LOCALBASE}/lib/s6 \
--with-dynlib=${LOCALBASE}/lib \
--livedir=${LIVEDIR} \
--enable-shared
DOCS= AUTHORS COPYING INSTALL README doc/*.html
OPTIONS_DEFINE= DOCS
post-install:
.for d in bin libexec
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${d}/*
.endfor
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libs6rc.so.${PORTVERSION}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>