]> granicus.if.org Git - pdns/commitdiff
files voor wiggy
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 2 Dec 2002 09:34:54 +0000 (09:34 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 2 Dec 2002 09:34:54 +0000 (09:34 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@52 d19b8d6e-7fed-0310-83ef-9ca221ded41b

debian/pdns-backend-bind.lintian [new file with mode: 0644]
debian/pdns-backend-general.postinst [new file with mode: 0755]
debian/pdns-backend-general.postrm [new file with mode: 0755]
debian/pdns-backend-mysql.lintian [new file with mode: 0644]
debian/pdns-doc.postinst [new file with mode: 0755]
debian/pdns-doc.prerm [new file with mode: 0755]
debian/pdns.conffiles [new file with mode: 0644]
debian/pdns.postinst [new file with mode: 0755]
debian/pdns.postrm [new file with mode: 0755]
debian/pdns.prerm [new file with mode: 0755]

diff --git a/debian/pdns-backend-bind.lintian b/debian/pdns-backend-bind.lintian
new file mode 100644 (file)
index 0000000..689de5b
--- /dev/null
@@ -0,0 +1,4 @@
+pdns-backend-bind: non-dev-pkg-with-shlib-symlink usr/lib/libbindbackend.so.0.0.0 usr/lib/libbindbackend.so
+pdns-backend-bind: no-shlibs-control-file usr/lib/libbindbackend.so.0.0.0
+pdns-backend-bind: no-copyright-file
+pdns-backend-bind: postrm-unsafe-ldconfig
diff --git a/debian/pdns-backend-general.postinst b/debian/pdns-backend-general.postinst
new file mode 100755 (executable)
index 0000000..3aa1a92
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+
+if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
+       ldconfig
+fi
diff --git a/debian/pdns-backend-general.postrm b/debian/pdns-backend-general.postrm
new file mode 100755 (executable)
index 0000000..6d8f928
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ] ; then
+       ldconfig
+fi
+
diff --git a/debian/pdns-backend-mysql.lintian b/debian/pdns-backend-mysql.lintian
new file mode 100644 (file)
index 0000000..72ac735
--- /dev/null
@@ -0,0 +1,4 @@
+pdns-backend-mysql: non-dev-pkg-with-shlib-symlink usr/lib/libmysqlbackend.so.0.0.0 usr/lib/libmysqlbackend.so
+pdns-backend-mysql: no-shlibs-control-file usr/lib/libmysqlbackend.so.0.0.0
+pdns-backend-mysql: no-copyright-file
+pdns-backend-mysql: postrm-unsafe-ldconfig
diff --git a/debian/pdns-doc.postinst b/debian/pdns-doc.postinst
new file mode 100755 (executable)
index 0000000..991c191
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+update_docbase() {
+       if command -v install-docs >/dev/null 2>&1 ; then
+               install-docs -i /usr/share/doc-base/pdns
+       fi
+}
+
+
+if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
+       update_docbase
+fi
+
diff --git a/debian/pdns-doc.prerm b/debian/pdns-doc.prerm
new file mode 100755 (executable)
index 0000000..378fd30
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+update_docbase() {
+       if command -v install-docs >/dev/null 2>&1 ; then
+               install-docs -r pdns
+       fi
+}
+
+if [ "$1" = "remove" ] ; then
+       update_docbase
+fi
diff --git a/debian/pdns.conffiles b/debian/pdns.conffiles
new file mode 100644 (file)
index 0000000..30d7bbc
--- /dev/null
@@ -0,0 +1,2 @@
+/etc/pdns.conf
+/etc/init.d/pdns
diff --git a/debian/pdns.postinst b/debian/pdns.postinst
new file mode 100755 (executable)
index 0000000..a325c54
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+update_init() {
+       if [ -z "$2" ] ; then
+               update-rc.d pdns defaults 15 85 > /dev/null
+       fi
+}
+
+
+update_pdns() {
+       if [ -n "$2" ] ; then
+               /etc/init.d/pdns start
+       fi
+}
+
+if [ "$1" = "configure" -o "$1" = "abort-upgrade" ] ; then
+       update_init "$@"
+       restart_pdns "$@"
+fi
diff --git a/debian/pdns.postrm b/debian/pdns.postrm
new file mode 100755 (executable)
index 0000000..962934a
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+update_init() {
+       update-rc.d pdns remove > /dev/null
+}
+
+
+if [ "$1" = "purge" ] ; then
+       update_init
+fi
+
diff --git a/debian/pdns.prerm b/debian/pdns.prerm
new file mode 100755 (executable)
index 0000000..c4bca3e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ] ; then
+       /etc/init.d/pdns stop
+fi