diff options
author | tron <tron@pkgsrc.org> | 2004-01-03 23:21:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-01-03 23:21:44 +0000 |
commit | 073d8a6c0ee522d180b50d90908d060f98b55436 (patch) | |
tree | 21a57c2fbc29a3e10e384a54efbce4393e1da9d7 /net/oidentd/files | |
parent | 339cd13cb2e6dedfb07f792d4748aad67fe2788b (diff) | |
download | pkgsrc-073d8a6c0ee522d180b50d90908d060f98b55436.tar.gz |
Import new "oidentd" package:
Configurable IDENT server that supports NAT/IP masq
Diffstat (limited to 'net/oidentd/files')
-rw-r--r-- | net/oidentd/files/oidentd.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net/oidentd/files/oidentd.sh b/net/oidentd/files/oidentd.sh new file mode 100644 index 00000000000..e65f1c3199e --- /dev/null +++ b/net/oidentd/files/oidentd.sh @@ -0,0 +1,40 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: oidentd.sh,v 1.1.1.1 2004/01/03 23:21:45 tron Exp $ +# + +# PROVIDE: oidentd +# REQUIRE: DAEMON + +conf_file="@PKG_SYSCONFDIR@/oidentd.conf" + +name="oidentd" +rcvar=$name +command="@PREFIX@/sbin/${name}" +required_files="${conf_file}" + +if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then + . /etc/rc.subr + . /etc/rc.conf + + load_rc_config $name + run_rc_command "$1" + +else # old NetBSD, Solaris, Linux, etc... + + case $1 in + start) + if [ -x ${command} -a -f ${conf_file} ] ; then + eval ${command} && @ECHO@ -n " ${name}" + fi + ;; + stop) + ${stop_cmd} + ;; + *) + @ECHO@ "Usage: $0 {start|stop}" 1>&2 + exit 64 + ;; + esac + +fi |