summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2011-10-10 21:21:36 (UTC)
committer Michael Krelin <hacker@klever.net>2011-10-12 19:58:30 (UTC)
commite402d5619a9dd86e0f51fa39418f4db490ef1037 (patch) (unidiff)
tree69b9176d76d71b5f147c8a93830e1b6d66f3daa1
parent970337c91c02afa9b8d33ab5596270594ffe58e6 (diff)
downloaddudki-master.zip
dudki-master.tar.gz
dudki-master.tar.bz2
debianizationHEADmaster
Ubuntization to be precise. Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control17
-rw-r--r--debian/copyright19
-rw-r--r--debian/dudki.conf17
-rw-r--r--debian/dudki.default1
-rw-r--r--debian/dudki.docs2
-rw-r--r--debian/dudki.init58
-rw-r--r--debian/dudki.install1
-rw-r--r--debian/dudki.postinst17
-rw-r--r--debian/dudki.postrm20
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
13 files changed, 168 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f3b7367
--- a/dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
1dudki (0.2.2) natty; urgency=low
2
3 * Initial debianized release.
4
5 -- Michael Krelin <hacker@klever.net> Wed, 12 Oct 2011 21:58:01 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- a/dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a899c85
--- a/dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
1Source: dudki
2Section: utils
3Priority: optional
4Maintainer: Michael Krelin <hacker@klever.net>
5Build-Depends: debhelper, cdbs, libdotconf-dev, pkg-config, xsltproc
6Standards-Version: 3.9.1
7Homepage: http://kin.klever.net/dudki
8
9Package: dudki
10Architecture: any
11Depends: ${shlibs:Depends}, ${misc:Depends}
12Description: Process monitoring daemon
13 Dudki! is a simple maintenance daemon that checks whether certain processes
14 are running (based on pidfiles) and, if needed, tries to restart them. It
15 also supports a self-test command line invocation which can be used in a cron
16 job.
17 .
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8ceaf0a
--- a/dev/null
+++ b/debian/copyright
@@ -0,0 +1,19 @@
1Copyright (c) 2004-2006 Klever Group (http://www.klever.net/)
2
3Permission is hereby granted, free of charge, to any person obtaining a copy of
4this software and associated documentation files (the "Software"), to deal in
5the Software without restriction, including without limitation the rights to
6use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7of the Software, and to permit persons to whom the Software is furnished to do
8so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in all
11copies or substantial portions of the Software.
12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19SOFTWARE.
diff --git a/debian/dudki.conf b/debian/dudki.conf
new file mode 100644
index 0000000..cfd6800
--- a/dev/null
+++ b/debian/dudki.conf
@@ -0,0 +1,17 @@
1CheckInterval 75
2PidFile /var/run/dudki.pid
3Daemonize on
4
5Notify mailto:root
6MailtoHeader From "Dudki Process Manager <root>"
7MailtoHeader User-Agent "Dudki Process Manager"
8
9<Process sshd>
10 PidFile /var/run/sshd.pid
11 RestartCommand "exec invoke-rc.d ssh restart"
12</Process>
13
14<Process cron>
15 ProcessName cron
16 RestartCommand "exec invoke-rc.d cron restart"
17</Process>
diff --git a/debian/dudki.default b/debian/dudki.default
new file mode 100644
index 0000000..6ca905a
--- a/dev/null
+++ b/debian/dudki.default
@@ -0,0 +1 @@
DUDKI_CONF=/etc/dudki.conf
diff --git a/debian/dudki.docs b/debian/dudki.docs
new file mode 100644
index 0000000..3cc350b
--- a/dev/null
+++ b/debian/dudki.docs
@@ -0,0 +1,2 @@
1AUTHORS
2NEWS
diff --git a/debian/dudki.init b/debian/dudki.init
new file mode 100644
index 0000000..aaab403
--- a/dev/null
+++ b/debian/dudki.init
@@ -0,0 +1,58 @@
1#! /bin/sh
2#
3# dudki dudki startup script
4#
5
6### BEGIN INIT INFO
7# Provides: dudki
8# Required-Start: $local_fs $remote_fs $syslog
9# Required-Stop: $local_fs $remote_fs $syslog
10# Should-Start:
11# Should-Stop:
12# Default-Start: S 2 3 4 5
13# Default-Stop: 0 1 6
14# Short-Description: a process maintenance daemon
15### END INIT INFO
16
17# Edit /etc/default/dudki to change options
18DUDKI_CONF=/etc/dudki.conf
19
20PATH=/sbin:/bin:/usr/sbin:/usr/bin
21DUDKI=/usr/sbin/dudki
22NAME=dudki
23DESC="process maintenance daemon"
24
25[ -x $DUDKI ] || exit 0
26
27. /lib/lsb/init-functions
28
29[ -f /etc/default/$NAME ] && . /etc/default/$NAME
30
31case "$1" in
32 start)
33 log_daemon_msg "Starting $DESC $NAME"
34 $DUDKI -e
35 log_end_msg $?
36 ;;
37 stop)
38 log_daemon_msg "Stopping $DESC $NAME"
39 $DUDKI -k
40 log_end_msg $?
41 ;;
42 reload)
43 log_daemon_msg "Reloading $NAME configuration"
44 $DUDKI -r
45 log_end_msg $?
46 ;;
47 restart|force-reload)
48 $0 stop
49 sleep 1
50 $0 start
51 ;;
52 *)
53 echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
54 exit 1
55 ;;
56esac
57
58exit 0
diff --git a/debian/dudki.install b/debian/dudki.install
new file mode 100644
index 0000000..7a98d26
--- a/dev/null
+++ b/debian/dudki.install
@@ -0,0 +1 @@
debian/dudki.conf usr/share/doc/dudki/
diff --git a/debian/dudki.postinst b/debian/dudki.postinst
new file mode 100644
index 0000000..49dc83c
--- a/dev/null
+++ b/debian/dudki.postinst
@@ -0,0 +1,17 @@
1#!/bin/sh
2set -e
3
4if [ "$1" = "configure" ]; then
5
6 if which ucf >/dev/null; then
7 ucf /usr/share/doc/dudki/dudki.conf /etc/dudki.conf
8 fi
9
10 if which ucfr >/dev/null; then
11 ucfr dudki /etc/dudki.conf
12 fi
13fi
14
15#DEBHELPER#
16
17exit 0
diff --git a/debian/dudki.postrm b/debian/dudki.postrm
new file mode 100644
index 0000000..34413ba
--- a/dev/null
+++ b/debian/dudki.postrm
@@ -0,0 +1,20 @@
1#!/bin/sh
2set -e
3
4if [ "$1" = "purge" ]; then
5
6 if which ucf >/dev/null; then
7 ucf --purge /etc/dudki.conf
8 fi
9
10 if which ucfr >/dev/null; then
11 ucfr --purge dudki /etc/dudki.conf
12 fi
13
14 rm -f /etc/dudki.conf /etc/dudki.conf.*ucf*
15
16fi
17
18#DEBHELPER#
19
20exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0860416
--- a/dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
1#!/usr/bin/make -f
2
3makebuilddir/dudki::
4 bash autogen.sh --version
5
6include /usr/share/cdbs/1/rules/debhelper.mk
7include /usr/share/cdbs/1/class/autotools.mk
8
9
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- a/dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
3.0 (native)