File: tcpd.postinst

package info (click to toggle)
tcp-wrappers 7.6.q-28
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,760 kB
  • sloc: ansic: 17,677; makefile: 1,868; sh: 53
file content (22 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

upgrade_quirks() {
  # replaced by a symlink long ago but dpkg fails to do it on upgrades
  if [ -d /usr/share/doc/tcpd -a \
      ! -L /usr/share/doc/tcpd ]; then
    rmdir /usr/share/doc/tcpd
    ln -s /usr/share/doc/libwrap0 /usr/share/doc/tcpd
  fi

  return 0
}

case "$1" in
    configure)
    upgrade_quirks "$@"
    ;;
esac

#DEBHELPER#

exit 0