daemontools: move SMF bits to daemontools-run.

Bump PKGREVISION.
This commit is contained in:
schmonz 2023-09-04 17:50:48 +00:00
parent 60844790c1
commit ab2c8f3292
2 changed files with 3 additions and 37 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.50 2023/07/08 11:11:10 otis Exp $
# $NetBSD: Makefile,v 1.51 2023/09/04 17:50:48 schmonz Exp $
DISTNAME= daemontools-0.76
PKGREVISION= 4
PKGREVISION= 5
CATEGORIES= sysutils
MASTER_SITES= http://cr.yp.to/daemontools/ ftp://cr.yp.to/daemontools/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
@ -19,7 +19,7 @@ CONFLICTS+= daemontools-encore-[0-9]*
WRKSRC= ${WRKDIR}/admin/${PKGNAME_NOREV}
DJB_SLASHPACKAGE= YES
TEST_TARGET= rts
TEST_DIRS= ${WRKSRC}/compile
TEST_DIRS= compile
CMDDIR= ${WRKSRC}/command
@ -36,8 +36,6 @@ SUBST_SED.paths+= -e 's|/command/svc |${PREFIX}/bin/svc |g'
MAKE_ENV+= PKGSRC_SHELL=${TOOLS_PLATFORM.sh}
SMF_NAME= svscanboot
.include "options.mk"
do-install:

View File

@ -1,32 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="export">
<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
<create_default_instance enabled="false"/>
<single_instance/>
<dependency name="network" grouping="require_all" restart_on="error" type="service">
<service_fmri value="svc:/milestone/network:default"/>
</dependency>
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<exec_method type="method" name="start" exec="@PREFIX@/bin/svscanboot" timeout_seconds="60">
<method_context>
<method_environment>
<envvar name="PATH" value="@PREFIX@/sbin:@PREFIX@/bin:/sbin:/usr/sbin:/usr/bin"/>
</method_environment>
</method_context>
</exec_method>
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
<property_group name="application" type="application"></property_group>
<property_group name="startd" type="framework">
<propval name="duration" type="astring" value="child"/>
<propval name="ignore_error" type="astring" value="core,signal"/>
</property_group>
<template>
<common_name>
<loctext xml:lang="C">Scan /service directory to start and monitor a collection of services.</loctext>
</common_name>
</template>
</service>
</service_bundle>