File: postinst

package info (click to toggle)
jazip 0.34-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 536 kB
  • ctags: 208
  • sloc: ansic: 2,632; perl: 343; makefile: 90; sh: 32
file content (47 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
#
# postinst script for the jazip package

set -e

case "$1" in
    configure)

        # De-installation in prerm is created by dh_installdocs
#	if [ -d /usr/doc -a ! -e /usr/doc/jazip -a -d /usr/share/doc/jazip ]; then
#		ln -sf ../share/doc/jazip /usr/doc/jazip
#	fi

#       if ! grep -q \^jazip: /etc/group; then
#           adduser --group jazip 
#       fi

# This block commented-out at version 0.33-3
#        if [ -x /usr/sbin/suidregister ]; then
#           suidregister -s jazip /usr/bin/jazip root floppy 4754
#        else       
#            chown root.floppy /usr/bin/jazip
#            chmod 4754 /usr/bin/jazip
#        fi

#        if [ -x /usr/bin/update-menus ] ; then update-menus ; fi

        if [ ! -f /etc/jazip.conf ]; then 
            jazipconfig --non-interactive

            . /usr/share/debconf/confmodule
#           echo "*** Important notice for package jazip ***"
#           echo "Users must be added to the 'floppy' group to allow access"
#           echo "to the jazip program."
#           echo "See /usr/doc/jazip/README.Debian and adduser(1)."
        fi
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        ;;
esac

#DEBHELPER#