[SCM] Debian packaging for the 2.0 Apache Shibboleth SP branch, debian, updated. upstream/2.1.dfsg1-92-gb771e54

Russ Allbery rra at debian.org
Wed Oct 15 05:24:18 UTC 2008


The following commit has been merged in the debian branch:
commit 50e4d4bc658c1418a4ef550a03d11aa7f6a6d809
Author: Russ Allbery <rra at debian.org>
Date:   Tue Oct 14 20:48:32 2008 -0700

    Disable the shib module name on upgrade
    
    * Add a postinst to disable the old configuration on upgrade and enable
      the module if it had been enabled under the old configuration name.

diff --git a/debian/changelog b/debian/changelog
index 8ef4de8..a990718 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,8 +14,6 @@ shibboleth-sp2 (2.1.dfsg1-1) UNRELEASED; urgency=low
   [ Ferenc Wagner ]
   * Follow the libshibsp1->2 package rename in the dh_makeshlibs invocation.
   * Remove the Shibboleth minor version number from README.Debian.
-  * Add directory /var/log/shibboleth to libapache2-mod-shib2 (thanks to Peter
-    Schober for noticing)
   * Comment out the reference to WS-Trust.xsd from the catalog.xml file in
     shibboleth-sp2-schemas and document how to enable it again.
 
@@ -23,11 +21,18 @@ shibboleth-sp2 (2.1.dfsg1-1) UNRELEASED; urgency=low
 
 shibboleth-sp2 (2.0.dfsg1-4) UNRELEASED; urgency=low
 
+  [ Ferenc Wagner ]
   * Rename debian/shib.load to debian/shib2.load to avoid clashing with the
     libapache2-mod-shib package.  Otherwise its Apache config file breaks our
     module.
+  * Add directory /var/log/shibboleth to libapache2-mod-shib2 (thanks to Peter
+    Schober for noticing)
+
+  [ Russ Allbery ]
+  * Add a postinst to disable the old configuration on upgrade and enable
+    the module if it had been enabled under the old configuration name.
 
- -- Ferenc Wagner <wferi at niif.hu>  Thu, 09 Oct 2008 19:05:09 +0200
+ -- Ferenc Wagner <wferi at niif.hu>  Tue, 14 Oct 2008 17:45:22 +0200
 
 shibboleth-sp2 (2.0.dfsg1-3) unstable; urgency=low
 
diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst
new file mode 100755
index 0000000..b217189
--- /dev/null
+++ b/debian/libapache2-mod-shib2.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+# Prior to 2.0.dfsg1-4, we named our Apache configuration files shib instead
+# of shib2.  We therefore need to unlink the old configuration files, and if
+# they were linked in, we should link in the new ones.
+if [ "$1" = "configure" ] ; then
+    if dpkg --compare-versions "$2" lt-nl 2.0.dfsg1-4 ; then
+        if [ -f /etc/apache2/mods-enabled/shib.load ] ; then
+            a2enmod shib2
+        fi
+        a2dismod shib || true
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0

-- 
Debian packaging for the 2.0 Apache Shibboleth SP



More information about the Pkg-shibboleth-devel mailing list