-DumpTorrent is a non-interactive text mode program which displays
-BitTorrent .torrent file information, including size, file names,
-announce[-list], comment, publisher and info_hash. It can also query
-(scrape) tracker for current downloader count.
+DumpTorrent is a non-interactive, command-line utility that displays
+detailed information about .torrent files. It extracts metadata such
+as:
+
+- Torrent name
+- Total size
+- File list
+- Tracker announce URLs and announce-list
+- Comment
+- Creator information
+- info_hash
+
+It can also perform tracker scrape queries to retrieve the current
+number of seeders, leechers, and completed downloads.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dumptorrent
-VERSION=${VERSION:-1.2}
+VERSION=${VERSION:-1.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make dumptorrent CFLAGS="$SLKCFLAGS"
+mkdir build
+cd build
+cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_COMPILER=g++ \
+ -DCMAKE_C_COMPILER=gcc \
+ -DCMAKE_BUILD_TYPE=Release ..
+make
+cd ..
-# There's no 'install' target and no documentation, so we just copy the binary
-# to a correct location and package it.
+# There's no 'install' target, so we just copy the binaries to a correct
+# location
mkdir -p $PKG/usr/bin
-install -Dm755 ./dumptorrent $PKG/usr/bin/
+install -Dm755 build/dumptorrent $PKG/usr/bin/
+install -Dm755 build/scrapec $PKG/usr/bin/
# Strip binaries
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 README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Copy the slack-desc into ./install
PRGNAM="dumptorrent"
-VERSION="1.2"
-HOMEPAGE="http://sourceforge.net/projects/dumptorrent/"
-DOWNLOAD="http://sourceforge.net/projects/dumptorrent/files/dumptorrent/1.2/dumptorrent-1.2.tar.gz"
-MD5SUM="90c68a0889bd0eae2ed3392bd5e1fb03"
+VERSION="1.7.0"
+HOMEPAGE="https://github.com/tomcdj71/dumptorrent"
+DOWNLOAD="https://github.com/tomcdj71/dumptorrent/archive/v1.7.0/dumptorrent-1.7.0.tar.gz"
+MD5SUM="5eb9f9a0edd8378b041742c96bf74f49"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
dumptorrent: announce[-list], comment, publisher and info_hash. It can also query
dumptorrent: (scrape) tracker for current downloader count.
dumptorrent:
-dumptorrent: Website: http://sourceforge.net/projects/dumptorrent/
+dumptorrent: Website: https://github.com/tomcdj71/dumptorrent
dumptorrent:
dumptorrent:
dumptorrent: