]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Added debian packaging files from branch-0-7-x to HEAD.
authorAlexander Barton <alex@barton.de>
Sat, 12 Jul 2003 23:27:37 +0000 (23:27 +0000)
committerAlexander Barton <alex@barton.de>
Sat, 12 Jul 2003 23:27:37 +0000 (23:27 +0000)
debian/changelog
debian/ngircd.default [new file with mode: 0644]
debian/ngircd.init
debian/ngircd.postinst [new file with mode: 0644]

index bcf9f9530888f0777a818ea439d5a2b0ca9441d1..f2b93ef83eebcdc5d4e827077346a8f96274d176 100644 (file)
@@ -1,3 +1,16 @@
+ngircd (0.7.0-0.7ab) unstable; urgency=low
+
+  * Fixed up post installation script (added interpreter, fixed chmod call).
+
+ -- Alexander Barton <alex@Arthur.Ath.CX>  Sun, 13 Jul 2003 00:52:38 +0200
+
+ngircd (0.7.0-0.6ab) unstable; urgency=low
+
+  * Added /etc/default/ngircd.
+  * Included own post installation script.
+
+ -- Alexander Barton <alex@Arthur.Ath.CX>  Sat, 12 Jul 2003 20:31:09 +0200
+
 ngircd (0.7.0-0.5ab) unstable; urgency=low
 
   * Enhanced init script.
diff --git a/debian/ngircd.default b/debian/ngircd.default
new file mode 100644 (file)
index 0000000..0e31eae
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Defaults for ngIRCd start and stop script
+#
+# $Id: ngircd.default,v 1.2 2003/07/12 23:27:37 alex Exp $
+#
+
+# Parameters to pass to the ngircd daemon on startup, see ngircd(8) for
+# possible options (default: empty).
+
+PARAMS=""
+
+# -eof-
index 8573026a2243527b2e2a066e31c2c030e72981cb..2736d18243336f409c60e4109d967d3dd4560317 100644 (file)
@@ -2,7 +2,7 @@
 #
 # ngIRCd start and stop script for Debian-based systems
 #
-# $Id: ngircd.init,v 1.1 2003/07/09 20:23:35 alex Exp $
+# $Id: ngircd.init,v 1.2 2003/07/12 23:27:37 alex Exp $
 #
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
diff --git a/debian/ngircd.postinst b/debian/ngircd.postinst
new file mode 100644 (file)
index 0000000..c92740d
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Debian post-installation script
+# $Id: ngircd.postinst,v 1.2 2003/07/12 23:27:37 alex Exp $
+#
+
+if [ -f /etc/ngircd/ngircd.conf ]; then
+       # make sure that configuration file is not world readable
+       chmod o= /etc/ngircd/ngircd.conf
+fi
+
+if [ -x "/etc/init.d/ngircd" ]; then
+       # setup init scripts and startup ngircd
+       update-rc.d ngircd defaults >/dev/null
+       if [ -x /usr/sbin/invoke-rc.d ]; then
+               invoke-rc.d ngircd start
+       else
+               /etc/init.d/ngircd start
+       fi
+fi
+
+# -eof-