bittornado _unstable_ port information

Package: bittornado
Version: 0.3.10
Revision: 12
Distribution: 10.3, 10.4
Depends: python23
BuildDepends: python23
Source: http://www.bittornado.com/download/BitTornado-%v.tar.gz
Source-MD5: 356213bc5964377a21cd9c56cd130c0d
SourceDirectory: BitTornado-CVS
PatchScript: <<
#!/bin/sh -ev
patch -p1 < %a/%n.patch
for patch in $(ls debian/patches/*.dpatch); do
patch -p1 < $patch
done
perl -pi -e 's|\#\!/usr/bin/env python|\#\!%p/bin/python2.3|' *.py
<<
CompileScript: apt-get moo || true
InstallScript: <<
python2.3 ./setup.py install --prefix=%i
install -d %i/share/mimelnk/application
mkdir -p %i/share/applications
install -m644 debian/bittornado.desktop %i/share/applications/bittornado.desktop
mkdir -p %i/share/pixmaps
install -m644 debian/bittornado.xpm %i/share/pixmaps/bittornado.xpm
chmod 755 %i/lib/python2.3/site-packages/BitTornado/launchmanycore.py
cp %i/bin/btmakemetafile.py %i/lib/python2.3/site-packages/BitTornado
cp %i/bin/btcompletedir.py %i/lib/python2.3/site-packages/BitTornado

# Remove the .py from the end of each of these and add .bittornado
# so that the alternatives system can work
( cd %i/bin && \
for i in btdownloadgui btdownloadheadless bttrack btmakemetafile \
btlaunchmany btcompletedir btcompletedirgui \
btdownloadcurses btlaunchmanycurses btreannounce btrename \
btshowmetainfo; \
do mv $i.py $i.bittornado; done )

# Remove the .py from the end of each of these, the following are not
# included in bittorrent, so they are not renamed to having the
# suffix of .bittornado
( cd %i/bin && \
for i in btcopyannounce btsethttpseeds btmaketorrentgui; \
do mv $i.py $i; done )

# Install manpages
mkdir -p %i/share/man/man1
cp debian/*.1 %i/share/man/man1
<<
DocFiles: LICENSE.txt MANIFEST.in README.txt ipranges.portugal.txt docs/FAQ.txt docs/IMPORTANT-multitracker-readme.txt docs/README-Psyco.txt docs/credits.txt docs/multitracker-spec.txt docs/webseed-spec.txt debian/NEWS debian/README.Debian debian/changelog
Description: Bittorrent client with enhanced curses interface
DescDetail: <<
bittorrent is a tool for distributing files. Whenever more than one
person is downloading at once they send pieces of the file(s) to each
other, thus relieving the central server's bandwidth burden. Even with
many simultaneous downloads, the upload burden on the central server
remains quite small, since each new downloader introduces new upload
capacity.

BitTornado is the next generation bittorrent client built on
the original BitTorrent. This client features an enhanced
console/curses mode, lots of new features under the hood, and is
generally one of the most advanced clients out there. Get this if you
need to limit your bandwidth, or you want more control of your
torrents. It does everything the original bittorrent does, plus more...

This package only contains the curses interfaces, install the package
bittornado-gui to get the GUI components
<<

Splitoff: <<
Package: %N-gui
Depends: wxpython-py23, python23, bittornado (>= %v-10)
Files: bin/*gui* share/pixmaps share/man/man1/*gui*.1 share/applications
DocFiles: debian/copyright debian/NEWS debian/changelog
Description: bittorrent client with enhanced GUI interface
DescDetail: <<
bittorrent is a tool for distributing files. It's extremely easy to
use - downloads are started by clicking on hyperlinks. Whenever more
than one person is downloading at once they send pieces of the
file(s) to each other, thus relieving the central server's bandwidth
burden. Even with many simultaneous downloads, the upload burden on
the central server remains quite small, since each new downloader
introduces new upload capacity.

BitTornado is the next generation bittorrent client built on
the original BitTorrent. This client features an enhanced GUI, lots
of new features under the hood, and is generally one of the most
advanced clients out there. Get this if you need to limit your
bandwidth, or you want more control of your torrents. It does
everything the original bittorrent does, plus more...
<<

PostInstScript: <<
# postinst script for bittorrent
case "$1" in
configure)

for i in btcompletedirgui btdownloadgui ; do
update-alternatives \
--install %p/bin/$i $i %p/bin/$i.bittornado 120 \
--slave %p/share/man/man1/$i.1 $i.1 %p/share/man/man1/$i.bittornado.1
done

;;

abort-upgrade|abort-remove|abort-deconfigure)
for i in btcompletedirgui btdownloadgui ; do
update-alternatives \
--install %p/bin/$i $i %p/bin/$i.bittornado 120 \
--slave %p/share/man/man1/$i.1 $i.1 %p/share/man/man1/$i.bittornado.1
done

;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1

;;

esac
<<
PreRmScript: <<
case "$1" in
remove|upgrade|deconfigure|purge)
for i in btcompletedirgui btdownloadgui ; do
update-alternatives --remove $i %p/bin/$i.bittornado
done

;;

failed-upgrade)

;;

*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac

<<
<<

DescPort: <<
Get the debian patch, apply and then make changes specific to fink (@FINKPREFIX@)
Helpful to keep a diff from clean source+debian patches -> final diff
<<

PostInstScript: <<
case "$1" in
configure)

for i in btcompletedir btdownloadcurses btdownloadheadless btlaunchmany btlaunchmanycurses btmakemetafile btreannounce btrename btshowmetainfo bttrack ; do
update-alternatives \
--install %p/bin/$i $i %p/bin/$i.bittornado 120 \
--slave %p/share/man/man1/$i.1 $i.1 %p/share/man/man1/$i.bittornado.1
done
;;

abort-upgrade|abort-remove|abort-deconfigure)
for i in btcompletedir btdownloadcurses btdownloadheadless btlaunchmany btlaunchmanycurses btmakemetafile btreannounce btrename btshowmetainfo bttrack ; do

update-alternatives \
--install %p/bin/$i $i %p/bin/$i.bittornado 120 \
--slave %p/share/man/man1/$i.1 $i.1 %p/share/man/man1/$i.bittornado.1
done

;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
<<

PreRmScript: <<

case "$1" in
remove|upgrade|deconfigure|purge)
for i in btcompletedir btcompletedirgui btdownloadcurses btdownloadgui btdownloadheadless btlaunchmany btlaunchmanycurses btmakemetafile btreannounce btrename btshowmetainfo bttrack ; do

update-alternatives --remove $i %p/bin/$i.bittornado
done

;;

failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
<<
License: BSD
Maintainer: Chris Zubrzycki
Homepage: http://www.bittornado.com/