* modified debian scripts to utilise sysV init.
#!/bin/bash
+# find out the package version from conf
+export `grep PACKAGE_VERSION= configure |sed -e "s;';;g" -e "s;PACKAGE;CITADEL;"`
-CITADEL_VERSION=`grep '#define CITADEL.*Citadel' citadel.h |sed -e 's;";;g' -e "s;.* ;;"`
PACKAGE_VERSION=`cat packageversion`
DATE=`date '+%a, %d %b %Y %H:%I:00 %z'`
ACTUAL_DIR=`pwd`
-e "s;@CITADEL_VERSION@;${CITADEL_VERSION};" \
-e "s;@PACKAGE_VERSION@;${PACKAGE_VERSION};" \
> debian/files
- if grep -q "$CITADEL_VERSION" debian/changelog; then
+ if grep -q "($CITADEL_VERSION" debian/changelog; then
echo rebuilding package.
else
echo "citadel (${CITADEL_VERSION}-${PACKAGE_VERSION}) unstable; urgency=low
+citadel (7.00-1) unstable; urgency=low
+
+ * update to actual Citadel CVS. many new features. see Packages changelog.
+
+ -- Wilfried Goesgens <citadel@outgesourced.org> Sat, 16 Dec 2006 01:01:00 +0100
+
+
citadel (6.84-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Do, 31 Aug 2006 23:11:00 +0200
+ -- Wilfried Goesgens <citadel@outgesourced.org> Do, 31 Aug 2006 23:11:00 +0200
citadel (6.82-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Thu, 22 Jun 2006 20:08:00 +0200
+ -- Wilfried Goesgens <citadel@outgesourced.org> Thu, 22 Jun 2006 20:08:00 +0200
citadel (6.71-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Sat, 21 Jan 2006 19:07:00 +0100
+ -- Wilfried Goesgens <citadel@outgesourced.org> Sat, 21 Jan 2006 19:07:00 +0100
citadel (6.70-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Sun, 15 Jan 2006 15:03:00 +0100
+ -- Wilfried Goesgens <citadel@outgesourced.org> Sun, 15 Jan 2006 15:03:00 +0100
citadel (6.63-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Mon, 12 Dec 2005 11:11:00 +0100
+ -- Wilfried Goesgens <citadel@outgesourced.org> Mon, 12 Dec 2005 11:11:00 +0100
citadel (6.62-1) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Fri, 18 Nov 2005 16:04:00 +0100
+ -- Wilfried Goesgens <citadel@outgesourced.org> Fri, 18 Nov 2005 16:04:00 +0100
citadel (6.61-2) unstable; urgency=low
* update to actual Citadel CVS. many new features. see Packages changelog.
- -- Wilfried Goesgens <w.goesgens@chaosindustries.de> Tue, 01 Nov 2005 12:23:15 +0200
+ -- Wilfried Goesgens <citadel@outgesourced.org> Tue, 01 Nov 2005 12:23:15 +0200
citadel (6.53-1) unstable; urgency=low
* Initial release Closes: #nnnn (nnnn is the bug number of your ITP)
- -- Wilfried Goesgens <willi@jordy.home.net> Sat, 23 Jul 2005 12:23:15 +0200
+ -- Wilfried Goesgens <citadel@outgesourced.org> Sat, 23 Jul 2005 12:23:15 +0200
debian/tmp/usr/sbin/sendcommand
debian/tmp/usr/sbin/base64
debian/tmp/usr/lib/citadel-server/setup
+debian/tmp/usr/lib/citadel-server/ctdlsvc
export SYSADMIN_NAME=$admin
export CREATE_XINETD_ENTRY=no
export CREATE_INITTAB_ENTRY=no
+ export NO_INIT_SCRIPTS=yes
echo "applying your settings."
# citadel home
# sysadmin
if test -S /var/run/citadel/citadel.socket; then
/usr/sbin/sendcommand "DOWN"
fi
- killall -HUP init
+
+ update-rc.d citadel defaults >/dev/null
+
+ echo "run /etc/init.d/citadel start to start citadel service."
#### There are three sub-cases:
###if test "${2+set}" != set; then
### # We're being installed by an ancient dpkg which doesn't remember
exit 0;;
esac
-#DEBHELPER#
exit 0
#!/bin/sh
# stop the citadel service...
-export CREATE_INITTAB_ENTRY=no
-/usr/lib/citadel-server/setup -q
-killall -HUP init
+/etc/init.d/citadel stop
\ No newline at end of file
DESC="Citadel Groupware "
NAME=citserver
DAEMON=/usr/sbin/$NAME
-DAEMON_ARGS=" -d -x3 -lmail"
+CTDLSVC=/usr/lib/citadel-server/ctdlsvc
+DAEMON_ARGS=" -x3 -lmail -t/dev/null"
PIDFILE=$RUNDIR/$NAME.pid
SCRIPTNAME=/etc/init.d/citadel
SENDCOMMAND=/usr/sbin/sendcommand
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
- $DAEMON_ARGS \
- || return 2
+ if $CTDLSVC $PIDFILE $DAEMON \
+ $DAEMON_ARGS ; then
+ return 0
+ else
+ return 2
+ fi
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
- %SENDCOMMAND "DOWN"
+ if $SENDCOMMAND "DOWN" >/dev/null 2>&1 ; then
+ rm -f $PIDFILE
+ return 0
+ else
+ rm -f $PIDFILE
+ return 2
+ fi
#while test -d /proc/`cat $PIDFILE`; do
# /usr/bin/printf '.'
# /bin/sleep 1
#done
- sleep 5
#start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
#RETVAL="$?"
#[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
# rm -f $PIDFILE
- return 0
}
#
mv \
$(CURDIR)/debian/tmp/usr/sbin/setup \
$(CURDIR)/debian/tmp/usr/lib/citadel-server/
+ mv \
+ $(CURDIR)/debian/tmp/usr/sbin/ctdlsvc \
+ $(CURDIR)/debian/tmp/usr/lib/citadel-server/
# cd $(CURDIR)/debian/tmp/usr/share/doc/citadel-server/examples/help; md5sum * >../help.md5sums
# cd $(CURDIR)/debian/tmp/usr/share/doc/citadel-server/examples/messages; md5sum * >../messages.md5sums
cp \