aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2017-11-22 00:56:24 +0800
committerswills <swills@FreeBSD.org>2017-11-22 00:56:24 +0800
commit84330c3633a909c25455cca49803d96ac9159c1e (patch)
treea617547a2e64c42adc38c9e006069b7b0ece4e3c /sysutils
parent9d4f1a37cbaba58f9e068d88ec4acea75ab4d189 (diff)
downloadfreebsd-ports-gnome-84330c3633a909c25455cca49803d96ac9159c1e.tar.gz
freebsd-ports-gnome-84330c3633a909c25455cca49803d96ac9159c1e.tar.zst
freebsd-ports-gnome-84330c3633a909c25455cca49803d96ac9159c1e.zip
sysutils/daemontools-encore: Fix RC script
PR: 211961 Submitted by: Christian Ullrich <chris@chrullrich.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/daemontools-encore/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/daemontools-encore/Makefile b/sysutils/daemontools-encore/Makefile
index 4cb1ec22cf20..677d748d108a 100644
--- a/sysutils/daemontools-encore/Makefile
+++ b/sysutils/daemontools-encore/Makefile
@@ -18,6 +18,28 @@ CONFLICTS= daemontools-[0-9]* freedt-[0-9]* serialmail-[0-9]*
ALL_TARGET= default
+S_EARLY_DESC= Start early, before the normal daemons
+S_NORMAL_DESC= Start normally in the usual boot sequence
+
+OPTIONS_SINGLE= SEQ
+OPTIONS_SINGLE_SEQ= S_EARLY S_NORMAL
+
+OPTIONS_DEFAULT= S_NORMAL
+
+.include <bsd.port.options.mk>
+
+. if ${PORT_OPTIONS:MS_EARLY}
+SVSCAN_REQUIRE?= SERVERS
+SVSCAN_BEFORE?= DAEMON
+. endif
+
+. if ${PORT_OPTIONS:MS_NORMAL}
+SVSCAN_REQUIRE?= LOGIN
+SVSCAN_BEFORE?=
+. endif
+
+SUB_LIST+= SVSCAN_REQUIRE=${SVSCAN_REQUIRE} SVSCAN_BEFORE=${SVSCAN_BEFORE}
+
USE_RC_SUBR= svscan
MANFILES= \