summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2012-10-01 00:41:27 +0000
committerkhorben <khorben@pkgsrc.org>2012-10-01 00:41:27 +0000
commit8d67c6531951ef174432635cd184c4ce7716a803 (patch)
tree7fa1b6c37d5f32d6c0f4bc39e3c396a8087e3322 /net
parentae926236b59013c5ae18bfe7cf2dcf3acf833bdf (diff)
downloadpkgsrc-8d67c6531951ef174432635cd184c4ce7716a803.tar.gz
Added a startup script for net/vpnc, as mentioned on tech-pkg@
Set and using $pidfile as suggested by joerg@ ok hubertf@
Diffstat (limited to 'net')
-rw-r--r--net/vpnc/Makefile5
-rw-r--r--net/vpnc/PLIST3
-rwxr-xr-xnet/vpnc/files/vpnc.sh18
3 files changed, 23 insertions, 3 deletions
diff --git a/net/vpnc/Makefile b/net/vpnc/Makefile
index 589abd4f106..14355f92e9a 100644
--- a/net/vpnc/Makefile
+++ b/net/vpnc/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.29 2012/09/29 21:20:12 hubertf Exp $
+# $NetBSD: Makefile,v 1.30 2012/10/01 00:41:27 khorben Exp $
#
DISTNAME= vpnc-0.5.3
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= net security
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/
@@ -43,6 +43,7 @@ CONF_FILES_MODE= 0600
CONF_FILES_PERMS+= ${EGDIR}/vpnc-script \
${PKG_SYSCONFDIR}/vpnc/vpnc-script \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
+RCD_SCRIPTS= vpnc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vpnc ${DESTDIR}${PREFIX}/sbin
diff --git a/net/vpnc/PLIST b/net/vpnc/PLIST
index a01e188c5cd..132a2d89cc6 100644
--- a/net/vpnc/PLIST
+++ b/net/vpnc/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:09:47 joerg Exp $
+@comment $NetBSD: PLIST,v 1.7 2012/10/01 00:41:27 khorben Exp $
bin/cisco-decrypt
bin/pcf2vpnc
bin/vpnc-disconnect
@@ -7,5 +7,6 @@ man/man1/pcf2vpnc.1
man/man8/vpnc.8
sbin/vpnc
share/doc/vpnc/README
+share/examples/rc.d/vpnc
share/examples/vpnc/default.conf
share/examples/vpnc/vpnc-script
diff --git a/net/vpnc/files/vpnc.sh b/net/vpnc/files/vpnc.sh
new file mode 100755
index 00000000000..8a53c94b4e4
--- /dev/null
+++ b/net/vpnc/files/vpnc.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: vpnc.sh,v 1.1 2012/10/01 00:41:27 khorben Exp $
+#
+
+# PROVIDE: vpnc
+# REQUIRE: NETWORKING
+
+[ -f /etc/rc.subr ] && . /etc/rc.subr
+
+name="vpnc"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/${name}.pid"
+vpnc_flags="--pid-file ${pidfile}"
+
+load_rc_config $name
+run_rc_command "$1"