network/macchanger: Updated for version 1.5.0

This commit is contained in:
Kevin Myers 2010-05-13 00:37:06 +02:00 committed by Robby Workman
parent c4770a30f0
commit 714cae15e0
3 changed files with 15 additions and 4 deletions

View file

@ -13,6 +13,7 @@ VERSION=1.5.0
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -22,8 +23,13 @@ DOCS="AUTHORS COPYING INSTALL NEWS README ChangeLog"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
rm -rf $PKG rm -rf $PKG
@ -38,14 +44,17 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--build=$ARCH-slackware-linux \
|| exit 1 || exit 1
make || exit 1 make || exit 1
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG || exit 1
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
( cd $PKG/usr/man ( cd $PKG/usr/man
@ -64,4 +73,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="macchanger"
VERSION="1.5.0" VERSION="1.5.0"
HOMEPAGE="http://www.alobbs.com/macchanger" HOMEPAGE="http://www.alobbs.com/macchanger"
DOWNLOAD="ftp://ftp.gnu.org/gnu/macchanger/macchanger-1.5.0.tar.gz" DOWNLOAD="ftp://ftp.gnu.org/gnu/macchanger/macchanger-1.5.0.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="79b7cdaeca3d8ebafa764c4b0dd03ab7" MD5SUM="79b7cdaeca3d8ebafa764c4b0dd03ab7"
MD5SUM_x86_64=""
MAINTAINER="Kevin Myers" MAINTAINER="Kevin Myers"
EMAIL="jwblack@cox.net" EMAIL="jwblack@cox.net"
APPROVED="rworkman" APPROVED="rworkman"

View file

@ -5,13 +5,13 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
macchanger: macchanger (utility for viewing/manipulating the MAC address) macchanger: macchanger (utility for viewing/manipulating the MAC address)
macchanger: macchanger:
macchanger: This is a GNU/Linux Utility for viewing/manipulating the MAC macchanger: This is a GNU/Linux Utility for viewing/manipulating the MAC
macchanger: address of network interfaces. macchanger: address of network interfaces.
macchanger: macchanger:
macchanger: http://www.alobbs.org/macchanger macchanger: Homepage: http://www.alobbs.org/macchanger
macchanger: macchanger:
macchanger: macchanger:
macchanger: macchanger: