cd
test -f installed/dnspython-1.4.0.tar.gz &&
mv installed/dnspython-1.4.0.tar.gz .
test ! -f dnspython-1.4.0.tar.gz &&
wget http://www.dnspython.org/kits/stable/dnspython-1.4.0.tar.gz
# BitTorrent 4.4.0
# ================
# Slackware 9.1 includes version 3.3, 10.0 includes 3.4.2, 10.1 includes
# 3.9.1, and 10.2 includes 4.1.3 All of them in "extra".
# If you're upgrading from an older version, you may want to run through
# the uninstall instructions at the bottom first to ensure that old files
# aren't left lying around.
cd
test -f installed/BitTorrent-4.4.0.tar.gz &&
mv installed/BitTorrent-4.4.0.tar.gz .
test ! -f BitTorrent-4.4.0.tar.gz &&
wget http://download.bittorrent.com/dl/BitTorrent-4.4.0.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "BitTorrent-*" -exec rm -r {} \;
tar xzvf ~/BitTorrent-4.4.0.tar.gz
cd BitTorrent-4.4.0
test $UID = 0 && chown -R root:root .
python setup.py build
# Become root to install it
su
# Version 4.1.4 renamed many of the scripts, remove the old names
( cd /usr/bin ; rm -f btdownloadgui.py btdownloadheadless.py \
btdownloadcurses.py btmaketorrentgui.py btmaketorrent.py btlaunchmany.py \
btlaunchmanycurses.py bttrack.py btreannounce.py btrename.py \
btshowmetainfo.py )
# Install the new version
python setup.py install
# /usr/share/pixmaps/BitTorrent-4.4.0/bittorrent.ico contains three images.
# I converted the ico into png using ImageMagick's convert utility and put
# the 48x48 one here if you want to use it as a desktop icon for
# /usr/bin/bittorrent
cd /usr/share/pixmaps
wget -nc http://englanders.cc/pub/linux/misc/bittorrent.png
# If your web browser supports /etc/mailcap, add a line like this to it to
# associate torrent files with /usr/bin/bittorrent:
# application/x-bittorrent; /usr/bin/bittorrent %s; test=test -n "$DISPLAY"
# To associate .torrent files with BitTorrent in Mozilla Firebird, which
# doesn't have the ability to add to the list of helper apps in Edit ->
# Preferences -> Downloads, click a *.torrent link on a web site and when
# the window pops up asking what to do with it, tell it to open it with
# /usr/bin/bittorrent
# To run it at the commandline, run either bittorrent-console or
# bittorrent-curses (the latter is easier to look at) and pass it a URL.
# For example:
# /usr/bin/bittorrent-console \
# http://www.slackware.com/torrents/slackware-10.2-install-d1.torrent
# See README.txt in the source directory for info about setting up a
# tracker
# If you want to check out other BitTorrent clients, try here and here
# If you ever need to uninstall BitTorrent, run this:
su
( cd /usr/bin ; rm -f btcompletedir.py btcompletedirgui.py \
btdownloadcurses.py btdownloadgui.py btdownloadheadless.py \
btdownloadlibrary.py btlaunchmany.py btlaunchmanycurses.py \
btmakemetafile.py btmaketorrent.py btmaketorrentgui.py btreannounce.py \
btrename.py btshowmetainfo.py bttest.py bttrack.py )
( cd /usr/bin ; rm -f bittorrent bittorrent-console \
bittorrent-curses bittorrent-tracker changetracker-console \
launchmany-console launchmany-curses maketorrent \
maketorrent-console torrentinfo-console )
find /usr/lib/python*/site-packages/BitTorrent -maxdepth 1 -type d \
-exec rm -r {} \; 2> /dev/null
find /usr/doc -maxdepth 1 -type d -name "BitTorrent-*" \
-exec rm -r {} \;
find /usr/share/pixmaps -maxdepth 1 -type d -name "BitTorrent-*" \
-exec rm -r {} \;
rm -f ~/installed/BitTorrent-*.tar.*
find /usr/local/src -maxdepth 1 -type d -name "BitTorrent-*" \
-exec rm -r {} \;
exit