$Log$
+Revision 653.15 2005/08/02 03:05:31 ajc
+* Added in Wilfried Goesgens' debian/ build directory.
+
Revision 653.14 2005/08/02 02:49:12 ajc
-* Applied W. Goegens' dirconfig patch for more install targets
+* Applied Wilfried Goesgens' dirconfig patch for more install targets
Revision 653.13 2005/08/01 20:45:26 ajc
* citadel_ipc.c: RUN_DIR not RUNDIR in line 2944
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
--- /dev/null
+citadel for Debian
+------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Wilfried Goesgens <willi@jordy.home.net>, Sat, 23 Jul 2005 12:23:15 +0200
--- /dev/null
+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
+
--- /dev/null
+debian/tmp/etc/citadel/citadel.rc
\ No newline at end of file
--- /dev/null
+debian/tmp/usr/bin/citadel
+debian/tmp/usr/bin/whobbs
+debian/tmp/usr/bin/stress
\ No newline at end of file
--- /dev/null
+#! /bin/sh
+# postinst.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called as the last step of the installation of the
+# package. All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+
+case "$1" in
+ configure)
+ # Configure this package. If the package must prompt the user for
+ # information, do it here.
+ :
+ gunzip -c /usr/share/doc/citadel-client/examples/citadel.rc.gz> /tmp/citadel.rc
+ ucf /tmp/citadel.rc /etc/citadel/citadel.rc
+ rm -f /tmp/citadel.rc
+
+ ### We could also do this on the fly. The following is from Tore
+ ### Anderson:
+
+ #. /usr/share/debconf/confmodule
+
+ ### find out what the user answered.
+ # db_get foo/run_on_boot
+ # run_on_boot=$RET
+ # db_stop
+
+ ### safely create a temporary file to generate our suggested
+ ### configuration file.
+ # tempfile=`tempfile`
+ # cat << _eof > $tempfile
+ ### Configuration file for Foo.
+
+ ### this was answered by you, the user in a debconf dialogue
+ # RUNONBOOT=$run_on_boot
+
+ ### this was not, as it has a sane default value.
+ # COLOUROFSKY=blue
+
+ #_eof
+
+ ### Note that some versions of debconf do not release stdin, so
+ ### the following invocation of ucf may not work, since the stdin
+ ### is never coneected to ucfr.
+
+ ### now, invoke ucf, which will take care of the rest, and ask
+ ### the user if he wants to update his file, if it is modified.
+ #ucf $tempfile /etc/foo.conf
+
+ ### done! now we'll just clear up our cruft.
+ #rm -f $tempfile
+
+
+ #### There are three sub-cases:
+ ###if test "${2+set}" != set; then
+ ### # We're being installed by an ancient dpkg which doesn't remember
+ ### # which version was most recently configured, or even whether
+ ### # there is a most recently configured version.
+ ### :
+ ###
+ ###elif test -z "$2" -o "$2" = "<unknown>"; then
+ ### # The package has not ever been configured on this system, or was
+ ### # purged since it was last configured.
+ ### :
+ ###
+ ###else
+ ### # Version $2 is the most recently configured version of this
+ ### # package.
+ ### :
+ ###
+ ###fi
+ ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package FROM THIS VERSION
+ # to version $2. Undo the effects of "prerm upgrade $2".
+ :
+
+ ;;
+ abort-remove)
+ ###if test "$2" != in-favour; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to remove this package, which was due to
+ #### a conflict with package $3 (version $4). Undo the effects of
+ #### "prerm remove in-favour $3 $4".
+ ###:
+
+ ;;
+ abort-deconfigure)
+ ###if test "$2" != in-favour -o "$5" != removing; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to deconfigure this package, which was
+ #### due to package $6 (version $7) which we depend on being removed
+ #### to make way for package $3 (version $4). Undo the effects of
+ #### "prerm deconfigure in-favour $3 $4 removing $6 $7".
+ ###:
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+exit 0
--- /dev/null
+shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libssl0.9.7
--- /dev/null
+debian/tmp/usr/share/doc/citadel-doc/docs
+debian/tmp/usr/share/doc/citadel-doc/techdoc
+debian/tmp/usr/share/doc/citadel-doc/README.txt
--- /dev/null
+debian/tmp/usr/sbin/sendmail
\ No newline at end of file
--- /dev/null
+#! /bin/sh
+# postinst.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called as the last step of the installation of the
+# package. All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+
+case "$1" in
+ configure)
+ # Configure this package. If the package must prompt the user for
+ # information, do it here.
+ :
+
+ #ln -s /usr/sbin/citmail /usr/sbin/sendmail
+
+ chown root:citadel /usr/sbin/sendmail
+ chmod 04755 /usr/sbin/sendmail
+ ### We could also do this on the fly. The following is from Tore
+ ### Anderson:
+
+ #. /usr/share/debconf/confmodule
+
+ ### find out what the user answered.
+ # db_get foo/run_on_boot
+ # run_on_boot=$RET
+ # db_stop
+
+ ### safely create a temporary file to generate our suggested
+ ### configuration file.
+ # tempfile=`tempfile`
+ # cat << _eof > $tempfile
+ ### Configuration file for Foo.
+
+ ### this was answered by you, the user in a debconf dialogue
+ # RUNONBOOT=$run_on_boot
+
+ ### this was not, as it has a sane default value.
+ # COLOUROFSKY=blue
+
+ #_eof
+
+ ### Note that some versions of debconf do not release stdin, so
+ ### the following invocation of ucf may not work, since the stdin
+ ### is never coneected to ucfr.
+
+ ### now, invoke ucf, which will take care of the rest, and ask
+ ### the user if he wants to update his file, if it is modified.
+ #ucf $tempfile /etc/foo.conf
+
+ ### done! now we'll just clear up our cruft.
+ #rm -f $tempfile
+
+
+ #### There are three sub-cases:
+ ###if test "${2+set}" != set; then
+ ### # We're being installed by an ancient dpkg which doesn't remember
+ ### # which version was most recently configured, or even whether
+ ### # there is a most recently configured version.
+ ### :
+ ###
+ ###elif test -z "$2" -o "$2" = "<unknown>"; then
+ ### # The package has not ever been configured on this system, or was
+ ### # purged since it was last configured.
+ ### :
+ ###
+ ###else
+ ### # Version $2 is the most recently configured version of this
+ ### # package.
+ ### :
+ ###
+ ###fi
+ ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package FROM THIS VERSION
+ # to version $2. Undo the effects of "prerm upgrade $2".
+ :
+
+ ;;
+ abort-remove)
+ ###if test "$2" != in-favour; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to remove this package, which was due to
+ #### a conflict with package $3 (version $4). Undo the effects of
+ #### "prerm remove in-favour $3 $4".
+ ###:
+
+ ;;
+ abort-deconfigure)
+ ###if test "$2" != in-favour -o "$5" != removing; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to deconfigure this package, which was
+ #### due to package $6 (version $7) which we depend on being removed
+ #### to make way for package $3 (version $4). Undo the effects of
+ #### "prerm deconfigure in-favour $3 $4 removing $6 $7".
+ ###:
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+exit 0
--- /dev/null
+#! /bin/sh
+# postrm.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called twice during the removal of the package; once
+# after the removal of the package's files from the system, and as
+# the final step in the removal of this package, after the package's
+# conffiles have been removed.
+
+# Ensure the menu system is updated
+: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+
+case "$1" in
+ remove)
+ # This package is being removed, but its configuration has not yet
+ # been purged.
+ rm -f /usr/sbin/sendmail
+
+ # Remove diversion
+ #: dpkg-divert --package foo --remove --rename \
+ #: --divert /usr/bin/other.real /usr/bin/other
+
+ # ldconfig is NOT needed during removal of a library, only during
+ # installation
+
+ ;;
+ purge)
+ # This package has previously been removed and is now having
+ # its configuration purged from the system.
+ # remove the gunzipped setup executable.
+ # we mimic dpkg as closely as possible, so we remove configuration
+ # files with dpkg backup extensions too:
+ ### Some of the following is from Tore Anderson:
+ ### TODO: remove citadel from inittab!
+ ;;
+ disappear)
+ if test "$2" != overwriter; then
+ echo "$0: undocumented call to \`postrm $*'" 1>&2
+ exit 0
+ fi
+ # This package has been completely overwritten by package $3
+ # (version $4). All our files are already gone from the system.
+ # This is a special case: neither "prerm remove" nor "postrm remove"
+ # have been called, because dpkg didn't know that this package would
+ # disappear until this stage.
+ :
+
+ ;;
+ upgrade)
+ # About to upgrade FROM THIS VERSION to version $2 of this package.
+ # "prerm upgrade" has been called for this version, and "preinst
+ # upgrade" has been called for the new version. Last chance to
+ # clean up.
+ :
+
+ ;;
+ failed-upgrade)
+ # About to upgrade from version $2 of this package TO THIS VERSION.
+ # "prerm upgrade" has been called for the old version, and "preinst
+ # upgrade" has been called for this version. This is only used if
+ # the previous version's "postrm upgrade" couldn't handle it and
+ # returned non-zero. (Fix old postrm bugs here.)
+ :
+
+ ;;
+ abort-install)
+ # Back out of an attempt to install this package. Undo the effects of
+ # "preinst install...". There are two sub-cases.
+ :
+
+ if test "${2+set}" = set; then
+ # When the install was attempted, version $2's configuration
+ # files were still on the system. Undo the effects of "preinst
+ # install $2".
+ :
+
+ else
+ # We were being installed from scratch. Undo the effects of
+ # "preinst install".
+ :
+
+ fi ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package from version $2
+ # TO THIS VERSION. Undo the effects of "preinst upgrade $2".
+ :
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+exit 0
--- /dev/null
+shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libssl0.9.7
--- /dev/null
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH CITADEL SECTION "July 23, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+citadel \- The favorite BBS System grown up to a fullfeatured Groupware
+.SH SYNOPSIS
+.B citadel
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+For more information see the citadel-doc package, www.citadel.org, or
+for post configuring your citadel server, use citadel-webcit with your
+browser, log in as the user you specified at the debconf prompt, and
+review the Points under the Administration menu.
+.B citadel
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBcitadel\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the documentation under /usr/share/doc.
+If you have further issues, please consult the documentation at http://citadel.org
+or log in to
+https://uncensored.citadel.org. In 'The Home of Citadel' floor;
+For issues concerning the Debian Packages, see the Citadel packages room,
+For issues concerning citadel itself see the Citadel/UX room.
+Feel welcome to join the discussion.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+citadel was written by <upstream author>.
+.PP
+This manual page was written by Wilfried Goesgens <dothebart@uncensored.citadel.org>
+for the Debian project (but may be used by others).
--- /dev/null
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+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/Installnote
+ db_go
+ fi
+fi
+exit 0
--- /dev/null
+debian/tmp/usr/sbin
+debian/tmp/usr/share/doc
+debian/tmp/usr/share/doc/citadel-server
+debian/tmp/var/run/citadel/network/spoolin
+debian/tmp/var/run/citadel/network/spoolout
+debian/tmp/var/run/citadel/network/systems
+debian/tmp/var/lib/citadel/help
+debian/tmp/var/lib/citadel/messages
+debian/tmp/var/lib/citadel/bio
+debian/tmp/var/lib/citadel/bitbucket
+debian/tmp/var/lib/citadel/files
+debian/tmp/var/lib/citadel/images
+debian/tmp/var/lib/citadel/info
+debian/tmp/var/lib/citadel/userpics
+debian/tmp/var/spool/citadel/network/spoolin
+debian/tmp/var/spool/citadel/network/spoolout
+debian/tmp/var/spool/citadel/network/systems
+debian/tmp/etc/citadel
--- /dev/null
+debian/tmp/var/lib/citadel/help/
+debian/tmp/var/lib/citadel/messages/
+debian/tmp/etc/citadel/public_clients
+debian/tmp/etc/citadel/mail.aliases
+debian/tmp/usr/share/doc/citadel-doc/database_cleanup.sh
+debian/tmp/usr/share/doc/citadel-doc/database_cleanup.sh
+debian/tmp/usr/share/doc/citadel-doc/citadel-openldap.schema
--- /dev/null
+debian/tmp/usr/sbin/citserver
+debian/tmp/usr/sbin/chkpwd
+debian/tmp/usr/sbin/aidepost
+debian/tmp/usr/sbin/msgform
+debian/tmp/usr/sbin/citmail
+debian/tmp/usr/sbin/userlist
+debian/tmp/usr/sbin/sendcommand
+debian/tmp/usr/sbin/base64
+debian/tmp/usr/lib/citadel-server/setup
--- /dev/null
+#! /bin/sh
+# postinst.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# Use debconf.
+. /usr/share/debconf/confmodule
+
+# This script is called as the last step of the installation of the
+# package. All the package's files are in place, dpkg has already done
+# its automatic conffile handling, and all the packages we depend of
+# are already fully installed and configured.
+
+# The following idempotent stuff doesn't generally need protecting
+# against being run in the abort-* cases.
+
+#### Install info files into the dir file
+###: install-info --quiet --section "section pattern" "Section Title" \
+###: --description="Name of the document" /usr/info/foo.info
+###
+#### Create stub directories under /usr/local
+###: if test ! -d /usr/local/lib/foo; then
+###: if test ! -d /usr/local/lib; then
+###: if mkdir /usr/local/lib; then
+###: chown root.staff /usr/local/lib || true
+###: chmod 2775 /usr/local/lib || true
+###: fi
+###: fi
+###: if mkdir /usr/local/lib/foo; then
+###: chown root.staff /usr/local/lib/foo || true
+###: chmod 2775 /usr/local/lib/foo || true
+###: fi
+###: fi
+###
+#### Ensure the menu system is updated
+###: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+###
+#### Arrange for a daemon to be started at system boot time
+###: update-rc.d foo default >/dev/null
+###
+
+case "$1" in
+ configure)
+ # Configure this package. If the package must prompt the user for
+ # information, do it here.
+ if ! getent group citadel >/dev/null; then
+ groupadd --system 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
+ # Activate menu-methods script
+ #: chmod a+x /etc/menu-methods/foo
+
+ # Update ld.so cache
+ #: ldconfig
+
+ # Make our version of a program available
+ #: update-alternatives \
+ #: --install /usr/bin/program program /usr/bin/alternative 50 \
+ #: --slave /usr/share/man/man1/program.1.gz program.1.gz \
+ #: /usr/share/man/man1/alternative.1.gz
+
+ # Tell ucf that the file in /usr/share/foo is the latest
+ # maintainer version, and let it handle how to manage the real
+ # confuguration file in /etc. This is how a static configuration
+ # file can be handled:
+ ucf /usr/share/doc/citadel-server/examples/mail.aliases /etc/citadel/mail.aliases
+ ucf /usr/share/doc/citadel-server/examples/public_clients /etc/citadel/public_clients
+
+ #: !TODO: should network/systems go to /etc/citadel?
+
+# mkdir -p \
+# /var/lib/citadel/help \
+# /var/lib/citadel/messages \
+# /var/lib/citadel/data/ \
+# /var/lib/citadel/bio/ \
+# /var/lib/citadel/bitbucket/ \
+# /var/lib/citadel/files/ \
+# /var/lib/citadel/images/ \
+# /var/lib/citadel/info/ \
+# /var/lib/citadel/userpics/ \
+# /var/spool/citadel/network/spoolin \
+# /var/spool/citadel/network/spoolout \
+# /var/spool/citadel/network/spoolsystems \
+# /var/run/citadel
+#
+
+ for i in '?' aide floors hours intro.gz mail network nice.gz policy software summary.gz; do
+ case $i in
+ *.gz)
+ j=`echo $i|sed "s;.gz;;"`
+ gunzip -c "/usr/share/doc/citadel-server/examples/help/$i" >"/tmp/$j"
+ i=$j
+ ;;
+ *)
+ cp "/usr/share/doc/citadel-server/examples/help/$i" "/tmp"
+ ;;
+ esac
+ ucf "/tmp/$i" "/var/lib/citadel/help/$i"
+ rm -f "/tmp/$i"
+ done
+
+# # TODO: there is a file named '?'. this gives trouble with ucf, so do it by hand for now.
+# if test ! -e '/var/lib/citadel/help/?'; then
+# cp '/usr/share/doc/citadel/examples/data/help/?' '/var/lib/citadel/help'
+# fi
+ for i in aideopt changepw dotopt entermsg entopt goodbye hello help mainmenu newuser readopt register roomaccess unlisted; do
+ ucf "/usr/share/doc/citadel-server/examples/messages/$i" "/var/lib/citadel/messages/$i"
+
+ done
+
+ chown -R citadel:citadel /var/lib/citadel /var/run/citadel /var/spool/citadel
+
+ ### We could also do this on the fly. The following is from Tore
+ ### Anderson:
+
+ #. /usr/share/debconf/confmodule
+
+ ### find out what the user answered.
+ # db_get foo/run_on_boot
+ # run_on_boot=$RET
+ # db_stop
+
+ ### safely create a temporary file to generate our suggested
+ ### configuration file.
+ # tempfile=`tempfile`
+ # cat << _eof > $tempfile
+ ### Configuration file for Foo.
+
+ ### this was answered by you, the user in a debconf dialogue
+ # RUNONBOOT=$run_on_boot
+
+ ### this was not, as it has a sane default value.
+ # COLOUROFSKY=blue
+
+ #_eof
+
+ ### Note that some versions of debconf do not release stdin, so
+ ### the following invocation of ucf may not work, since the stdin
+ ### is never coneected to ucfr.
+
+ ### now, invoke ucf, which will take care of the rest, and ask
+ ### the user if he wants to update his file, if it is modified.
+ #ucf $tempfile /etc/foo.conf
+
+ ### done! now we'll just clear up our cruft.
+ #rm -f $tempfile
+
+ db_get citadel/Administrator && admin="$RET"
+ db_get citadel/ServerIPAddress && ip_addr="$RET"
+ echo "applying your settings."
+ echo "/usr/sbin
+$admin
+citadel
+$ip_addr
+
+" | \
+ /usr/lib/citadel-server/setup -q
+
+ #### There are three sub-cases:
+ ###if test "${2+set}" != set; then
+ ### # We're being installed by an ancient dpkg which doesn't remember
+ ### # which version was most recently configured, or even whether
+ ### # there is a most recently configured version.
+ ### :
+ ###
+ ###elif test -z "$2" -o "$2" = "<unknown>"; then
+ ### # The package has not ever been configured on this system, or was
+ ### # purged since it was last configured.
+ ### :
+ ###
+ ###else
+ ### # Version $2 is the most recently configured version of this
+ ### # package.
+ ### :
+ ###
+ ###fi
+ ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package FROM THIS VERSION
+ # to version $2. Undo the effects of "prerm upgrade $2".
+ #:
+
+ ;;
+ abort-remove)
+ ###if test "$2" != in-favour; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to remove this package, which was due to
+ #### a conflict with package $3 (version $4). Undo the effects of
+ #### "prerm remove in-favour $3 $4".
+ ###:
+
+ ;;
+ abort-deconfigure)
+ ###if test "$2" != in-favour -o "$5" != removing; then
+ ### echo "$0: undocumented call to \`postinst $*'" 1>&2
+ ### exit 0
+ ###fi
+ #### Back out of an attempt to deconfigure this package, which was
+ #### due to package $6 (version $7) which we depend on being removed
+ #### to make way for package $3 (version $4). Undo the effects of
+ #### "prerm deconfigure in-favour $3 $4 removing $6 $7".
+ ###:
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+exit 0
--- /dev/null
+#! /bin/sh
+# postrm.skeleton
+# Skeleton maintainer script showing all the possible cases.
+# Written by Charles Briscoe-Smith, March-June 1998. Public Domain.
+
+# Abort if any command returns an error value
+set -e
+
+# This script is called twice during the removal of the package; once
+# after the removal of the package's files from the system, and as
+# the final step in the removal of this package, after the package's
+# conffiles have been removed.
+
+# Ensure the menu system is updated
+: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
+
+case "$1" in
+ remove)
+ # This package is being removed, but its configuration has not yet
+ # been purged.
+
+
+ # Remove diversion
+ #: dpkg-divert --package foo --remove --rename \
+ #: --divert /usr/bin/other.real /usr/bin/other
+
+ # ldconfig is NOT needed during removal of a library, only during
+ # installation
+
+ ;;
+ purge)
+ # This package has previously been removed and is now having
+ # its configuration purged from the system.
+ # remove the gunzipped setup executable.
+ rm -f /usr/share/doc/citadel-server/contrib/setup
+ for i in '?' aide floors hours intro mail network nice policy software summary; do
+ ucf --purge "/var/lib/citadel/help/$i"
+ rm -f "/var/lib/citadel/help/$i"
+ done
+
+ for i in aideopt changepw dotopt entermsg entopt goodbye hello help mainmenu newuser readopt register roomaccess unlisted; do
+ ucf --purge "/var/lib/citadel/messages/$i"
+ rm -f "/var/lib/citadel/messages/$i"
+ done
+
+ for i in mail.aliases public_clients citadel.conf; do
+ ucf --purge "/etc/citadel/$i"
+ rm -f "/etc/citadel/$i"
+ done
+ # we mimic dpkg as closely as possible, so we remove configuration
+ # files with dpkg backup extensions too:
+ ### Some of the following is from Tore Anderson:
+ for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
+ rm -f /etc/citadel/*$ext
+ rm -f /var/lib/citadel/messages/*$ext
+ rm -f /var/lib/citadel/help/*$ext
+ done
+ ### TODO: remove citadel from inittab!
+ ;;
+ disappear)
+ if test "$2" != overwriter; then
+ echo "$0: undocumented call to \`postrm $*'" 1>&2
+ exit 0
+ fi
+ # This package has been completely overwritten by package $3
+ # (version $4). All our files are already gone from the system.
+ # This is a special case: neither "prerm remove" nor "postrm remove"
+ # have been called, because dpkg didn't know that this package would
+ # disappear until this stage.
+ :
+
+ ;;
+ upgrade)
+ # About to upgrade FROM THIS VERSION to version $2 of this package.
+ # "prerm upgrade" has been called for this version, and "preinst
+ # upgrade" has been called for the new version. Last chance to
+ # clean up.
+ :
+
+ ;;
+ failed-upgrade)
+ # About to upgrade from version $2 of this package TO THIS VERSION.
+ # "prerm upgrade" has been called for the old version, and "preinst
+ # upgrade" has been called for this version. This is only used if
+ # the previous version's "postrm upgrade" couldn't handle it and
+ # returned non-zero. (Fix old postrm bugs here.)
+ :
+
+ ;;
+ abort-install)
+ # Back out of an attempt to install this package. Undo the effects of
+ # "preinst install...". There are two sub-cases.
+ :
+
+ if test "${2+set}" = set; then
+ # When the install was attempted, version $2's configuration
+ # files were still on the system. Undo the effects of "preinst
+ # install $2".
+ :
+
+ else
+ # We were being installed from scratch. Undo the effects of
+ # "preinst install".
+ :
+
+ fi ;;
+ abort-upgrade)
+ # Back out of an attempt to upgrade this package from version $2
+ # TO THIS VERSION. Undo the effects of "preinst upgrade $2".
+ :
+
+ ;;
+ *) echo "$0: didn't understand being called with \`$1'" 1>&2
+ exit 0;;
+esac
+
+exit 0
--- /dev/null
+# Automatically added by dh_installdebconf
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+# End automatically added section
--- /dev/null
+misc:Depends=debconf (>= 0.5) | debconf-2.0
+shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libdb4.2, libldap2 (>= 2.1.17-1), libncurses5 (>= 5.4-5), libssl0.9.7, zlib1g (>= 1:1.2.1)
--- /dev/null
+Template: citadel/ServerIPAddress
+Type: string
+Default: 0.0.0.0
+Description: Listen IP for Citadel
+ Specify the IP address on which your server will run. If you
+ specify 0.0.0.0, Citadel will listen on all addresses.
+ You can usually skip this unless you are running multiple
+ instances of Citadel on the same computer.
+
+
+Template: citadel/Administrator
+Type: string
+Default: Administrator
+Description: Citadel Administrator
+ Enter the name of the Citadeladministrator (which is probably
+ you). When an account is created with this name, it will
+ automatically be given administrator-level access.
+
+
+Template: citadel/Installnote
+Type: note
+Description: Citadel/UX
+ For post configuring your Citadel Server, use citadel-webcit with your
+ browser, log in as the user you specified as the Administrator, and
+ review the Points under the Administration menu. If you have further
+ questions review www.citadel.org, specialy the FAQ and Documentation
+ section.
\ No newline at end of file
--- /dev/null
+shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libdb4.2, libldap2 (>= 2.1.17-1), libncurses5 (>= 5.4-5), libssl0.9.7, zlib1g (>= 1:1.2.1)
--- /dev/null
+Source: citadel
+Section: mail
+Priority: optional
+Maintainer: Wilfried Goesgens <w.goesgens@chaosindutries.de>
+Build-Depends: debhelper (>= 4.0.0), libical-dev, autotools-dev, zlib1g-dev , libical-dev, libssl-dev, libncurses5-dev, libdb4.2-dev, libldap2-dev, libsasl2-dev, libgnutls11-dev, libgcrypt11-dev,
+Standards-Version: 3.6.1
+
+Package: citadel-server
+Architecture: any
+Pre-Depends: debconf
+Depends: ${shlibs:Depends}, ${misc:Depends}, debconf, libical, libssl0.9.7, libncurses5, libdb4.2, libldap2, libsasl2, libgnutls11, libgcrypt11, libc6, libgpg-error0, ucf
+Suggests: citadel-mta
+Description: Citadel is the good old BBS system grown up to a Groupware.
+ Citadel is a different kind of messaging and collaboration platform. While
+ others focus on automating business processes, Citadel focuses on
+ connecting communities of people together. Users love Citadel because it's
+ software that helps them work, play, stay in touch... without calling
+ attention to itself.
+
+Package: citadel-doc
+Architecture: all
+Description: Documentation for citadel, the BBS and Groupware
+ Citadel is a different kind of messaging and collaboration platform. While
+ others focus on automating business processes, Citadel focuses on
+ connecting communities of people together. Users love Citadel because it's
+ software that helps them work, play, stay in touch... without calling
+ attention to itself.
+
+Package: citadel-client
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ucf
+Description: This is the commandline-client to the citadel BBS system.
+ Citadel is a different kind of messaging and collaboration platform. While
+ others focus on automating business processes, Citadel focuses on
+ connecting communities of people together. Users love Citadel because it's
+ software that helps them work, play, stay in touch... without calling
+ attention to itself.
+
+Package: citadel-mta
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, citadel-server
+Conflicts: mail-transport-agent, smail
+Provides: mail-transport-agent
+Description: MTA component of the citadel BBS system.
+ Citadel is a different kind of messaging and collaboration platform. While
+ others focus on automating business processes, Citadel focuses on
+ connecting communities of people together. Users love Citadel because it's
+ software that helps them work, play, stay in touch... without calling
+ attention to itself.
+ This Package provides /usr/bin/sendmail, and the MTA Component. if you
+ want to use citadel in konjunction with another MTA system, don't install
+ this package.
--- /dev/null
+This package was debianized by Wilfried Goesgens <dothebart@uncensored.citadel.org> on
+Sat, 23 Jul 2005 12:23:15 +0200.
+
+It was downloaded from citadel.org
+
+Copyright Holder: Copyright ©1987-2005 by the Citadel development team, see http://easyinstall.citadel.org/citadel/docs/citadel.html
+
+License: GPL
+
+see http://www.gnu.org/copyleft/gpl.html or /usr/share/common-licenses/GPL
--- /dev/null
+usr/bin
+usr/sbin
--- /dev/null
+README.txt
+README.txt
--- /dev/null
+citadel-server_6.53-1_i386.deb mail optional
+citadel-client_6.53-1_i386.deb mail optional
+citadel-mta_6.53-1_i386.deb mail optional
+citadel-doc_6.53-1_all.deb mail optional
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# 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
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export VERSION=`grep 'THIS IS' $(CURDIR)/ChangeLog |head -n 1 |sed "s;.* ;;"`
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+config.status: configure
+ dh_testdir
+ CFLAGS="$(CFLAGS)" ./configure \
+ --host=$(DEB_HOST_GNU_TYPE) \
+ --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr/sbin \
+ --with-sysconfdir=/etc/citadel \
+ --with-spooldir=/var/spool/citadel \
+ --with-datadir=/var/lib/citadel \
+ --with-rundir=/var/run/citadel \
+ --with-docdir=/usr/share/doc/citadel-doc/ \
+ --with-ical --with-db --with-ldap
+
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: config.status
+
+ # Add here commands to compile the arch part of the package.
+ #$(MAKE)
+ touch build-arch-stamp
+
+build-indep: build-indep-stamp
+build-indep-stamp: config.status
+
+ # Add here commands to compile the indep part of the package.
+ #$(MAKE) doc
+ touch build-indep-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+ -$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+ dh_clean
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ export root=$(CURDIR)/debian/tmp; $(MAKE) install-doc-new prefix=$(CURDIR)/debian/citadel-doc/
+
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+ mkdir -p $(CURDIR)/debian/tmp/
+ export root=$(CURDIR)/debian/tmp/;$(MAKE) install-exec-new install-data-new
+
+ mkdir -p $(CURDIR)/debian/tmp/usr/lib/citadel-server
+ mv \
+ $(CURDIR)/debian/tmp/usr/sbin/setup \
+ $(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 \
+ $(CURDIR)/debian/tmp/usr/sbin/citmail \
+ $(CURDIR)/debian/tmp/usr/sbin/sendmail
+ dh_installexamples
+ dh_install
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+# dh_installmenu
+ dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+#doesn't work like that. will be done by postinst.
+# mkdir -p $(CURDIR)/debian/citadel-mta/usr/sbin
+# dh_link --package=citadel-mta /usr/sbin/citmail /usr/sbin/sendmail
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch