[pkg-horde] [SCM] Debian Horde Packages repository: sork-passwd-h3 package branch, debian-sid, updated. dcfda5e324221687ad3d397acc61ebf3d2b210a6
Mathieu Parent
math.parent at gmail.com
Mon Jan 4 10:38:01 UTC 2010
The following commit has been merged in the debian-sid branch:
commit daeb61251135f3f7cf938359d269d289268eda52
Author: Mathieu Parent <math.parent at gmail.com>
Date: Mon Jan 4 11:32:34 2010 +0100
Replace config symlink by update-alternatives
to allow configuration packages
diff --git a/debian/changelog b/debian/changelog
index 6f1699d..5d9489d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ sork-passwd-h3 (3.1.2-1) UNRELEASED; urgency=low
* New upstream release
* Added me to uploaders
* Update to standards version 3.8.3, no further required changes
+ * Replace config symlink by update-alternatives to allow configuration
+ packages
-- Mathieu Parent <sathieu at debian.org> Mon, 04 Jan 2010 11:23:53 +0100
diff --git a/debian/sork-passwd-h3.links b/debian/sork-passwd-h3.links
index 427a6f2..7152c51 100644
--- a/debian/sork-passwd-h3.links
+++ b/debian/sork-passwd-h3.links
@@ -1,3 +1,2 @@
etc/horde/passwd3/scripts usr/share/horde3/passwd/scripts
etc/horde/passwd3/templates usr/share/horde3/passwd/templates
-etc/horde/passwd3 usr/share/horde3/passwd/config
diff --git a/debian/sork-passwd-h3.postinst b/debian/sork-passwd-h3.postinst
new file mode 100644
index 0000000..924044a
--- /dev/null
+++ b/debian/sork-passwd-h3.postinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ update-alternatives --install /usr/share/horde3/passwd/config sork-passwd-h3-config /etc/horde/passwd3 1
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/debian/sork-passwd-h3.prerm b/debian/sork-passwd-h3.prerm
new file mode 100644
index 0000000..267b81b
--- /dev/null
+++ b/debian/sork-passwd-h3.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ update-alternatives --remove sork-passwd-h3-config /etc/horde/passwd3
+ ;;
+
+ upgrade|deconfigure|failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
--
Debian Horde Packages repository: sork-passwd-h3 package
More information about the pkg-horde-hackers
mailing list