[pkg-horde] [SCM] Debian Horde Packages repository: imp4 package branch, debian-sid, updated. be7bc3d1e80fbf988b99ebfcd8159499f88bac3c
Mathieu Parent
math.parent at gmail.com
Sun Dec 20 16:33:34 UTC 2009
The following commit has been merged in the debian-sid branch:
commit be7bc3d1e80fbf988b99ebfcd8159499f88bac3c
Author: Mathieu Parent <math.parent at gmail.com>
Date: Sun Dec 20 17:33:10 2009 +0100
Replace config symlink by update-alternatives
to allow configuration packages
diff --git a/debian/changelog b/debian/changelog
index 371f565..47c1777 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ imp4 (4.3.6+debian0-1) UNRELEASED; urgency=low
* Added a check in debian/rules to make sure that external libs are not
in the orig.tar.gz
* Reverted "When using Kolab, other mail servers are removed"
+ * Replace config symlink by update-alternatives to allow configuration
+ packages
-- Mathieu Parent <sathieu at debian.org> Sun, 20 Dec 2009 17:08:58 +0100
diff --git a/debian/imp4.postinst b/debian/imp4.postinst
new file mode 100644
index 0000000..70a7e79
--- /dev/null
+++ b/debian/imp4.postinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ update-alternatives --install /usr/share/horde3/imp/config imp4-config /etc/horde/imp4 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/imp4.prerm b/debian/imp4.prerm
new file mode 100644
index 0000000..2abf087
--- /dev/null
+++ b/debian/imp4.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ update-alternatives --remove imp4-config /etc/horde/imp4
+ ;;
+
+ upgrade|deconfigure|failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/debian/rules b/debian/rules
index 585fa6c..f6f8dd9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,7 +46,8 @@ install: build
# chown www-data:root debian/imp4/etc/horde/imp4/conf.php
# chown www-data:root debian/imp4/etc/horde/imp4/conf.php.bak
- dh_link etc/horde/imp4 usr/share/horde3/imp/config
+ #### imp expects configuration in config subdir, an update-alternatives
+ #### symlink is created in maintainer's scripts to comply with FHS
#### change made for program run with no problems ###
cat config/prefs.php.dist | \
--
Debian Horde Packages repository: imp4 package
More information about the pkg-horde-hackers
mailing list