diff options
author | jmmv <jmmv> | 2003-07-30 11:37:01 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-07-30 11:37:01 +0000 |
commit | 7d1fd668d8aad3a7ce57a567b6a671aecb23b6d1 (patch) | |
tree | 9131af46d9a88f6aa5e440d30a7cfa6d4004ec23 /net/delegate/files | |
parent | 8f926fd381b09126fca3cb69ed1db1554e9cb8fa (diff) | |
download | pkgsrc-7d1fd668d8aad3a7ce57a567b6a671aecb23b6d1.tar.gz |
Convert the rc.d script to the standard rc.subr format (if available) and
use the bsd.pkg.install.mk framework to handle it. Bump PKGREVISION to 1.
Diffstat (limited to 'net/delegate/files')
-rw-r--r-- | net/delegate/files/delegated.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/delegate/files/delegated.sh b/net/delegate/files/delegated.sh new file mode 100644 index 00000000000..96b32ad3619 --- /dev/null +++ b/net/delegate/files/delegated.sh @@ -0,0 +1,28 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: delegated.sh,v 1.3 2003/07/30 11:37:03 jmmv Exp $ +# +# PROVIDE: delegated +# REQUIRE: DAEMON +# + +if [ -f /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="delegated" +rcvar=${name} +command="@PREFIX@/sbin/${name}" +command_args="-P8080 ADMIN=@ADMIN@ CHARCODE=JIS \ + CACHEDIR=/var/spool/delegate/cache \ + EXPIRE=7d RELIABLE=hostname >/dev/null 2>&1" + +if [ -f /etc/rc.subr ] +then + load_rc_config $name + run_rc_command "$1" +else + @ECHO@ -n " ${name}" + ${command} ${delegated_flags} ${command_args} >/dev/null 2>&1 +fi |