summaryrefslogtreecommitdiff
path: root/network/arping/arping.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2010-09-11 02:46:07 -0400
committerdsomero <xgizzmo@slackbuilds.org>2010-09-11 02:46:07 -0400
commitb671628051f2a58a339b8cb6a7accdd5e28ee633 (patch)
tree3ffd43bf958cc27e24483e8ffebf137a16c2198f /network/arping/arping.SlackBuild
parent11d1d4b150c5638bdf223158d59ce3f12986be93 (diff)
downloadslackbuilds-b671628051f2a58a339b8cb6a7accdd5e28ee633.tar.gz
network/arping: Renamed the installed files to avoid conflicts.
Renamed the installed files and fixed manpages to avoid a conflict with Slackware's arping also install the scan example script. Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/arping/arping.SlackBuild')
-rw-r--r--network/arping/arping.SlackBuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/network/arping/arping.SlackBuild b/network/arping/arping.SlackBuild
index 02e9c0e9cd..1021d6dda4 100644
--- a/network/arping/arping.SlackBuild
+++ b/network/arping/arping.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=arping
VERSION=${VERSION:-2.09}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,12 +69,25 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# We are renameing the installed files arping2 to aviod conflicts with
+# Slackware's iputils arping so lets fix the manpages and scan script.
+sed \
+ -e "s|\(arping\)|\12|g" \
+ -e "s|\(arping\)\(\W\)|\12\2|g" \
+ -e "s|arping2-|arping-|g" \
+ -e "s|(arping2 2.*\.x only)||g" \
+ -i doc/arping.8
+sed \
+ -e "s|\(arping\) |\12 |g" \
+ -i extra/arping-scan-net.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --program-suffix=2 \
--build=$ARCH-slackware-linux
make
@@ -90,6 +103,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
INSTALL LICENSE README \
$PKG/usr/doc/$PRGNAM-$VERSION
+install -m644 extra/arping-scan-net.sh $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install