summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-08-18 22:19:15 +0000
committerwiedi <wiedi@pkgsrc.org>2014-08-18 22:19:15 +0000
commit28f77b95f74d1b9c33bc596029597346621e0435 (patch)
treef788783a1e79da1fc60c7063c98a8c1391b125f1 /security
parentf7aba9788d3f84a53710b5b42d49a550a2e40d6b (diff)
downloadpkgsrc-28f77b95f74d1b9c33bc596029597346621e0435.tar.gz
change smf manifest to use startd/duration child, this prevents useless creation of pid files
Diffstat (limited to 'security')
-rw-r--r--security/spiped/Makefile7
-rw-r--r--security/spiped/files/smf/manifest.xml4
-rw-r--r--security/spiped/files/smf/spiped.sh4
3 files changed, 10 insertions, 5 deletions
diff --git a/security/spiped/Makefile b/security/spiped/Makefile
index 65680af65ef..fa998e17208 100644
--- a/security/spiped/Makefile
+++ b/security/spiped/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2014/07/24 21:21:09 jperkin Exp $
+# $NetBSD: Makefile,v 1.9 2014/08/18 22:19:15 wiedi Exp $
DISTNAME= spiped-1.3.1
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= net security
MASTER_SITES= http://www.tarsnap.com/spiped/
EXTRACT_SUFX= .tgz
@@ -18,6 +18,8 @@ LDADD_EXTRA= ${COMPILER_RPATH_FLAG:Q}${BUILDLINK_PREFIX.openssl}/lib
CFLAGS.SunOS+= -D__EXTENSIONS__
+SMF_METHODS= spiped
+
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
LDADD_EXTRA+= -lsocket -lnsl
@@ -27,7 +29,6 @@ MAKE_ENV+= LDADD_EXTRA="${LDADD_EXTRA}"
INSTALLATION_DIRS+= share/doc/spiped ${PKGMANDIR}/man1
-SMF_METHODS= spiped
.if ${INIT_SYSTEM} == "smf"
MESSAGE_SRC+= MESSAGE.smf
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
diff --git a/security/spiped/files/smf/manifest.xml b/security/spiped/files/smf/manifest.xml
index a1bbb549748..b164e5ad14c 100644
--- a/security/spiped/files/smf/manifest.xml
+++ b/security/spiped/files/smf/manifest.xml
@@ -16,6 +16,10 @@
<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>
<stability value="Evolving"/>
<template>
diff --git a/security/spiped/files/smf/spiped.sh b/security/spiped/files/smf/spiped.sh
index 43feaddc6d5..80af2e3f6fb 100644
--- a/security/spiped/files/smf/spiped.sh
+++ b/security/spiped/files/smf/spiped.sh
@@ -1,6 +1,6 @@
#!@SMF_METHOD_SHELL@
#
-# $NetBSD: spiped.sh,v 1.1 2014/05/14 13:53:53 wiedi Exp $
+# $NetBSD: spiped.sh,v 1.2 2014/08/18 22:19:16 wiedi Exp $
#
# Init script for spiped.
#
@@ -28,6 +28,6 @@ case "$MODE" in
exit $SMF_EXIT_ERR_CONFIG
esac
-@LOCALBASE@/bin/spiped $MODEFLAG -s "$SOURCE" -t "$TARGET" -k "$KEY"
+@LOCALBASE@/bin/spiped -F $MODEFLAG -s "$SOURCE" -t "$TARGET" -k "$KEY"
exit $SMF_EXIT_OK