(fix) moved stuff to multiarch

This commit is contained in:
Ludovic Marcotte
2015-05-13 16:09:41 -04:00
parent 4de814c3b2
commit d97813451e
8 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ install-arch: build-arch
install -D -m 644 Scripts/sogo-default debian/tmp/etc/default/sogo
install -D -m 644 debian/sogo.overrides debian/tmp/usr/share/lintian/overrides/sogo
install -D -m 644 Apache/SOGo.conf debian/tmp/etc/apache2/conf.d/SOGo.conf
install -D -m 644 Apache/SOGo.conf debian/tmp/etc/apache2/conf-available/SOGo.conf
install -D -m 644 Scripts/sogo.cron debian/tmp/etc/cron.d/sogo
install -D -m 644 Scripts/logrotate debian/tmp/etc/logrotate.d/sogo
install -d -m 750 debian/tmp/etc/sogo/
+1 -1
View File
@@ -1,4 +1,4 @@
etc/apache2/conf.d/SOGo.conf
etc/apache2/conf-available/SOGo.conf
etc/cron.d/sogo
etc/default/sogo
etc/logrotate.d/sogo
+12
View File
@@ -26,6 +26,18 @@ case "$1" in
chown root:sogo /etc/sogo
chmod 640 /etc/sogo/sogo.conf
chown root:sogo /etc/sogo/sogo.conf
# Apache 2.2 / 2.4 kungfu
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enconf SOGo || exit $?
elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
if [ -d /etc/apache2/conf.d/ -a ! -L /etc/apache2/conf.d/SOGo.conf ]; then
ln -s ../conf-available/SOGo.conf /etc/apache2/conf.d/SOGo.conf
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
+9
View File
@@ -13,5 +13,14 @@ set -e
# for details, see /usr/share/doc/packaging-manual/
#DEBHELPER#
if [ "$1" = "deconfigure" ] ; then
# Apache 2.2 / 2.4 kungfu
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
[ ! -L /etc/apache2/conf.d/SOGo.conf ] || rm /etc/apache2/conf.d/SOGo.conf
fi
fi
exit 0
+1 -1
View File
@@ -80,7 +80,7 @@ install-arch: build-arch
install -D -m 644 Scripts/sogo-default debian/tmp/etc/default/sogo
install -D -m 644 debian/sogo.overrides debian/tmp/usr/share/lintian/overrides/sogo
install -D -m 644 Apache/SOGo.conf debian/tmp/etc/apache2/conf-available/SOGo.conf
install -D -m 644 Apache/SOGo.conf debian/tmp/etc/apache2/conf.d/SOGo.conf
install -D -m 644 Scripts/sogo.cron debian/tmp/etc/cron.d/sogo
install -D -m 644 Scripts/logrotate debian/tmp/etc/logrotate.d/sogo
install -d -m 750 debian/tmp/etc/sogo
+1 -1
View File
@@ -1,4 +1,4 @@
etc/apache2/conf-available/SOGo.conf
etc/apache2/conf.d/SOGo.conf
etc/cron.d/sogo
etc/default/sogo
etc/logrotate.d/sogo
-12
View File
@@ -26,18 +26,6 @@ case "$1" in
chown root:sogo /etc/sogo
chmod 640 /etc/sogo/sogo.conf
chown root:sogo /etc/sogo/sogo.conf
# Apache 2.2 / 2.4 kungfu
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enconf SOGo || exit $?
elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
if [ -d /etc/apache2/conf.d/ -a ! -L /etc/apache2/conf.d/SOGo.conf ]; then
ln -s ../conf-available/SOGo.conf /etc/apache2/conf.d/SOGo.conf
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
-9
View File
@@ -13,14 +13,5 @@ set -e
# for details, see /usr/share/doc/packaging-manual/
#DEBHELPER#
if [ "$1" = "deconfigure" ] ; then
# Apache 2.2 / 2.4 kungfu
COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
[ ! -L /etc/apache2/conf.d/SOGo.conf ] || rm /etc/apache2/conf.d/SOGo.conf
fi
fi
exit 0