[Lunar-commits] r20465 - in moonbase/trunk/utils/ddclient: . init.d

hardkrash hardkrash at lunar-linux.org
Mon Jun 19 05:06:56 UTC 2006


Author: hardkrash
Date: 2006-06-19 05:06:56 +0000 (Mon, 19 Jun 2006)
New Revision: 20465

Removed:
   moonbase/trunk/utils/ddclient/PRE_REMOVE
Modified:
   moonbase/trunk/utils/ddclient/BUILD
   moonbase/trunk/utils/ddclient/DETAILS
   moonbase/trunk/utils/ddclient/init.d/ddclient
Log:
updating to lunar standard forms


Modified: moonbase/trunk/utils/ddclient/BUILD
===================================================================
--- moonbase/trunk/utils/ddclient/BUILD	2006-06-18 23:51:38 UTC (rev 20464)
+++ moonbase/trunk/utils/ddclient/BUILD	2006-06-19 05:06:56 UTC (rev 20465)
@@ -1,11 +1,12 @@
 (
 
-  cp  ddclient  /usr/sbin &&
+  prepare_install	&&
+  install -m 750 ddclient /usr/sbin/ddclient &&
   if [ ! -x /etc/ddclient ]; then
    mkdir /etc/ddclient
   fi
   if [ ! -e /etc/ddclient/ddclient.conf ]; then
-   cp  sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
+   install -m640  sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
   fi
   if [ -e /etc/ddclient.conf ]; then
    echo "/etc/ddclient.conf has moved to /etc/ddclient/ddclient.conf. Please move your existing ddclient.conf."

Modified: moonbase/trunk/utils/ddclient/DETAILS
===================================================================
--- moonbase/trunk/utils/ddclient/DETAILS	2006-06-18 23:51:38 UTC (rev 20464)
+++ moonbase/trunk/utils/ddclient/DETAILS	2006-06-19 05:06:56 UTC (rev 20465)
@@ -2,11 +2,11 @@
          VERSION=3.6.7
           SOURCE=$MODULE-$VERSION.tar.gz
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
-      SOURCE_URL=$SFORGE_URL/ddclient/
+      SOURCE_URL=$SFORGE_URL/ddclient
       SOURCE_VFY=sha1:565cc70ce6948dfdd125cf0675ba168186488be8
         WEB_SITE=http://ddclient.sourceforge.net/
          ENTERED=20040709
-         UPDATED=20051218
+         UPDATED=20060618
       MAINTAINER=hittis at lunar-linux.org
            SHORT="small but full featured client for updating dynamic DNS sevices."
 

Deleted: moonbase/trunk/utils/ddclient/PRE_REMOVE

Modified: moonbase/trunk/utils/ddclient/init.d/ddclient
===================================================================
--- moonbase/trunk/utils/ddclient/init.d/ddclient	2006-06-18 23:51:38 UTC (rev 20464)
+++ moonbase/trunk/utils/ddclient/init.d/ddclient	2006-06-19 05:06:56 UTC (rev 20465)
@@ -1,60 +1,11 @@
-#!/bin/sh
+#!/bin/bash
 #
 # ddclient      This shell script takes care of starting and stopping
-#               ddclient.
+#          	ddclient.
 #
 # chkconfig: 2345 65 35
 # description: ddclient provides support for updating dynamic DNS services.
+# processname: ddclient
+# pidfile: /var/run/ddclient.pid
 
-[ -f /etc/ddclient/ddclient.conf ] || exit 0
-
-PATH=/usr/sbin:${PATH}
-COLUMNS=9999
-export PATH COLUMNS
-
-program=ddclient
-
-# See how we were called.
-case "$1" in
-  start)
-	# Start daemons.
-        PID=`pgrep -o ddclient`
-        PIDN=`pgrep -n ddclient`
-        if [ $PID == $PIDN ]; then
-         ddclient -daemon 300
-         echo "ddclient started [`pgrep -n ddclient`]"
-	else
-	 echo "ddclient already running [$PID]"
-        fi
-	;;
-  stop)
-	# Stop daemons.
-	PID=`pgrep -o ddclient`
-	PIDN=`pgrep -n ddclient`
-	if [ ! $PID == $PIDN ]; then
-	 kill $PID
-	 echo "ddclient terminated [$PID]"
-	else
-	 echo "ddclient not running"
-	fi
-	;;
-  restart)
-	$0 stop
-	$0 start
-	;;
-  status)
-        PID=`pgrep -o ddclient`
-        PIDN=`pgrep -n ddclient`
-        if [ ! $PID == $PIDN ]; then
-         echo "ddclient running [$PID]"
-	else
-	 echo "ddclient not running"
-        fi
-	;;
-  *)
-	echo "Usage: ddclient {start|stop|restart|status}"
-	exit 1
-esac
-
-exit 0
-
+. /lib/lsb/init-functions



More information about the Lunar-commits mailing list