# HG changeset patch # User Paul Boddie # Date 1410361267 -7200 # Node ID 4f5514da6140cb47d7996546b03bc320d1cddd1a # Parent a96df39e88949eb79bb53e4199e8fe575afd76d9 Packaging for chwala 0.2-0~kolab9 from upstream. diff -r a96df39e8894 -r 4f5514da6140 debian/changelog --- a/debian/changelog Mon May 12 21:37:03 2014 +0200 +++ b/debian/changelog Wed Sep 10 17:01:07 2014 +0200 @@ -1,3 +1,10 @@ +chwala (0.2-0~kolab9) unstable; urgency=low + + * Disable chwala apache site when removed + * create correct sites-availabe/chwala configuration + + -- Daniel Hoffend Tue, 25 Feb 2014 13:37:23 +0200 + chwala (0.2-0~kolab8) unstable; urgency=low * Disable chwala apache site when removed diff -r a96df39e8894 -r 4f5514da6140 debian/dirs --- a/debian/dirs Mon May 12 21:37:03 2014 +0200 +++ b/debian/dirs Wed Sep 10 17:01:07 2014 +0200 @@ -1,4 +1,3 @@ -etc/apache2/sites-available usr/share/chwala usr/share/chwala/public_html usr/share/chwala/lib diff -r a96df39e8894 -r 4f5514da6140 debian/install --- a/debian/install Mon May 12 21:37:03 2014 +0200 +++ b/debian/install Wed Sep 10 17:01:07 2014 +0200 @@ -1,3 +1,2 @@ lib/ usr/share/chwala/ public_html/ usr/share/chwala/ -doc/chwala.conf etc/apache2/sites-available/chwala diff -r a96df39e8894 -r 4f5514da6140 debian/preinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/preinst Wed Sep 10 17:01:07 2014 +0200 @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +case "$1" in + upgrade|install) + # old version had problems with the apache conf created as directoy instead of file + if [ -e "/etc/apache2/sites-available/chwala/chwala.conf" ]; then + DIR=$(mktemp -d) + mv /etc/apache2/sites-available/chwala/* $DIR/ + rmdir /etc/apache2/sites-available/chwala/ + mv $DIR/chwala.conf /etc/apache2/sites-available/chwala + rmdir $DIR + fi + ;; +esac + +exit 0 diff -r a96df39e8894 -r 4f5514da6140 debian/prerm --- a/debian/prerm Mon May 12 21:37:03 2014 +0200 +++ b/debian/prerm Wed Sep 10 17:01:07 2014 +0200 @@ -13,7 +13,7 @@ case "$1" in remove) if [ -e "/etc/apache2/sites-enabled/chwala" ]; then - a2ensite chwala + a2dissite chwala fi reload_apache reload ;; diff -r a96df39e8894 -r 4f5514da6140 debian/rules --- a/debian/rules Mon May 12 21:37:03 2014 +0200 +++ b/debian/rules Wed Sep 10 17:01:07 2014 +0200 @@ -9,6 +9,9 @@ override_dh_install: dh_install -XLICENSE -X.gitignore + mkdir -p $(CURDIR)/debian/chwala/etc/apache2/sites-available + install -pm 644 $(CURDIR)/doc/chwala.conf $(CURDIR)/debian/chwala/etc/apache2/sites-available/chwala + # prepare for symbolic links, throw away unneeded code (same as in .spec file) rm -rf $(CURDIR)/debian/chwala/usr/share/chwala/lib/ext/Auth rm -rf $(CURDIR)/debian/chwala/usr/share/chwala/lib/ext/HTTP