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

« back to all changes in this revision

Viewing changes to debian/postinst

  • 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
 
# postinst 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
 
#        * <postinst> `configure' <most-recently-configured-version>
10
 
#        * <old-postinst> `abort-upgrade' <new version>
11
 
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12
 
#          <new-version>
13
 
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
14
 
#          <failed-install-package> <version> `removing'
15
 
#          <conflicting-package> <version>
16
 
# for details, see /usr/share/doc/packaging-manual/
17
 
#
18
 
# quoting from the policy:
19
 
#     Any necessary prompting should almost always be confined to the
20
 
#     post-installation script, and should be protected with a conditional
21
 
#     so that unnecessary prompting doesn't happen if a package's
22
 
#     installation fails and the `postinst' is called with `abort-upgrade',
23
 
#     `abort-remove' or `abort-deconfigure'.
24
 
 
25
 
case "$1" in
26
 
    configure)
27
 
    update-inetd --add 'skkserv\t\tstream\ttcp\tnowait\tnobody\t/usr/sbin/tcpd\t/usr/sbin/skksearch -c /etc/skksearch.conf'
28
 
 
29
 
    ;;
30
 
 
31
 
    abort-upgrade|abort-remove|abort-deconfigure)
32
 
 
33
 
    ;;
34
 
 
35
 
    *)
36
 
        echo "postinst called with unknown argument \`$1'" >&2
37
 
        exit 0
38
 
    ;;
39
 
esac
40
 
 
41
 
# dh_installdeb will replace this with shell code automatically
42
 
# generated by other debhelper scripts.
 
4
if [ "$1" = configure ]; then
 
5
    if which update-inetd >/dev/null 2>&1; then
 
6
        update-inetd --add 'skkserv\t\tstream\ttcp\tnowait\tnobody\t/usr/sbin/tcpd\t/usr/sbin/skksearch -c /etc/skksearch.conf'
 
7
    fi
 
8
fi
43
9
 
44
10
#DEBHELPER#
45
 
 
46
 
exit 0
47
 
 
48