aboutsummaryrefslogtreecommitdiff
path: root/network/allmydata-tahoe/allmydata-tahoe.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/allmydata-tahoe/allmydata-tahoe.SlackBuild')
-rw-r--r--network/allmydata-tahoe/allmydata-tahoe.SlackBuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/network/allmydata-tahoe/allmydata-tahoe.SlackBuild b/network/allmydata-tahoe/allmydata-tahoe.SlackBuild
index eaffe1d191eaf..20828091b0395 100644
--- a/network/allmydata-tahoe/allmydata-tahoe.SlackBuild
+++ b/network/allmydata-tahoe/allmydata-tahoe.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for allmydata-tahoe.
# Copyright 2009 Marco Bonetti <sid77@slackware.it>
+# Copyright 2011,2012 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,18 +22,21 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# Originally written by Marco Bonetti - Thanks!
+# Now maintained by Markus Reichelt <slackbuilds@mareichelt.de>, 0xCCEEF115
+# 2011 Nov 01 - adapted to Tahoe-LAFS 1.9.0
+# 2012 Jan 12 - adapted to Tahoe-LAFS 1.9.1
PRGNAM=allmydata-tahoe
-VERSION=${VERSION:-1.6.1}
+VERSION=${VERSION:-1.9.1}
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
@@ -42,14 +46,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="COPYING.GPL COPYING.TGPPL.html README docs"
-
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
@@ -67,19 +75,21 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python setup.py build || exit 1
-python setup.py install --root=$PKG || exit 1
+python setup.py install --root=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 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-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-# ship the introducer furl to join the public test grid
-cat $CWD/introducer.furl > $PKG/usr/doc/$PRGNAM-$VERSION/introducer.furl
-cat $CWD/slack-desc > $PKG/usr/doc/$PRGNAM-$VERSION/slack-desc
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man/man1
+cp -a \
+ COPYING.* README.txt docs \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/doc/$PRGNAM-$VERSION/docs/man/tahoe.1 $PKG/usr/man/man1
+gzip -9 $PKG/usr/man/man1/tahoe.1
+rmdir $PKG/usr/doc/$PRGNAM-$VERSION/docs/man/
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc