From 891240bd88dce145e36f14eaefd1a1450e370c16 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 2 Aug 2005 03:05:34 +0000 Subject: [PATCH] * Added in Wilfried Goesgens' debian/ build directory. --- citadel/ChangeLog | 6 +- citadel/debian/README.Debian | 6 + citadel/debian/changelog | 6 + citadel/debian/citadel-client.examples | 1 + citadel/debian/citadel-client.install | 3 + citadel/debian/citadel-client.postinst | 111 +++++++++ citadel/debian/citadel-client.substvars | 1 + citadel/debian/citadel-doc.docs | 3 + citadel/debian/citadel-doc.install | 1 + citadel/debian/citadel-mta.install | 1 + citadel/debian/citadel-mta.postinst | 112 +++++++++ citadel/debian/citadel-mta.postrm | 97 ++++++++ citadel/debian/citadel-mta.substvars | 1 + citadel/debian/citadel-server.1.manpage | 68 ++++++ citadel/debian/citadel-server.config | 15 ++ citadel/debian/citadel-server.dirs | 18 ++ citadel/debian/citadel-server.examples | 7 + citadel/debian/citadel-server.install | 9 + citadel/debian/citadel-server.postinst | 219 ++++++++++++++++++ citadel/debian/citadel-server.postrm | 117 ++++++++++ .../debian/citadel-server.postrm.debhelper | 6 + citadel/debian/citadel-server.substvars | 2 + citadel/debian/citadel-server.templates | 27 +++ citadel/debian/citadel.substvars | 1 + citadel/debian/compat | 1 + citadel/debian/control | 52 +++++ citadel/debian/copyright | 10 + citadel/debian/dirs | 2 + citadel/debian/docs | 2 + citadel/debian/files | 4 + citadel/debian/rules | 149 ++++++++++++ 31 files changed, 1056 insertions(+), 2 deletions(-) create mode 100644 citadel/debian/README.Debian create mode 100644 citadel/debian/changelog create mode 100644 citadel/debian/citadel-client.examples create mode 100644 citadel/debian/citadel-client.install create mode 100644 citadel/debian/citadel-client.postinst create mode 100644 citadel/debian/citadel-client.substvars create mode 100644 citadel/debian/citadel-doc.docs create mode 100644 citadel/debian/citadel-doc.install create mode 100644 citadel/debian/citadel-mta.install create mode 100644 citadel/debian/citadel-mta.postinst create mode 100644 citadel/debian/citadel-mta.postrm create mode 100644 citadel/debian/citadel-mta.substvars create mode 100644 citadel/debian/citadel-server.1.manpage create mode 100755 citadel/debian/citadel-server.config create mode 100644 citadel/debian/citadel-server.dirs create mode 100644 citadel/debian/citadel-server.examples create mode 100644 citadel/debian/citadel-server.install create mode 100644 citadel/debian/citadel-server.postinst create mode 100644 citadel/debian/citadel-server.postrm create mode 100644 citadel/debian/citadel-server.postrm.debhelper create mode 100644 citadel/debian/citadel-server.substvars create mode 100644 citadel/debian/citadel-server.templates create mode 100644 citadel/debian/citadel.substvars create mode 100644 citadel/debian/compat create mode 100644 citadel/debian/control create mode 100644 citadel/debian/copyright create mode 100644 citadel/debian/dirs create mode 100644 citadel/debian/docs create mode 100644 citadel/debian/files create mode 100755 citadel/debian/rules diff --git a/citadel/ChangeLog b/citadel/ChangeLog index a741fb9da..2a5f6d9d9 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,6 +1,9 @@ $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 @@ -6971,4 +6974,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/debian/README.Debian b/citadel/debian/README.Debian new file mode 100644 index 000000000..7a83e015b --- /dev/null +++ b/citadel/debian/README.Debian @@ -0,0 +1,6 @@ +citadel for Debian +------------------ + + + + -- Wilfried Goesgens , Sat, 23 Jul 2005 12:23:15 +0200 diff --git a/citadel/debian/changelog b/citadel/debian/changelog new file mode 100644 index 000000000..f2d2e2ec3 --- /dev/null +++ b/citadel/debian/changelog @@ -0,0 +1,6 @@ +citadel (6.53-1) unstable; urgency=low + + * Initial release Closes: #nnnn (nnnn is the bug number of your ITP) + + -- Wilfried Goesgens Sat, 23 Jul 2005 12:23:15 +0200 + diff --git a/citadel/debian/citadel-client.examples b/citadel/debian/citadel-client.examples new file mode 100644 index 000000000..4a989af2a --- /dev/null +++ b/citadel/debian/citadel-client.examples @@ -0,0 +1 @@ +debian/tmp/etc/citadel/citadel.rc \ No newline at end of file diff --git a/citadel/debian/citadel-client.install b/citadel/debian/citadel-client.install new file mode 100644 index 000000000..3f8042ed9 --- /dev/null +++ b/citadel/debian/citadel-client.install @@ -0,0 +1,3 @@ +debian/tmp/usr/bin/citadel +debian/tmp/usr/bin/whobbs +debian/tmp/usr/bin/stress \ No newline at end of file diff --git a/citadel/debian/citadel-client.postinst b/citadel/debian/citadel-client.postinst new file mode 100644 index 000000000..091dc3a75 --- /dev/null +++ b/citadel/debian/citadel-client.postinst @@ -0,0 +1,111 @@ +#! /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" = ""; 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 diff --git a/citadel/debian/citadel-client.substvars b/citadel/debian/citadel-client.substvars new file mode 100644 index 000000000..ee9fce249 --- /dev/null +++ b/citadel/debian/citadel-client.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libssl0.9.7 diff --git a/citadel/debian/citadel-doc.docs b/citadel/debian/citadel-doc.docs new file mode 100644 index 000000000..810e76cc7 --- /dev/null +++ b/citadel/debian/citadel-doc.docs @@ -0,0 +1,3 @@ +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 diff --git a/citadel/debian/citadel-doc.install b/citadel/debian/citadel-doc.install new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/citadel/debian/citadel-doc.install @@ -0,0 +1 @@ + diff --git a/citadel/debian/citadel-mta.install b/citadel/debian/citadel-mta.install new file mode 100644 index 000000000..a445beb5c --- /dev/null +++ b/citadel/debian/citadel-mta.install @@ -0,0 +1 @@ +debian/tmp/usr/sbin/sendmail \ No newline at end of file diff --git a/citadel/debian/citadel-mta.postinst b/citadel/debian/citadel-mta.postinst new file mode 100644 index 000000000..076d3df76 --- /dev/null +++ b/citadel/debian/citadel-mta.postinst @@ -0,0 +1,112 @@ +#! /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" = ""; 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 diff --git a/citadel/debian/citadel-mta.postrm b/citadel/debian/citadel-mta.postrm new file mode 100644 index 000000000..502e6cbde --- /dev/null +++ b/citadel/debian/citadel-mta.postrm @@ -0,0 +1,97 @@ +#! /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 diff --git a/citadel/debian/citadel-mta.substvars b/citadel/debian/citadel-mta.substvars new file mode 100644 index 000000000..ee9fce249 --- /dev/null +++ b/citadel/debian/citadel-mta.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libssl0.9.7 diff --git a/citadel/debian/citadel-server.1.manpage b/citadel/debian/citadel-server.1.manpage new file mode 100644 index 000000000..d81daf515 --- /dev/null +++ b/citadel/debian/citadel-server.1.manpage @@ -0,0 +1,68 @@ +.\" 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 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\fP and +.\" \fI\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 . +.PP +This manual page was written by Wilfried Goesgens +for the Debian project (but may be used by others). diff --git a/citadel/debian/citadel-server.config b/citadel/debian/citadel-server.config new file mode 100755 index 000000000..21049ce90 --- /dev/null +++ b/citadel/debian/citadel-server.config @@ -0,0 +1,15 @@ +#!/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 diff --git a/citadel/debian/citadel-server.dirs b/citadel/debian/citadel-server.dirs new file mode 100644 index 000000000..d83602ab9 --- /dev/null +++ b/citadel/debian/citadel-server.dirs @@ -0,0 +1,18 @@ +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 diff --git a/citadel/debian/citadel-server.examples b/citadel/debian/citadel-server.examples new file mode 100644 index 000000000..90e8d4141 --- /dev/null +++ b/citadel/debian/citadel-server.examples @@ -0,0 +1,7 @@ +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 diff --git a/citadel/debian/citadel-server.install b/citadel/debian/citadel-server.install new file mode 100644 index 000000000..ae5ddc3fc --- /dev/null +++ b/citadel/debian/citadel-server.install @@ -0,0 +1,9 @@ +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 diff --git a/citadel/debian/citadel-server.postinst b/citadel/debian/citadel-server.postinst new file mode 100644 index 000000000..b1884cf98 --- /dev/null +++ b/citadel/debian/citadel-server.postinst @@ -0,0 +1,219 @@ +#! /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" = ""; 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 diff --git a/citadel/debian/citadel-server.postrm b/citadel/debian/citadel-server.postrm new file mode 100644 index 000000000..661c9127a --- /dev/null +++ b/citadel/debian/citadel-server.postrm @@ -0,0 +1,117 @@ +#! /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 diff --git a/citadel/debian/citadel-server.postrm.debhelper b/citadel/debian/citadel-server.postrm.debhelper new file mode 100644 index 000000000..bc035b98c --- /dev/null +++ b/citadel/debian/citadel-server.postrm.debhelper @@ -0,0 +1,6 @@ +# 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 diff --git a/citadel/debian/citadel-server.substvars b/citadel/debian/citadel-server.substvars new file mode 100644 index 000000000..037de70f0 --- /dev/null +++ b/citadel/debian/citadel-server.substvars @@ -0,0 +1,2 @@ +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) diff --git a/citadel/debian/citadel-server.templates b/citadel/debian/citadel-server.templates new file mode 100644 index 000000000..741882876 --- /dev/null +++ b/citadel/debian/citadel-server.templates @@ -0,0 +1,27 @@ +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 diff --git a/citadel/debian/citadel.substvars b/citadel/debian/citadel.substvars new file mode 100644 index 000000000..dba304bea --- /dev/null +++ b/citadel/debian/citadel.substvars @@ -0,0 +1 @@ +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) diff --git a/citadel/debian/compat b/citadel/debian/compat new file mode 100644 index 000000000..b8626c4cf --- /dev/null +++ b/citadel/debian/compat @@ -0,0 +1 @@ +4 diff --git a/citadel/debian/control b/citadel/debian/control new file mode 100644 index 000000000..850d6460e --- /dev/null +++ b/citadel/debian/control @@ -0,0 +1,52 @@ +Source: citadel +Section: mail +Priority: optional +Maintainer: Wilfried Goesgens +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. diff --git a/citadel/debian/copyright b/citadel/debian/copyright new file mode 100644 index 000000000..fe9412f61 --- /dev/null +++ b/citadel/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Wilfried Goesgens 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 diff --git a/citadel/debian/dirs b/citadel/debian/dirs new file mode 100644 index 000000000..ca882bbb7 --- /dev/null +++ b/citadel/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/citadel/debian/docs b/citadel/debian/docs new file mode 100644 index 000000000..fa6b147a7 --- /dev/null +++ b/citadel/debian/docs @@ -0,0 +1,2 @@ +README.txt +README.txt diff --git a/citadel/debian/files b/citadel/debian/files new file mode 100644 index 000000000..4e57879e0 --- /dev/null +++ b/citadel/debian/files @@ -0,0 +1,4 @@ +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 diff --git a/citadel/debian/rules b/citadel/debian/rules new file mode 100755 index 000000000..a1826e715 --- /dev/null +++ b/citadel/debian/rules @@ -0,0 +1,149 @@ +#!/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 -- 2.30.2