summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Psaltis <ampsaltis@gmail.com>2010-05-11 22:25:31 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:25:31 +0200
commit05cc16dfae28686c0627956fe3024245cd1b601a (patch)
tree92ff4313911d6461dc6e0ad41551dbce0668aba9
parentf765e0fddea2b4b1b676a3a744c172764d5dabaf (diff)
downloadslackbuilds-05cc16dfae28686c0627956fe3024245cd1b601a.tar.gz
network/libnl: Updated for version 1.1
-rw-r--r--network/libnl/libnl.SlackBuild29
-rw-r--r--network/libnl/libnl.info6
2 files changed, 18 insertions, 17 deletions
diff --git a/network/libnl/libnl.SlackBuild b/network/libnl/libnl.SlackBuild
index 53fb3160f2..3b8e4c5992 100644
--- a/network/libnl/libnl.SlackBuild
+++ b/network/libnl/libnl.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware build script for libnl
-# Written by Andrew Psaltis (ampsaltis@gmail.com)
# Copyright 2007 Andrew Psaltis, Vienna, VA, USA
# All rights reserved.
@@ -22,14 +21,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -e
+# Modified by Roberto Neri <rneri@libero.it> to
+# - upgrade to version 1.1 and related script cleanup
PRGNAM=libnl
-VERSION=1.0-pre6
-PKG_VERSION=$(echo $VERSION | tr - _)
+VERSION=1.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -43,11 +43,13 @@ elif [ "$ARCH" = "x86_64" ]; then # For BlueWhite64
SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRC_VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -58,22 +60,21 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --with-gnu-ld
+ --with-gnu-ld \
+ --build=$ARCH-slackware-linux
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 $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERSION
-cp -a COPYING $PKG/usr/doc/$PRGNAM-$PKG_VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKG_VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/libnl/libnl.info b/network/libnl/libnl.info
index a8ef1278ac..dad9aff71f 100644
--- a/network/libnl/libnl.info
+++ b/network/libnl/libnl.info
@@ -1,8 +1,8 @@
PRGNAM="libnl"
-VERSION="1.0-pre6"
+VERSION="1.1"
HOMEPAGE="http://people.suug.ch/~tgr/libnl/"
-DOWNLOAD="http://people.suug.ch/~tgr/libnl/files/libnl-1.0-pre6.tar.gz"
-MD5SUM="0f57cb7085dc27e054691bff858613c9"
+DOWNLOAD="http://people.suug.ch/~tgr/libnl/files/libnl-1.1.tar.gz"
+MD5SUM="ae970ccd9144e132b68664f98e7ceeb1"
MAINTAINER="Andrew Psaltis"
EMAIL="ampsaltis@gmail.com"
APPROVED="rworkman"