* some cleanup and debian code beautification (tab/space/indentation)
authorFathi Boudra <fabo@uncensored.citadel.org>
Thu, 4 Jan 2007 20:25:35 +0000 (20:25 +0000)
committerFathi Boudra <fabo@uncensored.citadel.org>
Thu, 4 Jan 2007 20:25:35 +0000 (20:25 +0000)
12 files changed:
citadel/debian/changelog
citadel/debian/citadel-client.install
citadel/debian/citadel-client.postinst
citadel/debian/citadel-mta.postinst
citadel/debian/citadel-server.config
citadel/debian/citadel-server.dirs
citadel/debian/citadel-server.install
citadel/debian/citadel-server.postinst
citadel/debian/citadel-server.postrm
citadel/debian/citadel.init
citadel/debian/control
citadel/debian/rules

index 58abc21546f492ef0ad82d672b2ae8ccc339d544..94c20288eb1a9bc4098453c8273d9783f5c3e99f 100644 (file)
@@ -13,7 +13,7 @@ citadel (7.02-2) unstable; urgency=low
   * citadel-client.install: merged with citadel-client.examples
   * citadel-client.postinst:
     * clean up
-    * removed ucf mechanisms
+    * remove ucf mechanisms
     * add debhelper token
   * citadel-doc.install : merged with citadel-doc.docs
   * citadel-mta.postinst:
@@ -22,22 +22,22 @@ citadel (7.02-2) unstable; urgency=low
   * citadel-server.dirs:
     * clean up
     * add var/lib/citadel/data and var/run/citadel dir
-    * moved messages and help to /etc/citadel
+    * move help and messages to /etc/citadel
   * citadel-server.install: merged with citadel-server.examples
   * citadel-server.postinst:
     * clean up
     * remove mkdir call as we create them with citadel-server.dirs
-    * remove loops as we don't use ucf here anymore.
+    * remove loops as we don't use ucf here anymore
     * add debhelper token
   * citadel-server.postrm:
-    * clean up; remove ucf
+    * clean up
+    * remove ucf
     * add debhelper token
   * citadel-server.prerm:
     * clean up
     * use invoke-rc.d
     * add debhelper token
   * citadel-server.templates: add po support
-  * compat: bumped to 5
   * control:
     * priority set to extra instead optional
     * add myself in uploaders
@@ -55,77 +55,68 @@ citadel (7.02-2) unstable; urgency=low
  -- Fathi Boudra <fboudra@free.fr>  Fri, 29 Dec 2006 16:24:48 +0100
 
 citadel (7.02-1) unstable; urgency=low
-       
+
   * update to actual Citadel SVN. many new features. see Packages changelog.
 
  -- Wilfried Goesgens <citadel@outgesourced.org>  Thu, 28 Dec 2006 22:10:00 +0100
-       
 
-citadel (7.01-2) stable; urgency=high
-       
+citadel (7.01-1) stable; urgency=low
+
   * we can now configure logintype on installation time.
 
  -- Wilfried Goesgens <citadel@outgesourced.org>  Thu, 21 Dec 2006 22:10:00 +0100
-       
 
 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 <citadel@outgesourced.org>  Do, 31 Aug 2006 23:11:00 +0200
-       
+ -- Wilfried Goesgens <citadel@outgesourced.org>  Thu, 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 <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 <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 <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 <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 <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 <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)
+  * Initial release
 
  -- Wilfried Goesgens <citadel@outgesourced.org>  Sat, 23 Jul 2005 12:23:15 +0200
 
index 5f24fcd0dea07ada9abd424f4a5a330feff51809..71fb3c08bd6c081e3b138a320c0a90b600931ec6 100644 (file)
@@ -1,4 +1,4 @@
+etc/citadel/citadel.rc
 usr/bin/citadel
-usr/bin/whobbs
 usr/bin/stress
-etc/citadel/citadel.rc
+usr/bin/whobbs
index eeee37f7cec68cec176ec33e8d476daaa7c13644..44ba62652a3ba063a79854eda57dbc26b47879ab 100644 (file)
@@ -1,25 +1,33 @@
-#! /bin/sh
-# Abort if any command returns an error value
+#!/bin/sh
+# postinst script for citadel-client
+
 set -e
 
 case "$1" in
-  configure)
-    if ! getent group citadel >/dev/null; then 
-               groupadd citadel
-       fi
-       if ! getent passwd citadel >/dev/null; then 
-               adduser --system --ingroup citadel --home /var/lib/citadel \
-                       --gecos "Citadel system user" --shell /bin/sh \
-                       --disabled-password citadel
-       fi
-       mkdir -p /etc/citadel
-       chown citadel:citadel /etc/citadel/citadel.rc
-       ;;
-  abort-upgrade|abort-remove|abort-deconfigure)
+    configure)
+        if ! getent group citadel >/dev/null; then 
+            groupadd citadel
+        fi
+
+        if ! getent passwd citadel >/dev/null; then 
+            adduser --system --ingroup citadel --home /var/lib/citadel \
+                    --gecos "Citadel system user" --shell /bin/sh \
+                    --disabled-password citadel
+        fi
+
+        mkdir -p /etc/citadel
+        chown citadel:citadel /etc/citadel/citadel.rc
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
     ;;
-  *) echo "$0: didn't understand being called with \`$1'" 1>&2
-     exit 1;;
 esac
 
 #DEBHELPER#
+
 exit 0
index 1191b5d56b2dd751b4e743f08f2e692108083a6e..84353c47361954ae0754140f4a856bf96c62603d 100644 (file)
@@ -1,16 +1,23 @@
-#! /bin/sh
+#!/bin/sh
+# postinst script for citadel-mta
+
 set -e
 
 case "$1" in
-  configure)
-       chown root:citadel /usr/sbin/sendmail
-       chmod 04755 /usr/sbin/sendmail
-       ;;
-  abort-upgrade|abort-remove|abort-deconfigure)
+    configure)
+        chown root:citadel /usr/sbin/sendmail
+        chmod 4755 /usr/sbin/sendmail
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
     ;;
-  *) echo "$0: didn't understand being called with \`$1'" 1>&2
-     exit 0;;
 esac
 
 #DEBHELPER#
+
 exit 0
index ab1fa620721dacd5ac48965124fe3eaf50c4dbfd..15bf6b58b71b2aa536391958da46a8f72da28ba4 100755 (executable)
@@ -1,18 +1,21 @@
 #!/bin/sh
+
 set -e
 
+# source debconf stuff
 . /usr/share/debconf/confmodule
 db_version 2.0
 
 if test -n "$2"; then
- if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
-         -o $1 = reconfigure
- then
-        db_input high citadel/ServerIPAddress
-        db_input high citadel/Administrator
-        db_input high citadel/LoginType
-        db_input high citadel/Installnote
-        db_go
- fi
   if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
+        -o $1 = reconfigure
   then
+        db_input high citadel/ServerIPAddress
+        db_input high citadel/Administrator
+        db_input high citadel/LoginType
+        db_input high citadel/Installnote
+        db_go
   fi
 fi
+
 exit 0
index 14eb891f524f6cc6442a74df54f047e0ba178320..9cc6177c02919282c1cb593de587f0326d33dfb8 100644 (file)
@@ -1,6 +1,5 @@
 etc/citadel/help
 etc/citadel/messages
-usr/share/doc/citadel-server
 var/lib/citadel/bio
 var/lib/citadel/bitbucket
 var/lib/citadel/data
index de69608987978e5e27518b3acfb30642da1720a0..84438bf2326c82edcd3e77f676992badb8567a4c 100644 (file)
@@ -1,15 +1,14 @@
-usr/sbin/citserver
+etc/citadel/mail.aliases
+etc/citadel/public_clients
+etc/citadel/help
+etc/citadel/messages
+usr/lib/citadel-server/setup
 usr/sbin/aidepost
-usr/sbin/msgform
-usr/sbin/citmail
-usr/sbin/userlist
-usr/sbin/sendcommand
 usr/sbin/base64
-usr/lib/citadel-server/setup
 usr/sbin/chkpwd
-etc/citadel/mail.aliases
-etc/citadel/public_clients
-etc/citadel/messages/
-etc/citadel/help/
+usr/sbin/citmail
+usr/sbin/citserver
+usr/sbin/msgform
+usr/sbin/sendcommand
+usr/sbin/userlist
 usr/share/doc/citadel-server/database_cleanup.sh
-
index 1948720afdf7c1ad198898ad7c2cd8270726bba2..d01f2b88f4acd0e35261e7bd11a01ffdbf387ceb 100644 (file)
@@ -1,69 +1,74 @@
-#! /bin/sh
-# citadel-server.postinst
-# by Wilfried Goesgens & Fathi Boudra
+#!/bin/sh
+# postinst script for citadel-server
 
 set -e
 
-# Use debconf.
+# source debconf stuff
 . /usr/share/debconf/confmodule
-
 db_version 2.0
 
 case "$1" in
-  configure)
-    if ! getent group citadel >/dev/null; then 
-               groupadd citadel
-       fi
-       if ! getent passwd citadel >/dev/null; then 
-               adduser --system --ingroup citadel --home /var/lib/citadel \
-                       --gecos "Citadel system user" --shell /bin/sh \
-                       --disabled-password citadel
-       fi
-       chown -R citadel:citadel /etc/citadel
-       chown -R citadel:citadel /var/lib/citadel /var/spool/citadel
-
-# we're a bit paranoid here, because of this gave us many errors in the past.
-        chown root:root /usr/sbin/chkpwd
+    configure)
+        if ! getent group citadel >/dev/null; then 
+            groupadd citadel
+        fi
+
+        if ! getent passwd citadel >/dev/null; then 
+            adduser --system --ingroup citadel --home /var/lib/citadel \
+                    --gecos "Citadel system user" --shell /bin/sh \
+                    --disabled-password citadel
+        fi
+
+        chown -R citadel:citadel /etc/citadel
+        chown -R citadel:citadel /var/lib/citadel /var/spool/citadel
+
+        # we're a bit paranoid here,
+        # because of this gave us many errors in the past.
+       chown root:root /usr/sbin/chkpwd
         chmod 4755 /usr/sbin/chkpwd
 
-       db_get citadel/Administrator && admin="$RET"
-       db_get citadel/ServerIPAddress && ip_addr="$RET"
-       db_get citadel/LoginType && enable_unix_auth="$RET"
-       if test "$enable_unix_auth" = "true"; then
-           export ENABLE_UNIX_AUTH=yes
-       else
-           export ENABLE_UNIX_AUTH=no
-       fi
-       export IP_ADDR=$ip_addr
-       export CITADEL=''
-       export CITADEL_INSTALLER=yes
-       export ACT_AS_MTA=no
-       export SYSADMIN_NAME=$admin
-       export CREATE_XINETD_ENTRY=no
-       export CREATE_INITTAB_ENTRY=no
-       export NO_INIT_SCRIPTS=yes
-
-       echo "applying your settings."
-       /usr/lib/citadel-server/setup -q
-
-       if test -S /var/run/citadel/citadel.socket; then 
-           /usr/sbin/sendcommand "DOWN"
-       fi
-
-       while test -S /var/run/citadel/citadel.socket; do 
-           sleep 1
-       done
-
-       db_stop
-       
-       ;;
-  abort-upgrade|abort-remove|abort-deconfigure)
+        db_get citadel/Administrator && admin="$RET"
+        db_get citadel/ServerIPAddress && ip_addr="$RET"
+        db_get citadel/LoginType && enable_unix_auth="$RET"
+
+        if test "$enable_unix_auth" = "true"; then
+            export ENABLE_UNIX_AUTH=yes
+        else
+            export ENABLE_UNIX_AUTH=no
+        fi
+
+        export IP_ADDR=$ip_addr
+        export CITADEL=''
+        export CITADEL_INSTALLER=yes
+        export ACT_AS_MTA=no
+        export SYSADMIN_NAME=$admin
+        export CREATE_XINETD_ENTRY=no
+        export CREATE_INITTAB_ENTRY=no
+        export NO_INIT_SCRIPTS=yes
+
+        echo "applying your settings."
+        /usr/lib/citadel-server/setup -q
+
+        if test -S /var/run/citadel/citadel.socket; then 
+            /usr/sbin/sendcommand "DOWN"
+        fi
+
+        while test -S /var/run/citadel/citadel.socket; do 
+            sleep 1
+        done
+
+        db_stop
     ;;
 
-  *) echo "$0: didn't understand being called with \`$1'" 1>&2
-     exit 1;;
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
 esac
 
-       #DEBHELPER#
+#DEBHELPER#
 
 exit 0
index 7e196ceff8e457f1e1b3d1874ffdccd09cecd974..24663be6fab2aa14d0869886026c5f96c4591f51 100644 (file)
@@ -1,20 +1,29 @@
-#! /bin/sh
+#!/bin/sh
+# postrm script for citadel-server
+
 set -e
+
+# source debconf stuff
 . /usr/share/debconf/confmodule
 db_version 2.0
 
 case "$1" in
-  remove)
+    purge)
+        echo "/var/lib/citadel/data not removed, as it may contain your personal data."
+
+        db_purge
+        db_go
     ;;
-  purge)
-       echo "/var/lib/citadel/data not removed, as it may contain your personal data."
-       db_purge
-       db_go
-       ;;
-  disappear|upgrade|failed-upgrade|abort-install|abort-upgrade)
+
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
     ;;
-  *) echo "$0: didn't understand being called with \`$1'" 1>&2
-     exit 1;;
 esac
 
+#DEBHELPER#
+
 exit 0
index 40610d8f6172014b30d28ca63eeef5e8b318dd85..08f183a3e83aca376f9d85a249aa4ed285193030 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 ### BEGIN INIT INFO
-# Provides:          citadel-server
+# Provides:          citadel
 # Required-Start:    $local_fs $remote_fs
 # Required-Stop:     $local_fs $remote_fs
 # Default-Start:     2 3 4 5
@@ -10,6 +10,7 @@
 ### END INIT INFO
 
 # Author: Wilfried Goesgens <citadel@outgesourced.org>
+
 RUNDIR=/var/run/citadel
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC="Citadel Groupware "
@@ -20,14 +21,12 @@ PIDFILE=$RUNDIR/$NAME.pid
 SCRIPTNAME=/etc/init.d/citadel
 SENDCOMMAND=/usr/sbin/sendcommand
 
-
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
 
 # Read configuration variable file if it is present
 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
 
-# check if we 've got a newer system, so we can do fancy colors and so on.
 MODERN=
 
 # Load the VERBOSE setting and other rcS variables
@@ -85,7 +84,6 @@ do_stop()
            rm -f $PIDFILE
            return 2
        fi
-
 }
 
 #
@@ -156,9 +154,9 @@ case "$1" in
        fi
        ;;
   *)
-       echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
+       echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
        exit 3
        ;;
 esac
 
-exit 0
\ No newline at end of file
+exit 0
index dde77c56ccc043f0d42c4621923474e4d97e7425..cbbfaa6d5609ab4870a2617ca59de3a50a626bea 100644 (file)
@@ -3,10 +3,10 @@ Section: mail
 Priority: extra
 Maintainer: Wilfried Goesgens <citadel@outgesourced.org>
 Uploaders: Fathi Boudra <fboudra@free.fr>
-Build-Depends: debhelper (>= 4.0.0), po-debconf, bison, autotools-dev, 
- libdb4.4-dev | libdb4.3-dev, libical-dev,  libssl-dev, 
- libncurses5-dev, libldap2-dev,  libpam0g-dev, libsieve2-dev
-Standards-Version: 3.7.2.2
+Build-Depends: debhelper (>= 4), po-debconf, bison, autotools-dev,
+ libdb4.4-dev | libdb4.3-dev, libical-dev, libldap2-dev, libncurses5-dev,
+ libpam0g-dev, libsieve2-dev, libssl-dev
+Standards-Version: 3.7.2
 
 Package: citadel-server
 Architecture: any
@@ -100,7 +100,6 @@ Description: complete and feature-rich groupware server (command line client)
  .
    Homepage: http://www.citadel.org
 
-
 Package: citadel-doc
 Section: doc
 Architecture: all
index 9e31aa107590211a9d99d529dadedc1953efd5a6..48711d6538d8371f225229338d5281e4a39f307f 100755 (executable)
@@ -1,11 +1,13 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
+
 DEB_DESTDIR = $(CURDIR)/debian/tmp
+
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -17,8 +19,8 @@ endif
 configure: configure-stamp
 configure-stamp:
        dh_testdir
+
        CFLAGS="$(CFLAGS)" ./configure \
-               --prefix=/usr/sbin \
                --with-datadir=/var/lib/citadel \
                --with-spooldir=/var/spool/citadel \
                --with-sysconfdir=/etc/citadel \
@@ -44,12 +46,14 @@ build-arch-stamp: configure-stamp
 
 build-indep: build-indep-stamp
 build-indep-stamp: configure-stamp
+
        touch $@
 
 clean:
        dh_testdir
        dh_testroot
        rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
        -$(MAKE) distclean
 
        dh_clean 
@@ -60,7 +64,9 @@ install-indep:
        dh_testroot
        dh_clean -k -i 
        dh_installdirs -i
+
        $(MAKE) DESTDIR=$(DEB_DESTDIR) install-doc-new
+
        dh_install -i --sourcedir=debian/tmp
 
 install-arch:
@@ -68,10 +74,13 @@ install-arch:
        dh_testroot
        dh_clean -k -s 
        dh_installdirs -s
+
        $(MAKE) DESTDIR=$(DEB_DESTDIR) install-exec-new install-data-new
+
        mkdir -p $(DEB_DESTDIR)/usr/lib/citadel-server
        mv $(DEB_DESTDIR)/usr/sbin/setup \
                $(DEB_DESTDIR)/usr/lib/citadel-server/
+
        mkdir -p $(DEB_DESTDIR)/usr/share/doc/citadel-server/
        mv $(DEB_DESTDIR)/usr/share/doc/citadel-doc/database_cleanup.sh \
                $(DEB_DESTDIR)/usr/share/doc/citadel-server/