[Pkg-sks-commit] r64 - sks/trunk/sks/debian

chrism at alioth.debian.org chrism at alioth.debian.org
Thu Jun 19 14:46:39 UTC 2008


Author: chrism
Date: 2008-06-19 14:46:38 +0000 (Thu, 19 Jun 2008)
New Revision: 64

Added:
   sks/trunk/sks/debian/sks.default
   sks/trunk/sks/debian/sks.dirs
   sks/trunk/sks/debian/sks.init
   sks/trunk/sks/debian/sks.postinst
   sks/trunk/sks/debian/sks.postrm
   sks/trunk/sks/debian/sks.prerm
Removed:
   sks/trunk/sks/debian/default
   sks/trunk/sks/debian/dirs
   sks/trunk/sks/debian/init
   sks/trunk/sks/debian/postinst
   sks/trunk/sks/debian/postrm
   sks/trunk/sks/debian/prerm
Log:
[project @ 65]
Renamed debhelper source files to package.<foo>

Original author: weasel
Date: 2003-12-06 22:31:57.958632+00:00

Deleted: sks/trunk/sks/debian/default
===================================================================
--- sks/trunk/sks/debian/default	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/default	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,3 +0,0 @@
-# by default we do NOT start sks!
-# Set to yes if you want to start it in the init script.
-initstart=no

Deleted: sks/trunk/sks/debian/dirs
===================================================================
--- sks/trunk/sks/debian/dirs	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/dirs	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,9 +0,0 @@
-etc/sks
-usr/bin
-usr/lib/sks
-usr/share/sks
-var/lib/sks/dump
-var/log/sks
-var/run/sks
-var/spool/sks/messages
-var/spool/sks/failed_messages

Deleted: sks/trunk/sks/debian/init
===================================================================
--- sks/trunk/sks/debian/init	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/init	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,109 +0,0 @@
-#!/bin/sh -e
-#
-# Start/stops the sks daemons.
-#
-#
-
-# Reads config file
-[ -r /etc/default/sks ] && . /etc/default/sks
-
-DAEMON=/usr/bin/sks
-SKSDBPID=/var/run/sks/sksdb.pid
-SKSRECONPID=/var/run/sks/sksrecon.pid
-
-# See if the daemon is there
-
-test -e $DAEMON || exit 0
-
-if [ ! -x $DAEMON ]; then
-    echo "ERROR: $DAEMON is not executable"
-    exit 1
-fi
-
-
-wait_for_deaddaemon () {
-	pidfile=$1
-	pid=`cat $pidfile 2>/dev/null` || true
-	sleep 1
-	if test -n "$pid"
-	then
-		if kill -0 $pid 2>/dev/null
-		then
-			echo -n "."
-			cnt=0
-			while kill -0 $pid 2>/dev/null
-			do
-				cnt=`expr $cnt + 1`
-				if [ $cnt -gt 30 ]
-				then
-					echo " FAILED."
-					return 1
-				fi
-				sleep 2
-				echo -n "."
-			done
-			rm -f $pidfile
-		else
-			rm -f $pidfile
-		fi
-	fi
-	return 0
-}
-
-
-case "$1" in
-    start)
-	echo -n "Starting sks daemons:"
-
-	if [ "$initstart" != "yes" ]; then
-	    echo " Not starting sks as requested."
-	    exit 0
-	fi
-
-	echo -n " sksdb.."
-
-	start-stop-daemon --start --quiet --oknodo \
-			  --chuid debian-sks:nogroup \
-			  --background \
-			  --make-pidfile \
-			  --pidfile $SKSDBPID \
-			  --exec $DAEMON -- db
-
-	echo -n " sksrecon.."
-
-	start-stop-daemon --start --quiet --oknodo \
-			  --chuid debian-sks:nogroup \
-			  --background \
-			  --make-pidfile \
-			  --pidfile $SKSRECONPID \
-			  --exec $DAEMON -- recon
-
-	echo " done."
-
-    ;;
-    stop)
-	echo -n "Stopping sks daemons:"
-
-	echo -n " sksrecon.."
-	start-stop-daemon --stop --quiet --oknodo --pidfile $SKSRECONPID
-	wait_for_deaddaemon $SKSRECONPID || exit 1
-
-	echo -n " sksdb.."
-	start-stop-daemon --stop --quiet --oknodo --pidfile $SKSDBPID
-	wait_for_deaddaemon $SKSDBPID || exit 1
-
-	echo " done."
-
-    ;;
-    reload|restart|force-reload)
-	$0 stop
-	sleep 1
-	$0 start
-    ;;
-    *)
-	echo "Usage: $0 {start|stop|reload|restart|force-reload}"
-	exit 1
-    ;;
-esac
-
-exit 0

Deleted: sks/trunk/sks/debian/postinst
===================================================================
--- sks/trunk/sks/debian/postinst	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/postinst	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,55 +0,0 @@
-#!/bin/sh -e
-
-# checking debian-sks account
-
-uid=`getent passwd debian-sks | cut -d ":" -f 3`
-home=`getent passwd debian-sks | cut -d ":" -f 6`
-
-# if there is the uid the account is there and we can do
-# the sanit(ar)y checks otherwise we can safely create it.
-
-if [ "$uid" ]; then
-    # guess??? the checks!!!
-    if [ $uid -ge 100 ] && [ $uid -le 999 ]; then
-    	echo "debian-sks uid check: ok"
-    else
-    	echo "ERROR: debian-sks account has a non-system uid!"
-	echo "Please check /usr/share/doc/sks/README.Debian on how to"
-	echo "correct this problem"
-	exit 1
-    fi
-    if [ "$home" = "/var/lib/sks" ]; then
-        echo "debian-sks homedir check: ok"
-    else
-	echo "ERROR: debian-sks account has an invalid home directory!"
-	echo "Please check /usr/share/doc/sks/README.Debian on how to"
-	echo "correct this problem"
-	exit 1
-    fi
-else
-    # what this might mean?? oh creating a system l^Huser!
-    adduser --quiet \
-            --system \
-            --disabled-password \
-            --home /var/lib/sks \
-	    --no-create-home \
-	    --shell /bin/bash \
-    debian-sks
-fi
-
-# ch{owning,moding} things around
-# note that sks creates files/dirs with 600/700
-# permissions as default. so let's stick with it for the
-# installation. We will do nothing across upgrades.
-
-if [ "$2" = "" ]; then
-    for i in lib log run spool; do
-	chown -R debian-sks:nogroup /var/$i/sks
-	chmod -R 700 /var/$i/sks
-	find /var/$i/sks -type f -exec chmod 600 '{}' ';'
-    done
-fi
-
-#DEBHELPER#
-
-exit 0

Deleted: sks/trunk/sks/debian/postrm
===================================================================
--- sks/trunk/sks/debian/postrm	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/postrm	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,11 +0,0 @@
-#!/bin/sh -e
-
-if [ "$1" = "purge" ]; then
-    # logs has to be removed according to policy.
-    # not sure about spool/lib stuff
-    rm -rf /var/log/sks
-fi
-
-#DEBHELPER#
-
-exit 0

Deleted: sks/trunk/sks/debian/prerm
===================================================================
--- sks/trunk/sks/debian/prerm	2008-06-19 14:46:26 UTC (rev 63)
+++ sks/trunk/sks/debian/prerm	2008-06-19 14:46:38 UTC (rev 64)
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#DEBHELPER#
-
-exit 0

Copied: sks/trunk/sks/debian/sks.default (from rev 63, sks/trunk/sks/debian/default)
===================================================================
--- sks/trunk/sks/debian/sks.default	                        (rev 0)
+++ sks/trunk/sks/debian/sks.default	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,3 @@
+# by default we do NOT start sks!
+# Set to yes if you want to start it in the init script.
+initstart=no

Copied: sks/trunk/sks/debian/sks.dirs (from rev 63, sks/trunk/sks/debian/dirs)
===================================================================
--- sks/trunk/sks/debian/sks.dirs	                        (rev 0)
+++ sks/trunk/sks/debian/sks.dirs	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,9 @@
+etc/sks
+usr/bin
+usr/lib/sks
+usr/share/sks
+var/lib/sks/dump
+var/log/sks
+var/run/sks
+var/spool/sks/messages
+var/spool/sks/failed_messages

Copied: sks/trunk/sks/debian/sks.init (from rev 63, sks/trunk/sks/debian/init)
===================================================================
--- sks/trunk/sks/debian/sks.init	                        (rev 0)
+++ sks/trunk/sks/debian/sks.init	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,109 @@
+#!/bin/sh -e
+#
+# Start/stops the sks daemons.
+#
+#
+
+# Reads config file
+[ -r /etc/default/sks ] && . /etc/default/sks
+
+DAEMON=/usr/bin/sks
+SKSDBPID=/var/run/sks/sksdb.pid
+SKSRECONPID=/var/run/sks/sksrecon.pid
+
+# See if the daemon is there
+
+test -e $DAEMON || exit 0
+
+if [ ! -x $DAEMON ]; then
+    echo "ERROR: $DAEMON is not executable"
+    exit 1
+fi
+
+
+wait_for_deaddaemon () {
+	pidfile=$1
+	pid=`cat $pidfile 2>/dev/null` || true
+	sleep 1
+	if test -n "$pid"
+	then
+		if kill -0 $pid 2>/dev/null
+		then
+			echo -n "."
+			cnt=0
+			while kill -0 $pid 2>/dev/null
+			do
+				cnt=`expr $cnt + 1`
+				if [ $cnt -gt 30 ]
+				then
+					echo " FAILED."
+					return 1
+				fi
+				sleep 2
+				echo -n "."
+			done
+			rm -f $pidfile
+		else
+			rm -f $pidfile
+		fi
+	fi
+	return 0
+}
+
+
+case "$1" in
+    start)
+	echo -n "Starting sks daemons:"
+
+	if [ "$initstart" != "yes" ]; then
+	    echo " Not starting sks as requested."
+	    exit 0
+	fi
+
+	echo -n " sksdb.."
+
+	start-stop-daemon --start --quiet --oknodo \
+			  --chuid debian-sks:nogroup \
+			  --background \
+			  --make-pidfile \
+			  --pidfile $SKSDBPID \
+			  --exec $DAEMON -- db
+
+	echo -n " sksrecon.."
+
+	start-stop-daemon --start --quiet --oknodo \
+			  --chuid debian-sks:nogroup \
+			  --background \
+			  --make-pidfile \
+			  --pidfile $SKSRECONPID \
+			  --exec $DAEMON -- recon
+
+	echo " done."
+
+    ;;
+    stop)
+	echo -n "Stopping sks daemons:"
+
+	echo -n " sksrecon.."
+	start-stop-daemon --stop --quiet --oknodo --pidfile $SKSRECONPID
+	wait_for_deaddaemon $SKSRECONPID || exit 1
+
+	echo -n " sksdb.."
+	start-stop-daemon --stop --quiet --oknodo --pidfile $SKSDBPID
+	wait_for_deaddaemon $SKSDBPID || exit 1
+
+	echo " done."
+
+    ;;
+    reload|restart|force-reload)
+	$0 stop
+	sleep 1
+	$0 start
+    ;;
+    *)
+	echo "Usage: $0 {start|stop|reload|restart|force-reload}"
+	exit 1
+    ;;
+esac
+
+exit 0

Copied: sks/trunk/sks/debian/sks.postinst (from rev 63, sks/trunk/sks/debian/postinst)
===================================================================
--- sks/trunk/sks/debian/sks.postinst	                        (rev 0)
+++ sks/trunk/sks/debian/sks.postinst	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,55 @@
+#!/bin/sh -e
+
+# checking debian-sks account
+
+uid=`getent passwd debian-sks | cut -d ":" -f 3`
+home=`getent passwd debian-sks | cut -d ":" -f 6`
+
+# if there is the uid the account is there and we can do
+# the sanit(ar)y checks otherwise we can safely create it.
+
+if [ "$uid" ]; then
+    # guess??? the checks!!!
+    if [ $uid -ge 100 ] && [ $uid -le 999 ]; then
+    	echo "debian-sks uid check: ok"
+    else
+    	echo "ERROR: debian-sks account has a non-system uid!"
+	echo "Please check /usr/share/doc/sks/README.Debian on how to"
+	echo "correct this problem"
+	exit 1
+    fi
+    if [ "$home" = "/var/lib/sks" ]; then
+        echo "debian-sks homedir check: ok"
+    else
+	echo "ERROR: debian-sks account has an invalid home directory!"
+	echo "Please check /usr/share/doc/sks/README.Debian on how to"
+	echo "correct this problem"
+	exit 1
+    fi
+else
+    # what this might mean?? oh creating a system l^Huser!
+    adduser --quiet \
+            --system \
+            --disabled-password \
+            --home /var/lib/sks \
+	    --no-create-home \
+	    --shell /bin/bash \
+    debian-sks
+fi
+
+# ch{owning,moding} things around
+# note that sks creates files/dirs with 600/700
+# permissions as default. so let's stick with it for the
+# installation. We will do nothing across upgrades.
+
+if [ "$2" = "" ]; then
+    for i in lib log run spool; do
+	chown -R debian-sks:nogroup /var/$i/sks
+	chmod -R 700 /var/$i/sks
+	find /var/$i/sks -type f -exec chmod 600 '{}' ';'
+    done
+fi
+
+#DEBHELPER#
+
+exit 0

Copied: sks/trunk/sks/debian/sks.postrm (from rev 63, sks/trunk/sks/debian/postrm)
===================================================================
--- sks/trunk/sks/debian/sks.postrm	                        (rev 0)
+++ sks/trunk/sks/debian/sks.postrm	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ]; then
+    # logs has to be removed according to policy.
+    # not sure about spool/lib stuff
+    rm -rf /var/log/sks
+fi
+
+#DEBHELPER#
+
+exit 0

Copied: sks/trunk/sks/debian/sks.prerm (from rev 63, sks/trunk/sks/debian/prerm)
===================================================================
--- sks/trunk/sks/debian/sks.prerm	                        (rev 0)
+++ sks/trunk/sks/debian/sks.prerm	2008-06-19 14:46:38 UTC (rev 64)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+exit 0




More information about the Pkg-sks-commit mailing list