aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/dumptorrent/README18
-rw-r--r--system/dumptorrent/dumptorrent.SlackBuild21
-rw-r--r--system/dumptorrent/dumptorrent.info8
-rw-r--r--system/dumptorrent/slack-desc2
4 files changed, 35 insertions, 14 deletions
diff --git a/system/dumptorrent/README b/system/dumptorrent/README
index 4cb699a089..7f476883e8 100644
--- a/system/dumptorrent/README
+++ b/system/dumptorrent/README
@@ -1,4 +1,14 @@
-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.
diff --git a/system/dumptorrent/dumptorrent.SlackBuild b/system/dumptorrent/dumptorrent.SlackBuild
index 2460e73c06..b5bb33bd31 100644
--- a/system/dumptorrent/dumptorrent.SlackBuild
+++ b/system/dumptorrent/dumptorrent.SlackBuild
@@ -25,7 +25,7 @@
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}
@@ -75,19 +75,30 @@ find -L . \
\( -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
diff --git a/system/dumptorrent/dumptorrent.info b/system/dumptorrent/dumptorrent.info
index 59bd74b0ca..dcdcd93ea9 100644
--- a/system/dumptorrent/dumptorrent.info
+++ b/system/dumptorrent/dumptorrent.info
@@ -1,8 +1,8 @@
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=""
diff --git a/system/dumptorrent/slack-desc b/system/dumptorrent/slack-desc
index 72f2e51b47..22c43e59e0 100644
--- a/system/dumptorrent/slack-desc
+++ b/system/dumptorrent/slack-desc
@@ -13,7 +13,7 @@ dumptorrent: BitTorrent .torrent file information, including size, file names,
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: