summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/dante/Makefile5
-rw-r--r--net/dante/files/sockd.sh16
2 files changed, 20 insertions, 1 deletions
diff --git a/net/dante/Makefile b/net/dante/Makefile
index ffe89ad6725..9ee852c8bbf 100644
--- a/net/dante/Makefile
+++ b/net/dante/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2007/05/25 00:28:19 rh Exp $
+# $NetBSD: Makefile,v 1.21 2007/12/04 13:30:06 abs Exp $
DISTNAME= dante-1.1.19
+PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= ftp://ftp.inet.no/pub/socks/
@@ -17,6 +18,8 @@ CONFIGURE_ARGS+= --with-sockd-conf=${PKG_SYSCONFDIR}/sockd.conf
CHECK_PORTABILITY_SKIP= contrib/StartupItems.Dante
+RCD_SCRIPTS= sockd
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dante
.for cfg in sockd.conf socks-simple.conf socks.conf
diff --git a/net/dante/files/sockd.sh b/net/dante/files/sockd.sh
new file mode 100644
index 00000000000..8c783db119f
--- /dev/null
+++ b/net/dante/files/sockd.sh
@@ -0,0 +1,16 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: sockd.sh,v 1.1 2007/12/04 13:30:06 abs Exp $
+#
+# PROVIDE: sockd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="sockd"
+command="@PREFIX@/sbin/${name}"
+command_args="-D" # run as a daemon
+required_files="@PKG_SYSCONFDIR@/sockd.conf"
+
+load_rc_config $name
+run_rc_command "$1"