diff options
author | tv <tv@pkgsrc.org> | 2001-08-28 13:23:06 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2001-08-28 13:23:06 +0000 |
commit | 7a615e256054aca053179e2080423653284ed6e1 (patch) | |
tree | 04e91cb819cf9e01df13ee1c80f6917fe1a7f33d /net | |
parent | 093d348241e56a5945be4443394c2b2445c9213e (diff) | |
download | pkgsrc-7a615e256054aca053179e2080423653284ed6e1.tar.gz |
Add rc.d script.
Diffstat (limited to 'net')
-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" |