mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/btpd: Updated for version 0.16.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
bedc566be6
commit
41e15e8ddc
3 changed files with 41 additions and 30 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for btpd
|
# 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.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,16 +23,14 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=btpd
|
PRGNAM=btpd
|
||||||
VERSION=${VERSION:-0.15}
|
VERSION=${VERSION:-0.16}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -44,18 +42,26 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
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
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP || exit 1
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION || exit 1
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
@ -64,25 +70,30 @@ find . \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--mandir=/usr/man \
|
||||||
--localstatedir=/var \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|| exit 1
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make || exit 1
|
make
|
||||||
make install DESTDIR=$PKG || exit 1
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| 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
|
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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $TMP/$PRGNAM-$VERSION
|
|
||||||
cp -a CHANGES COPYRIGHT README $PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="btpd"
|
PRGNAM="btpd"
|
||||||
VERSION="0.15"
|
VERSION="0.16"
|
||||||
HOMEPAGE="http://www.murmeldjur.se/btpd/"
|
HOMEPAGE="http://github.com/btpd/btpd"
|
||||||
DOWNLOAD="http://www.murmeldjur.se/btpd/btpd-0.15.tar.gz"
|
DOWNLOAD="http://github.com/downloads/btpd/btpd/btpd-0.16.tar.gz"
|
||||||
MD5SUM="b64e2e8b9936e99685bc1e7246655561"
|
MD5SUM="fe042aae8d7c515ecd855673d1c2b33e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="nmoura"
|
MAINTAINER="Nilton Moura"
|
||||||
EMAIL="moura.nilton@gmail.com"
|
EMAIL="nmoura@nmoura.eti.br"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
# 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------------------------------------------------------|
|
||||||
btpd: btpd (BitTorrent Protocol Daemon)
|
btpd: btpd (The BitTorrent Protocol Daemon)
|
||||||
btpd:
|
btpd:
|
||||||
btpd: Btpd is a utility for sharing files over the BitTorrent network
|
btpd: Btpd is a utility for sharing files over the BitTorrent network
|
||||||
btpd: protocol. It runs in daemon mode, thus needing no controlling
|
btpd: protocol. It runs in daemon mode, thus needing no controlling
|
||||||
btpd: terminal or gui. Instead, the daemon is controlled by the btcli
|
btpd: terminal or gui. Instead, the daemon is controlled by btcli, its
|
||||||
btpd: command line utility, or other programs capable of sending commands
|
btpd: command line utility, or other programs capable of sending commands
|
||||||
btpd: and queries on the btpd control socket.
|
btpd: and queries on the control socket.
|
||||||
btpd: The goal is to provide a healthy alternative to the still prevailing
|
btpd:
|
||||||
btpd: ftp/http servers for file distribution sites and a good BitTorrent
|
btpd: Homepage: http://github.com/btpd/btpd
|
||||||
btpd: client for the casual user.
|
btpd:
|
||||||
btpd: Homepage: http://www.murmeldjur.se/btpd/
|
btpd:
|
||||||
|
|
Loading…
Reference in a new issue