File: netcat-openbsd.postinst

package info (click to toggle)
netcat-openbsd 1.217-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,336 kB
  • sloc: ansic: 29,578; sh: 431; makefile: 71
file content (15 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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#