~ubuntu-branches/ubuntu/trusty/skksearch/trusty

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2006-10-27 21:26:57 UTC
  • mfrom: (3.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20061027212657-0xu9qrgljl08hgy5
Tags: 0.0-12
* debian/skksearch.conf: Add entry for SKK-JISYO.china_taiwan.
* debian/copyright: Mention Debian packaging conditions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# postrm script for skksearch
3
 
#
4
 
# see: dh_installdeb(1)
5
 
 
 
1
#!/bin/sh
6
2
set -e
7
3
 
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' <r>overwrit>r> <new-version>
17
 
# for details, see /usr/share/doc/packaging-manual/
18
 
 
19
 
case "$1" in
20
 
       purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
21
 
 
22
 
       update-inetd --remove 'skkserv\t\tstream\ttcp\tnowait\tnobody\t/usr/sbin/tcpd\t/usr/sbin/skksearch -c /etc/skksearch.conf'
23
 
 
24
 
        ;;
25
 
 
26
 
    *)
27
 
        echo "postrm called with unknown argument \`$1'" >&2
28
 
        exit 0
29
 
 
30
 
esac
31
 
 
32
 
# dh_installdeb will replace this with shell code automatically
33
 
# generated by other debhelper scripts.
 
4
if [ "$1" = "remove" ]; then
 
5
    if which update-inetd >/dev/null 2>&1; then
 
6
        update-inetd --remove 'skkserv\t\tstream\ttcp\tnowait\tnobody\t/usr/sbin/tcpd\t/usr/sbin/skksearch -c /etc/skksearch.conf' || true
 
7
    fi
 
8
fi
 
9
if [ "$1" = "purge" ]; then
 
10
    if which update-inetd >/dev/null 2>&1; then
 
11
        update-inetd --multi --remove skkserv || true
 
12
    fi
 
13
fi
34
14
 
35
15
#DEBHELPER#
36
 
 
37