aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/transmission/Makefile.patch30
-rw-r--r--network/transmission/README5
-rw-r--r--network/transmission/slack-desc11
-rw-r--r--network/transmission/transmission.SlackBuild66
-rw-r--r--network/transmission/transmission.info8
5 files changed, 120 insertions, 0 deletions
diff --git a/network/transmission/Makefile.patch b/network/transmission/Makefile.patch
new file mode 100644
index 000000000000..5f56ecec7f90
--- /dev/null
+++ b/network/transmission/Makefile.patch
@@ -0,0 +1,30 @@
+diff -urN Transmission-0.6.1/mk/common.mk Transmission-0.6.1-patched/mk/common.mk
+--- Transmission-0.6.1/mk/common.mk 2006-06-26 00:34:31.000000000 +0300
++++ Transmission-0.6.1-patched/mk/common.mk 2007-03-30 16:00:50.000000000 +0300
+@@ -62,20 +62,20 @@
+
+ define INSTALL_BIN_RULE
+ @echo "Install $<"
+- @$(MKDIR) $(PREFIX)/bin
+- @$(CP) $< $(PREFIX)/bin/
++ @$(MKDIR) $(DESTDIR)$(PREFIX)/bin
++ @$(CP) $< $(DESTDIR)$(PREFIX)/bin/
+ endef
+
+ define INSTALL_LOCALE_RULE
+ @echo "Install $<"
+- @$(MKDIR) $(LOCALEDIR)/$*/LC_MESSAGES
+- @$(CP) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
++ @$(MKDIR) $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES
++ @$(CP) $< $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
+ endef
+
+ define INSTALL_MAN_RULE
+ @echo "Install $<"
+- @$(MKDIR) $(PREFIX)/man/man1
+- @$(CP) $< $(PREFIX)/man/man1/
++ @$(MKDIR) $(DESTDIR)$(PREFIX)/man/man1
++ @$(CP) $< $(DESTDIR)$(PREFIX)/man/man1/
+ endef
+
+ RM = rm -Rf
diff --git a/network/transmission/README b/network/transmission/README
new file mode 100644
index 000000000000..bcbaed7f32ca
--- /dev/null
+++ b/network/transmission/README
@@ -0,0 +1,5 @@
+Transmission is a lightweight BitTorrent client. It features a simple,
+intuitive interface on top on an efficient, cross-platform back-end.
+Transmission runs on Mac OS X with a Cocoa interface,
+Linux/NetBSD/FreeBSD/OpenBSD with a GTK+ interface, and BeOS with a native
+interface.
diff --git a/network/transmission/slack-desc b/network/transmission/slack-desc
new file mode 100644
index 000000000000..000ebee3f858
--- /dev/null
+++ b/network/transmission/slack-desc
@@ -0,0 +1,11 @@
+transmission: transmission (A lightweight BitTorrent client)
+transmission:
+transmission: Transmission is a lightweight BitTorrent client. It features a
+transmission: simple, intuitive interface on top on an efficient,
+transmission: cross-platform back-end. Transmission runs on Mac OS X with a
+transmission: Cocoa interface, Linux/NetBSD/FreeBSD/OpenBSD with a GTK+
+transmission: interface, and BeOS with a native interface.
+transmission:
+transmission: Homepage: http://transmission.m0k.org/
+transmission:
+transmission:
diff --git a/network/transmission/transmission.SlackBuild b/network/transmission/transmission.SlackBuild
new file mode 100644
index 000000000000..ca4d78cac47a
--- /dev/null
+++ b/network/transmission/transmission.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for transmission
+# Written by Vasilis Papavasileiou <el03020 at mail dot ntua dot gr>
+# Modified by the SlackBuilds.org project
+# (assumed to be in public domain per our submission policy)
+
+PRGNAM=transmission
+ORIG_PRGNAM=Transmission
+VERSION=0.6.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="AUTHORS LICENSE NEWS README"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $ORIG_PRGNAM-$VERSION
+tar -xzvf $CWD/$ORIG_PRGNAM-$VERSION.tar.gz || exit 1
+cd $ORIG_PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Patch mk/common.mk so that we can install cleanly (with DESTDIR)
+patch -p1 <$CWD/Makefile.patch
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( 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
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp $DOCS $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-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/transmission/transmission.info b/network/transmission/transmission.info
new file mode 100644
index 000000000000..5a755e4c5cf5
--- /dev/null
+++ b/network/transmission/transmission.info
@@ -0,0 +1,8 @@
+PRGNAM="transmission"
+VERSION="0.6.1"
+HOMEPAGE="http://transmission.m0k.org/"
+DOWNLOAD="http://download.m0k.org/transmission/files/Transmission-0.6.1.tar.gz"
+MD5SUM="1156a88c77ab71782b9261881ea13811"
+MAINTAINER="Vasilis Papavasileiou"
+EMAIL="el03020@mail.ntua.gr"
+APPROVED="rworkman"