aboutsummaryrefslogtreecommitdiff
path: root/network/btpd/btpd.SlackBuild
diff options
context:
space:
mode:
authorNilton Moura <nmoura@nmoura.eti.br>2010-08-26 21:21:27 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:13 -0500
commit41e15e8ddc870d0cf49e92243a3f5fe5a67dbfbb (patch)
treee2732d32d96fa25d3b43d2a217a6ed069d7bbef8 /network/btpd/btpd.SlackBuild
parentbedc566be68dd5bf3cb9a2c8e31f0e96fed83b37 (diff)
network/btpd: Updated for version 0.16.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/btpd/btpd.SlackBuild')
-rw-r--r--network/btpd/btpd.SlackBuild43
1 files changed, 27 insertions, 16 deletions
diff --git a/network/btpd/btpd.SlackBuild b/network/btpd/btpd.SlackBuild
index e04161b35a51..e78c64e21d49 100644
--- a/network/btpd/btpd.SlackBuild
+++ b/network/btpd/btpd.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for btpd
-# Copyright 2009 Nilton Moura a.k.a nmoura <moura.nilton@gmail.com>
+# Copyright 2008,2009,2010 Nilton Moura, Rio de Janeiro, RJ, Brasil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=btpd
-VERSION=${VERSION:-0.15}
+VERSION=${VERSION:-0.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,18 +42,26 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -64,25 +70,30 @@ find . \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
- ./configure \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
--prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- || exit 1
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYRIGHT README \
+ $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 $TMP/$PRGNAM-$VERSION
-cp -a CHANGES COPYRIGHT README $PKG/usr/doc/$PRGNAM-$VERSION
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}