From 32fe6dd74fda2f2fe1e059b1896f0e1c1ae75c20 Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 4 Dec 2007 13:30:06 +0000 Subject: Update dante to 1.1.19nb1: Add rc.d startup script --- net/dante/Makefile | 5 ++++- net/dante/files/sockd.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 net/dante/files/sockd.sh (limited to 'net/dante') 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" -- cgit v1.2.3