summaryrefslogtreecommitdiff
path: root/network/netcat-openbsd/netcat-openbsd.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-12-23 11:48:30 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-06 00:57:03 -0600
commitb49d0a636b226866bf9a19bbea02d9714bcaef2c (patch)
tree8c0aad35e0335b20dd49ae1a1b71689c35381045 /network/netcat-openbsd/netcat-openbsd.SlackBuild
parent36b9d2ef47a33d7cfb19879dca67f3250a4c2b4e (diff)
downloadslackbuilds-b49d0a636b226866bf9a19bbea02d9714bcaef2c.tar.gz
network/netcat-openbsd: Updated for version 1.105 (from Debian).
Apply the patches locally and added a note about this package being incompatible with nc from Slackware Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/netcat-openbsd/netcat-openbsd.SlackBuild')
-rw-r--r--network/netcat-openbsd/netcat-openbsd.SlackBuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/network/netcat-openbsd/netcat-openbsd.SlackBuild b/network/netcat-openbsd/netcat-openbsd.SlackBuild
index 64cea9e1c7..8e24f6d214 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