Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a startup script for net/vpnc, as mentioned on tech-pkg@

Set and using $pidfile as suggested by joerg@

ok hubertf@
  • Loading branch information...
commit 268865ffe2f2db728c8c2bc82d049f3a14a55bbf 1 parent ac5c991
khorben authored
Showing with 23 additions and 3 deletions.
  1. +3 −2 net/vpnc/Makefile
  2. +2 −1  net/vpnc/PLIST
  3. +18 −0 net/vpnc/files/vpnc.sh
View
5 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
View
3  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
View
18 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"
Please sign in to comment.
Something went wrong with that request. Please try again.