From: fsLeg Date: Sun, 25 May 2025 10:03:54 +0000 (+0300) Subject: dumptorrent: updated to version 1.7.0; switched to a maintained fork X-Git-Url: https://git.t-rg.ws/?a=commitdiff_plain;h=e1c390858e16961c5489ded253c08fe5df2a976f;p=slackbuilds.git dumptorrent: updated to version 1.7.0; switched to a maintained fork --- diff --git a/dumptorrent/README b/dumptorrent/README index 4cb699a..7f47688 100644 --- a/dumptorrent/README +++ b/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/dumptorrent/dumptorrent.SlackBuild b/dumptorrent/dumptorrent.SlackBuild index 2460e73..b5bb33b 100644 --- a/dumptorrent/dumptorrent.SlackBuild +++ b/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/dumptorrent/dumptorrent.info b/dumptorrent/dumptorrent.info index 59bd74b..dcdcd93 100644 --- a/dumptorrent/dumptorrent.info +++ b/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/dumptorrent/slack-desc b/dumptorrent/slack-desc index 72f2e51..22c43e5 100644 --- a/dumptorrent/slack-desc +++ b/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: