~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to debian/snmp.postinst

  • Committer: Package Import Robot
  • Author(s): Yolanda Robla
  • Date: 2013-07-12 09:47:12 UTC
  • mfrom: (1.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20130712094712-enbep07tqzvp70vs
Tags: 5.7.2~dfsg-8ubuntu1
* Merge from Debian unstable (LP: #1200516).  Remaining changes:
  + Add apport hook (LP: #533603):
    - debian/source.apport: apport hook
    - debian/control: Build-depends on dh-apport.
    - debian/rules:
      + Add --with apport.
      + override_dh_apport to install hook on snmpd package only.
* Call dh_installinit correctly to avoid installing links in rc[06].d

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# postinst script for snmp
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
case "$1" in
 
9
    configure)
 
10
 
 
11
        DOCDIR=/usr/share/doc/snmp
 
12
        DOCLINK=libsnmp30
 
13
 
 
14
        if [ -d $DOCDIR ] && [ ! -L $DOCDIR ]; then
 
15
                rmdir $DOCDIR
 
16
                ln -s $DOCLINK $DOCDIR
 
17
        fi
 
18
    ;;
 
19
 
 
20
    abort-upgrade|abort-remove|abort-deconfigure)
 
21
    ;;
 
22
 
 
23
    *)
 
24
        echo "postinst called with unknown argument \`$1'" >&2
 
25
        exit 1
 
26
    ;;
 
27
esac
 
28
 
 
29
# dh_installdeb will replace this with shell code automatically
 
30
# generated by other debhelper scripts.
 
31
 
 
32
#DEBHELPER#
 
33
 
 
34
exit 0