]> git.t-rg.ws Git - slackbuilds.git/commitdiff
dumptorrent: updated to version 1.7.0; switched to a maintained fork
authorfsLeg <fsleg@t-rg.ws>
Sun, 25 May 2025 10:03:54 +0000 (13:03 +0300)
committerfsLeg <fsleg@t-rg.ws>
Sun, 25 May 2025 10:03:54 +0000 (13:03 +0300)
dumptorrent/README
dumptorrent/dumptorrent.SlackBuild
dumptorrent/dumptorrent.info
dumptorrent/slack-desc

index 4cb699a089eeb5f3aa661765c42c931c3fa07b09..7f476883e830dae10ae771868a0abe510d65bce4 100644 (file)
@@ -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.
index 2460e73c06990fd50d4329effa9b4d495eacc200..b5bb33bd31f9f5c5bf3ae1107c81fa0637e7a554 100644 (file)
@@ -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
index 59bd74b0cac3228b94132446109ef377d9ab03ba..dcdcd93ea97d57509cbc0f4ec96e6cd24d3712a2 100644 (file)
@@ -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=""
index 72f2e51b4796d63b3aeab42f26d4efe93847d88d..22c43e59e027083553b727a383d17e77a892880f 100644 (file)
@@ -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: