This diff adds a simple rcscript to ddclient.
Tested on a box @home.
OK?
ciao,
david
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/ddclient/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile 19 Nov 2010 22:31:32 -0000 1.11
+++ Makefile 1 Dec 2010 08:50:47 -0000
@@ -2,7 +2,7 @@
COMMENT= Dynamic DNS service update client
-REVISION= 0
+REVISION= 1
DISTNAME= ddclient-3.8.0
CATEGORIES= net
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/ddclient/pkg/PLIST,v
retrieving revision 1.7
diff -u -p -r1.7 PLIST
--- pkg/PLIST 7 Mar 2009 13:43:42 -0000 1.7
+++ pkg/PLIST 1 Dec 2010 08:50:47 -0000
@@ -14,3 +14,4 @@ share/examples/ddclient/sample-etc_dhcli
share/examples/ddclient/sample-etc_dhcpc_dhcpcd-eth0.exe
share/examples/ddclient/sample-etc_ppp_ip-up.local
@sample /var/db/ddclient/
+...@rcscript ${RCDIR}/ddclient
Index: pkg/ddclient.rc
===================================================================
RCS file: pkg/ddclient.rc
diff -N pkg/ddclient.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/ddclient.rc 1 Dec 2010 08:50:47 -0000
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# $OpenBSD$
+
+. /etc/rc.d/rc.subr
+
+daemon="${TRUEPREFIX}/sbin/ddclient"
+pexp="perl: ddclient"
+
+rc_cmd $1