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

« back to all changes in this revision

Viewing changes to debian/snmp.preinst

  • 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
 
1
#!/bin/sh
2
2
 
3
3
set -e
4
4
 
5
 
action="$1"
6
 
 
7
 
killall -u snmp  2>/dev/null || true
8
 
 
9
 
if [ "$action" = upgrade ]
10
 
then
 
5
case "$1" in
 
6
 
 
7
install|upgrade)
11
8
  if [ -L /usr/share/doc/snmp ]; then
12
9
    rm -f /usr/share/doc/snmp
13
10
  fi
14
11
  if [ -d /usr/doc/snmp ]; then
15
12
    rm -rf /usr/doc/snmp
16
13
  fi
17
 
fi
 
14
 
 
15
  killall -u snmp 2>/dev/null || true
 
16
 
 
17
  ;;
 
18
abort-upgrade)
 
19
  ;;
 
20
 
 
21
*)
 
22
  echo "preinst called with unknown argument \`$1'" >&2
 
23
  exit 1
 
24
  ;;
 
25
 
 
26
esac
18
27
 
19
28
#DEBHELPER#
20
29