source: trunk/athena/bin/discuss/debian/debathena-discuss-server.postrm @ 22699

Revision 22699, 1.0 KB checked in by ghudson, 17 years ago (diff)
Snapshot the Debathena materials for Athena packages into "debian" subdirs of the relevant Athena sources, pulling from /mit/debathena/packages/athena. Some big caveats: - Six Debathena packages are excluded because the current Athena 10 project plan does not call for building them: config-console console, dotfiles, glue, olc, and xscreensaver. (dotfiles and glue will be replaced with new Debathena-specific packages.) - Debathena does not cover all Athena packages which are called for to be built; Debian directories for these packages will have to be created. - Some of the packages contain patches, managed by quilt. The plan is to review and apply (or otherwise address) these patches and eliminate them. - The debian/rules files for Debathena packages are designed for use with the result of the athena-tarball script (from /mit/debathena/packages/athena/bin which I don't currently plan to import), and will not work with the raw source directories. The plan here is to write a CDBS extension package containing rules to handle raw Athena source directories, and then modify the rules files appropriately.
Line 
1#!/bin/sh
2# postrm script for debathena-discuss-server
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9#        * <postrm> `remove'
10#        * <postrm> `purge'
11#        * <old-postrm> `upgrade' <new-version>
12#        * <new-postrm> `failed-upgrade' <old-version>
13#        * <new-postrm> `abort-install'
14#        * <new-postrm> `abort-install' <old-version>
15#        * <new-postrm> `abort-upgrade' <old-version>
16#        * <disappearer's-postrm> `disappear' <overwriter>
17#          <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21
22case "$1" in
23    purge)
24        if getent passwd discuss >/dev/null; then
25            deluser --system discuss || :
26        fi
27    ;;
28
29    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
30    ;;
31
32    *)
33        echo "postrm called with unknown argument \`$1'" >&2
34        exit 1
35    ;;
36esac
37
38# dh_installdeb will replace this with shell code automatically
39# generated by other debhelper scripts.
40
41#DEBHELPER#
42
43exit 0
44
45
Note: See TracBrowser for help on using the repository browser.