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

« back to all changes in this revision

Viewing changes to debian/libsnmp-perl.postinst

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2012-12-04 16:57:00 UTC
  • mfrom: (1.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20121204165700-8yx4aai3ddjhpt37
Tags: 5.4.3~dfsg-2.7ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/rules: Don't stop service in runlevels 0 and 6.
  - debian/snmpd.init: LSBify the init script.
  - debian/snmp.preinst, debian/snmp.prerm: Kill any/all processes owned
    by snmp user before install/uninstall.
  - Add apport hook.
  - debian/patches/ubuntu-fix-lp-587828.patch: Fix row creation for 64bit
    arches
  - debian/{control,rules}: Use dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
# Replace documentation directory with symlink
 
5
docdir="/usr/share/doc/libsnmp-perl"
 
6
if [ -d $docdir ] && [ ! -L $docdir ]; then
 
7
    if rmdir $docdir 2>/dev/null; then
 
8
        ln -sf libsnmp15 $docdir
 
9
    fi
 
10
fi
 
11
 
 
12
#DEBHELPER#
 
13
 
 
14
exit 0