summaryrefslogtreecommitdiff
path: root/network/netcat
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-11-15 00:38:51 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-14 14:32:31 -0600
commitb02803348ab18afd4537b189fc0e77d28de4cf50 (patch)
treecdc5c829ac9855306074475419e8338ca8ca5667 /network/netcat
parenta2530dc90cf55a8e87fb438b1e83e97efc6dffcd (diff)
downloadslackbuilds-b02803348ab18afd4537b189fc0e77d28de4cf50.tar.gz
network/netcat: New Maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/netcat')
-rw-r--r--network/netcat/netcat.SlackBuild13
-rw-r--r--network/netcat/netcat.info4
2 files changed, 9 insertions, 8 deletions
diff --git a/network/netcat/netcat.SlackBuild b/network/netcat/netcat.SlackBuild
index 97903058e1..8ea43e0fa4 100644
--- a/network/netcat/netcat.SlackBuild
+++ b/network/netcat/netcat.SlackBuild
@@ -3,6 +3,7 @@
# SlackBuild script for netcat.
#
# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
+# Copyright 2013 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +24,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=netcat
-VERSION=0.7.1
+VERSION=${VERSION:-0.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -65,7 +64,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -80,13 +83,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-# Remove the symlink to nc as it conflicts with Slackware's nc package
( cd $PKG/usr/bin ; rm -f nc )
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Compress man pages
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do
diff --git a/network/netcat/netcat.info b/network/netcat/netcat.info
index 89d7c41de5..1d79386a0d 100644
--- a/network/netcat/netcat.info
+++ b/network/netcat/netcat.info
@@ -6,5 +6,5 @@ MD5SUM="088def25efe04dcdd1f8369d8926ab34"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Pierre Cazenave"
-EMAIL="pwcazenave <at> gmail {dot} com"
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@slackbuilds.org"