diff options
author | tv <tv> | 2001-08-28 13:23:06 +0000 |
---|---|---|
committer | tv <tv> | 2001-08-28 13:23:06 +0000 |
commit | 49b24b0099c16f78ad7e8b83f24a0ad213bd836e (patch) | |
tree | 04e91cb819cf9e01df13ee1c80f6917fe1a7f33d | |
parent | baa67cf5596dad51ad707c1a1eff753a1de90796 (diff) | |
download | pkgsrc-49b24b0099c16f78ad7e8b83f24a0ad213bd836e.tar.gz |
Add rc.d script.
-rw-r--r-- | net/dynipclient/Makefile | 3 | ||||
-rwxr-xr-x | net/dynipclient/files/dynipclient.sh | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/net/dynipclient/Makefile b/net/dynipclient/Makefile index 9d9dea46146..93f3a23d1ba 100644 --- a/net/dynipclient/Makefile +++ b/net/dynipclient/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $ +# $NetBSD: Makefile,v 1.2 2001/08/28 13:23:06 tv Exp $ # DISTNAME= dynip_3.00 @@ -19,5 +19,6 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/dynipadmin ${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/dynipclient ${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/*.1 ${PREFIX}/man/man1/ + ${INSTALL_SCRIPT} ${FILESDIR}/dynipclient.sh ${PREFIX}/etc/rc.d/dynipclient .include "../../mk/bsd.pkg.mk" diff --git a/net/dynipclient/files/dynipclient.sh b/net/dynipclient/files/dynipclient.sh new file mode 100755 index 00000000000..031dfc0aa71 --- /dev/null +++ b/net/dynipclient/files/dynipclient.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# $NetBSD: dynipclient.sh,v 1.1 2001/08/28 13:23:06 tv Exp $ +# +# PROVIDE: dynipclient +# REQUIRE: NETWORK + +. /etc/rc.subr + +name="dynipclient" +rcvar=$name +command="/usr/pkg/bin/${name}" +pidfile="/var/run/${name}.pid" +required_files="/etc/dynip.cfg" + +load_rc_config $name +run_rc_command "$1" |