wok-4.x rev 1764
Up: ctorrent-dnh (3.3.2) + include torrentbox
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Nov 25 16:11:33 2008 +0100 (2008-11-25) |
parents | 2f406a6d94db |
children | 402ed718502a |
files | ctorrent-dnh/receipt ctorrent-dnh/stuff/torrentbox |
line diff
1.1 --- a/ctorrent-dnh/receipt Tue Nov 25 16:03:52 2008 +0100 1.2 +++ b/ctorrent-dnh/receipt Tue Nov 25 16:11:33 2008 +0100 1.3 @@ -1,17 +1,18 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="ctorrent-dnh" 1.7 -VERSION="3.3" 1.8 +VERSION="3.3.2" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Command line Bittorrent client." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +TARBALL="${PACKAGE}$VERSION.tar.gz" 1.14 WEB_SITE="http://www.rahul.net/dholmes/ctorrent/" 1.15 -WGET_URL="http://download.tuxfamily.org/slitaz/sources/packages/c/$TARBALL" 1.16 +WGET_URL="$SF_MIRROR/dtorrent/$TARBALL" 1.17 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 { 1.21 + mv ${PACKAGE}$VERSION $PACKAGE-$VERSION 2>/dev/null 1.22 cd $src 1.23 ./configure \ 1.24 --prefix=/usr \ 1.25 @@ -26,4 +27,6 @@ 1.26 { 1.27 mkdir -p $fs/usr 1.28 cp -a $_pkg/usr/bin $fs/usr 1.29 + # Torrentbox 1.30 + cp stuff/torrentbox $fs/usr/bin 1.31 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ctorrent-dnh/stuff/torrentbox Tue Nov 25 16:11:33 2008 +0100 2.3 @@ -0,0 +1,80 @@ 2.4 +#! /bin/sh 2.5 +# 2.6 +# Gtkdialog box to dl a torrent file with ctorrent throught a Xterm. 2.7 +# - SliTaz GNU/Linux 2008. 2.8 +# 2.9 +VERSION=2008041 2.10 + 2.11 +mkdir -p ~/Downloads 2.12 +cd ~/Downloads 2.13 + 2.14 +# We need at least a torrent filename. 2.15 +# 2.16 +export MOUNT_DIALOG=' 2.17 +<window title="Torrentbox" icon-name="drive-optical"> 2.18 + <vbox> 2.19 + 2.20 + <text use-markup="true"> 2.21 + <label> 2.22 +" 2.23 +<b>SliTaz - Torrentbox</b>" 2.24 + </label> 2.25 + </text> 2.26 + <text wrap="true" width-chars="54" use-markup="true"> 2.27 + <label> 2.28 +" 2.29 +Download a torrent file with ctorrent. 2.30 +" 2.31 + </label> 2.32 + </text> 2.33 + 2.34 + <frame Ctorrent options> 2.35 + <hbox> 2.36 + <text use-markup="true"> 2.37 + <label>"<b>Options :</b>"</label> 2.38 + </text> 2.39 + <entry> 2.40 + <variable>DL_OPTS</variable> 2.41 + </entry> 2.42 + <button> 2.43 + <input file icon="help"></input> 2.44 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x46 -T "ctorrent help" -e "ctorrent -h ; echo -e \"----\nENTER to continue...\" && read close"</action> 2.45 + </button> 2.46 + </hbox> 2.47 + </frame> 2.48 + 2.49 + <frame Download Torrent> 2.50 + <hbox> 2.51 + <text use-markup="true"> 2.52 + <label>"<b>File :</b>"</label> 2.53 + </text> 2.54 + <entry> 2.55 + <variable>TORRENT</variable> 2.56 + </entry> 2.57 + <button> 2.58 + <input file stock="gtk-open"></input> 2.59 + <action type="fileselect">TORRENT</action> 2.60 + </button> 2.61 + </hbox> 2.62 + </frame> 2.63 + 2.64 + <hbox> 2.65 + <button> 2.66 + <label>Download</label> 2.67 + <input file icon="forward"></input> 2.68 + <action>exec xterm -T "Ctorrent download" -e "ctorrent $DL_OPTS \"$TORRENT\" ; echo -e \"----\nENTER to close window...\" && read close"</action> 2.69 + </button> 2.70 + <button> 2.71 + <input file icon="exit"></input> 2.72 + <action type="exit">Exit</action> 2.73 + </button> 2.74 + </hbox> 2.75 + 2.76 + </vbox> 2.77 +</window> 2.78 +' 2.79 + 2.80 +# Execute main dialog. 2.81 +gtkdialog --program=MOUNT_DIALOG 2.82 + 2.83 +exit 0