diff --git a/debian/control b/debian/control index facde4ce1..14fa1a7eb 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Standards-Version: 3.7.3 Package: sogo Section: web Architecture: i386 -Depends: gnustep-base-common, gnustep-base-runtime, libsope-core, libsope-appserver, libsope-ldap, libsope-cards +Depends: gnustep-base-common, gnustep-base-runtime, libsope-core4.9, libsope-appserver4.9, libsope-ldap4.9 Description: SOGo SOGo is a groupware server built around OpenGroupware.org (OGo) and the SOPE application server. It focuses on scalability. diff --git a/debian/rules b/debian/rules index f072fa78a..8e2c65928 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ install-arch: dh_installdirs -s $(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install - mkdir -p debian/tmp/etc/init.d/sogod + mkdir -p debian/tmp/etc/init.d mkdir -p debian/tmp/etc/cron.daily mkdir -p debian/tmp/var/run/sogo mkdir -p debian/tmp/var/log/sogo diff --git a/debian/sogo.postinst b/debian/sogo.postinst index eac9b086d..35cac7bd0 100755 --- a/debian/sogo.postinst +++ b/debian/sogo.postinst @@ -2,17 +2,16 @@ set -e /usr/sbin/groupadd -f -K GID_MIN=100 -K GID_MAX=500 sogo -USERS=\`getent passwd|grep sogo|sed -e 's/\([a-zA-Z]*:\)\(.*\)/\1/g'\` +USERS=`getent passwd | grep sogo | sed -e 's/\([a-zA-Z]*\):.*/\1/g'` -if [ \"\$USERS\" != \"sogo:\" ] ; then -echo \"Adding user sogo\" -useradd -d /tmp -g sogo -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s -/bin/false sogo +if [ "$USERS" != "sogo" ] ; then + echo "Adding user sogo" + useradd -d /tmp -g sogo -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s /bin/false sogo fi -chown sogo /var/run/sogo -chown sogo /var/spool/sogo -chown sogo /var/log/sogo +chown -R sogo /var/run/sogo +chown -R sogo /var/spool/sogo +chown -R sogo /var/log/sogo update-rc.d sogod defaults /sbin/ldconfig diff --git a/debian/sogo.postrm b/debian/sogo.postrm index c0074bd72..28f349900 100755 --- a/debian/sogo.postrm +++ b/debian/sogo.postrm @@ -1,4 +1,4 @@ #!/bin/sh set -e -userdel sogo||true -update-rc.d SOGo remove ||true +userdel sogo || true +update-rc.d SOGo remove || true