~ubuntu-branches/ubuntu/trusty/ettercap/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/ettercap-graphical.postinst

  • Committer: Package Import Robot
  • Author(s): Barak A. Pearlmutter
  • Date: 2012-11-17 01:07:34 UTC
  • Revision ID: package-import@ubuntu.com-20121117010734-7kmx0buvkk92gpz4
Tags: 1:0.7.5-5
* add version dependency for curl library, per upstream reqs
* postinst code swizzles doc dirs to symlinks (closes: #693487)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
# Replace documentation directory with symlink
 
6
docdir="/usr/share/doc/ettercap-graphical"
 
7
if [ -d ${docdir} -a ! -L $docdir ]; then
 
8
    if rmdir ${docdir} 2>/dev/null; then
 
9
        ln -sf /usr/share/doc/ettercap-common ${docdir}
 
10
    fi
 
11
fi
 
12
 
 
13
case "$1" in
 
14
    configure)
 
15
        ;;
 
16
esac
 
17
 
 
18
#DEBHELPER#