ports/56176: Update port: net/ez-ipupdate (add a startup script)
Kimura Fuyuki
fuyuki at nigredo.org
Sat Aug 30 07:20:18 UTC 2003
>Number: 56176
>Category: ports
>Synopsis: Update port: net/ez-ipupdate (add a startup script)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 30 00:20:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Kimura Fuyuki
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
FreeBSD hadaly.dyndns.org 5.1-CURRENT FreeBSD 5.1-CURRENT #2: Fri Aug 29 14:38:09 JST 2003 root at hadaly.dyndns.org:/.2/obj/usr/src/sys/NS i386
>Description:
Add an rcng-style script to start/stop a daemon.
>How-To-Repeat:
>Fix:
diff -ruN --exclude=CVS ez-ipupdate.orig/Makefile ez-ipupdate/Makefile
--- ez-ipupdate.orig/Makefile Sat Aug 30 16:03:53 2003
+++ ez-ipupdate/Makefile Sat Aug 30 16:00:43 2003
@@ -13,8 +13,13 @@
MAINTAINER= se at FreeBSD.org
COMMENT= Update your host name on any dynamic DNS service
+USE_RC_SUBR= yes
GNU_CONFIGURE= yes
+post-build:
+ ${SED} -e 's|/etc/rc.subr|${RC_SUBR}|;s|/usr/local|${PREFIX}|g' \
+ ${FILESDIR}/ez-ipupdate.sh > ${WRKDIR}/ez-ipupdate.sh
+
post-install:
${MKDIR} ${PREFIX}/share/examples/ez-ipupdate
for f in ${WRKSRC}/example-*.conf; \
@@ -23,5 +28,6 @@
done
${INSTALL_DATA} ${WRKSRC}/example.conf \
${PREFIX}/etc/ez-ipupdate.conf.sample
+ ${INSTALL_SCRIPT} ${WRKDIR}/ez-ipupdate.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk>
diff -ruN --exclude=CVS ez-ipupdate.orig/files/ez-ipupdate.sh ez-ipupdate/files/ez-ipupdate.sh
--- ez-ipupdate.orig/files/ez-ipupdate.sh Thu Jan 1 09:00:00 1970
+++ ez-ipupdate/files/ez-ipupdate.sh Sat Aug 30 16:02:27 2003
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ez-ipupdate
+# REQUIRE:
+# BEFORE:
+# KEYWORD: FreeBSD shutdown
+
+# Add the following line to /etc/rc.conf to enable ez-ipupdate:
+#
+#ez_ipupdate_enable="YES"
+#
+
+. /etc/rc.subr
+
+name="ez_ipupdate"
+rcvar=`set_rcvar`
+command="/usr/local/bin/ez-ipupdate"
+pidfile="/var/run/ez-ipupdate.pid"
+required_files="/usr/local/etc/ez-ipupdate.conf"
+sig_stop="QUIT"
+
+ez_ipupdate_enable="NO"
+ez_ipupdate_flags="-c /usr/local/etc/ez-ipupdate.conf -d -F /var/run/ez-ipupdate.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff -ruN --exclude=CVS ez-ipupdate.orig/pkg-plist ez-ipupdate/pkg-plist
--- ez-ipupdate.orig/pkg-plist Sat Aug 30 16:03:53 2003
+++ ez-ipupdate/pkg-plist Sat Aug 30 15:54:38 2003
@@ -1,5 +1,6 @@
bin/ez-ipupdate
etc/ez-ipupdate.conf.sample
+etc/rc.d/ez-ipupdate.sh
share/examples/ez-ipupdate/example-dhs.conf
share/examples/ez-ipupdate/example-dyndns.conf
share/examples/ez-ipupdate/example-dyns.conf
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list