Permalink
Browse files

debianization

Ubuntization to be precise.

Signed-off-by: Michael Krelin <hacker@klever.net>
  • Loading branch information...
hacker committed Oct 10, 2011
1 parent 970337c commit e402d5619a9dd86e0f51fa39418f4db490ef1037
Showing with 168 additions and 0 deletions.
  1. +5 −0 debian/changelog
  2. +1 −0 debian/compat
  3. +17 −0 debian/control
  4. +19 −0 debian/copyright
  5. +17 −0 debian/dudki.conf
  6. +1 −0 debian/dudki.default
  7. +2 −0 debian/dudki.docs
  8. +58 −0 debian/dudki.init
  9. +1 −0 debian/dudki.install
  10. +17 −0 debian/dudki.postinst
  11. +20 −0 debian/dudki.postrm
  12. +9 −0 debian/rules
  13. +1 −0 debian/source/format
View
@@ -0,0 +1,5 @@
+dudki (0.2.2) natty; urgency=low
+
+ * Initial debianized release.
+
+ -- Michael Krelin <hacker@klever.net> Wed, 12 Oct 2011 21:58:01 +0200
View
@@ -0,0 +1 @@
+5
View
@@ -0,0 +1,17 @@
+Source: dudki
+Section: utils
+Priority: optional
+Maintainer: Michael Krelin <hacker@klever.net>
+Build-Depends: debhelper, cdbs, libdotconf-dev, pkg-config, xsltproc
+Standards-Version: 3.9.1
+Homepage: http://kin.klever.net/dudki
+
+Package: dudki
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Process monitoring daemon
+ Dudki! is a simple maintenance daemon that checks whether certain processes
+ are running (based on pidfiles) and, if needed, tries to restart them. It
+ also supports a self-test command line invocation which can be used in a cron
+ job.
+ .
View
@@ -0,0 +1,19 @@
+Copyright (c) 2004-2006 Klever Group (http://www.klever.net/)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
View
@@ -0,0 +1,17 @@
+CheckInterval 75
+PidFile /var/run/dudki.pid
+Daemonize on
+
+Notify mailto:root
+MailtoHeader From "Dudki Process Manager <root>"
+MailtoHeader User-Agent "Dudki Process Manager"
+
+<Process sshd>
+ PidFile /var/run/sshd.pid
+ RestartCommand "exec invoke-rc.d ssh restart"
+</Process>
+
+<Process cron>
+ ProcessName cron
+ RestartCommand "exec invoke-rc.d cron restart"
+</Process>
View
@@ -0,0 +1 @@
+DUDKI_CONF=/etc/dudki.conf
View
@@ -0,0 +1,2 @@
+AUTHORS
+NEWS
View
@@ -0,0 +1,58 @@
+#! /bin/sh
+#
+# dudki dudki startup script
+#
+
+### BEGIN INIT INFO
+# Provides: dudki
+# Required-Start: $local_fs $remote_fs $syslog
+# Required-Stop: $local_fs $remote_fs $syslog
+# Should-Start:
+# Should-Stop:
+# Default-Start: S 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: a process maintenance daemon
+### END INIT INFO
+
+# Edit /etc/default/dudki to change options
+DUDKI_CONF=/etc/dudki.conf
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DUDKI=/usr/sbin/dudki
+NAME=dudki
+DESC="process maintenance daemon"
+
+[ -x $DUDKI ] || exit 0
+
+. /lib/lsb/init-functions
+
+[ -f /etc/default/$NAME ] && . /etc/default/$NAME
+
+case "$1" in
+ start)
+ log_daemon_msg "Starting $DESC $NAME"
+ $DUDKI -e
+ log_end_msg $?
+ ;;
+ stop)
+ log_daemon_msg "Stopping $DESC $NAME"
+ $DUDKI -k
+ log_end_msg $?
+ ;;
+ reload)
+ log_daemon_msg "Reloading $NAME configuration"
+ $DUDKI -r
+ log_end_msg $?
+ ;;
+ restart|force-reload)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
View
@@ -0,0 +1 @@
+debian/dudki.conf usr/share/doc/dudki/
View
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ]; then
+
+ if which ucf >/dev/null; then
+ ucf /usr/share/doc/dudki/dudki.conf /etc/dudki.conf
+ fi
+
+ if which ucfr >/dev/null; then
+ ucfr dudki /etc/dudki.conf
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
View
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "purge" ]; then
+
+ if which ucf >/dev/null; then
+ ucf --purge /etc/dudki.conf
+ fi
+
+ if which ucfr >/dev/null; then
+ ucfr --purge dudki /etc/dudki.conf
+ fi
+
+ rm -f /etc/dudki.conf /etc/dudki.conf.*ucf*
+
+fi
+
+#DEBHELPER#
+
+exit 0
View
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+makebuilddir/dudki::
+ bash autogen.sh --version
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+
View
@@ -0,0 +1 @@
+3.0 (native)

0 comments on commit e402d56

Please sign in to comment.