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>
This commit is contained in:
dsomero 2010-09-11 02:46:07 -04:00
parent 11d1d4b150
commit b671628051
3 changed files with 19 additions and 2 deletions

View file

@ -7,3 +7,6 @@ very useful when you are trying to pick an unused IP for a net to which
you don't yet have routing. you don't yet have routing.
This requires libnet. This requires libnet.
Note: The installed files are called arping2 to avoid conflicts with
Slackware's arping.

View file

@ -24,7 +24,7 @@
PRGNAM=arping PRGNAM=arping
VERSION=${VERSION:-2.09} VERSION=${VERSION:-2.09}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then 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 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -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" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--program-suffix=2 \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
@ -90,6 +103,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \ cp -a \
INSTALL LICENSE README \ INSTALL LICENSE README \
$PKG/usr/doc/$PRGNAM-$VERSION $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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Nilton Moura" MAINTAINER="Nilton Moura"
EMAIL="nmoura@nmoura.eti.br" EMAIL="nmoura@nmoura.eti.br"
APPROVED="rworkman" APPROVED="dsomero"