diff options
Diffstat (limited to 'network/netcat-openbsd/netcat-openbsd.SlackBuild')
-rw-r--r-- | network/netcat-openbsd/netcat-openbsd.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/network/netcat-openbsd/netcat-openbsd.SlackBuild b/network/netcat-openbsd/netcat-openbsd.SlackBuild index 64cea9e1c7d27..8e24f6d21473e 100644 --- a/network/netcat-openbsd/netcat-openbsd.SlackBuild +++ b/network/netcat-openbsd/netcat-openbsd.SlackBuild @@ -23,11 +23,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=netcat-openbsd -VERSION=${VERSION:-1.89} +VERSION=${VERSION:-1.105} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -DEBVER=4 +DEBVER=7 if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -56,6 +56,12 @@ else LIBDIRSUFFIX="" fi +# Exit if netcat is in the system +if [ -x /usr/bin/nc ]; then + echo " You must remove nc before installing this!" + exit 1 +fi + set -e rm -rf $PKG @@ -64,17 +70,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM\_$VERSION.orig.tar.gz -zcat $CWD/$PRGNAM\_$VERSION-$DEBVER.diff.gz > ./$PRGNAM-$VERSION-$DEBVER.diff -cd $PRGNAM-$VERSION.orig - -# Apply Debian patches -patch -p1 < ../$PRGNAM-$VERSION-$DEBVER.diff -for i in $(cat debian/patches/series) -do - echo "** patch $i" 1>&2 - cat "debian/patches/$i" -done | patch -p1 - +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -82,10 +78,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Apply Debian patches +for i in $CWD/patches/* ; do patch -p1 < $i ; done + make CFLAGS="$SLKCFLAGS -DDEBIAN_VERSION=\"\\\"$DEBVER\\\"\"" mkdir -p $PKG/usr/bin/ $PKG/usr/man/man1/ install -s -m 0755 nc $PKG/usr/bin/nc.openbsd +ln -s /usr/bin/nc.openbsd $PKG/usr/bin/nc gzip -9c nc.1 > $PKG/usr/man/man1/nc.openbsd.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |