network/wol: Updated for version 0.7.1

This commit is contained in:
Brian Muramatsu 2010-05-13 00:38:45 +02:00 committed by Robby Workman
parent 869d3d74a9
commit dce53a7c88
2 changed files with 14 additions and 6 deletions

View file

@ -16,11 +16,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -41,6 +44,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@ -50,8 +54,10 @@ make
make install DESTDIR=$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 "shared object" | 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
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man || exit 1
@ -72,4 +78,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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="wol"
VERSION="0.7.1"
HOMEPAGE="http://sourceforge.net/projects/wake-on-lan/"
DOWNLOAD="http://downloads.sourceforge.net/wake-on-lan/wol-0.7.1.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="c2fa9d7e771134ac8c89d56b8197d4ca"
MD5SUM_x86_64=""
MAINTAINER="Brian Muramatsu"
EMAIL="btmura@gmail.com"
APPROVED="rworkman"