summaryrefslogtreecommitdiff
path: root/security/spiped
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-05-14 14:00:42 +0000
committerjperkin <jperkin@pkgsrc.org>2014-05-14 14:00:42 +0000
commitc8e9782415dd257c2677c67405a0be572e90236e (patch)
treeb0a668ab247b76cb0cc9bcb7d280eeda28284fef /security/spiped
parent98de45c383d563af93065ec311344e77a12c54ca (diff)
downloadpkgsrc-c8e9782415dd257c2677c67405a0be572e90236e.tar.gz
Use PKG_SYSCONFDIR.
Diffstat (limited to 'security/spiped')
-rw-r--r--security/spiped/MESSAGE.smf6
-rw-r--r--security/spiped/Makefile3
2 files changed, 5 insertions, 4 deletions
diff --git a/security/spiped/MESSAGE.smf b/security/spiped/MESSAGE.smf
index bc23d36c0d7..1d93b6c7187 100644
--- a/security/spiped/MESSAGE.smf
+++ b/security/spiped/MESSAGE.smf
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE.smf,v 1.1 2014/05/14 13:53:53 wiedi Exp $
+$NetBSD: MESSAGE.smf,v 1.2 2014/05/14 14:00:42 jperkin Exp $
This package supports multiple SMF instances.
@@ -9,7 +9,7 @@ $NetBSD: MESSAGE.smf,v 1.1 2014/05/14 13:53:53 wiedi Exp $
To generate a new keyfile:
- dd if=/dev/urandom bs=32 count=1 > /opt/local/etc/spiped_example.key
+ dd if=/dev/urandom bs=32 count=1 > ${PKG_SYSCONFDIR}/spiped_example.key
Add a example service instance:
@@ -19,6 +19,6 @@ $NetBSD: MESSAGE.smf,v 1.1 2014/05/14 13:53:53 wiedi Exp $
svccfg -s spiped:example setprop spiped/source = astring: [0.0.0.0]:2323
svccfg -s spiped:example setprop spiped/target = astring: [127.0.0.1]:23
svccfg -s spiped:example setprop \
- spiped/key = astring: "/opt/local/etc/spiped_example.key"
+ spiped/key = astring: "${PKG_SYSCONFDIR}/spiped_example.key"
===========================================================================
diff --git a/security/spiped/Makefile b/security/spiped/Makefile
index 835bd417b3e..0c8cc346f48 100644
--- a/security/spiped/Makefile
+++ b/security/spiped/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/05/14 13:53:53 wiedi Exp $
+# $NetBSD: Makefile,v 1.5 2014/05/14 14:00:42 jperkin Exp $
DISTNAME= spiped-1.3.1
PKGREVISION= 2
@@ -26,6 +26,7 @@ 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}
.endif
post-install: