File: netcat-openbsd.postinst

package info (click to toggle)
netcat-openbsd 1.229-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,560 kB
  • sloc: ansic: 31,646; sh: 678; makefile: 68
file content (16 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    update-alternatives \
        --install /bin/nc nc /bin/nc.openbsd 50 \
        --slave /bin/netcat netcat /bin/nc.openbsd \
        --slave /usr/share/man/man1/nc.1.gz nc.1.gz \
                /usr/share/man/man1/nc_openbsd.1.gz \
        --slave /usr/share/man/man1/netcat.1.gz netcat.1.gz \
                /usr/share/man/man1/nc_openbsd.1.gz
fi

#DEBHELPER#
exit 0