diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2022-11-05 11:31:01 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-11-05 21:15:14 +0700 |
commit | 9fafd671415f6ce889aaca895093d91d6922861f (patch) | |
tree | bca7c70680be9ebaf2df9c75841d201923d3c54d /system/mktorrent | |
parent | e4758e9e94ae0a8ee52f60ed971c45c11fbd5183 (diff) |
system/mktorrent: Updated for v 1.1_de7d011. New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mktorrent')
-rw-r--r-- | system/mktorrent/README | 6 | ||||
-rw-r--r-- | system/mktorrent/mktorrent.SlackBuild | 54 | ||||
-rw-r--r-- | system/mktorrent/mktorrent.info | 14 | ||||
-rw-r--r-- | system/mktorrent/slack-desc | 10 |
4 files changed, 59 insertions, 25 deletions
diff --git a/system/mktorrent/README b/system/mktorrent/README index de4a0556254d..d1aeb8fc5803 100644 --- a/system/mktorrent/README +++ b/system/mktorrent/README @@ -1,2 +1,4 @@ -mktorrent is a console .torrent file creator. -It supports Multi Trackers (tier groups). +mktorrent is a command line utility to create BitTorrent metainfo +files used by trackers and torrent clients. It can create metainfo +files for single files or complete directories in a fast way. It +supports multiple trackers. diff --git a/system/mktorrent/mktorrent.SlackBuild b/system/mktorrent/mktorrent.SlackBuild index 6bbe048e3be9..7cba03c6e08f 100644 --- a/system/mktorrent/mktorrent.SlackBuild +++ b/system/mktorrent/mktorrent.SlackBuild @@ -1,12 +1,33 @@ #!/bin/bash # Slackware build script for mktorrent + # Written by Grigorios Bouzakis (grbzks@xsmail.com) +# Copyright 2022, Alexander Verbovetsky, Moscow, Russia +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mktorrent -VERSION=${VERSION:-1.1} +VERSION=${VERSION:-1.1_de7d011} +COMMIT=de7d011b35458de1472665f50b96c9cf6c303f39 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -19,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -34,12 +52,19 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" + OPT="USE_LARGE_FILES=1" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + OPT="USE_LARGE_FILES=1" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + OPT="" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + OPT="" fi set -e @@ -47,9 +72,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$COMMIT +tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz +cd $PRGNAM-$COMMIT chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -57,16 +82,21 @@ 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 CFLAGS+="-w $SLKCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFS64" -mkdir -p $PKG/usr/bin -cat mktorrent > $PKG/usr/bin/mktorrent -chmod 0755 $PKG/usr/bin/mktorrent +CFLAGS="$SLKCFLAGS" \ +make USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 $OPT +make install USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 $OPT \ + PREFIX=/usr DESTDIR=$PKG + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la 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/man/man1 +gzip -9 -c $CWD/mktorrent.1 > $PKG/usr/man/man1/mktorrent.1.gz + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/mktorrent/mktorrent.info b/system/mktorrent/mktorrent.info index 3d86dbecf13d..7aafecb2770b 100644 --- a/system/mktorrent/mktorrent.info +++ b/system/mktorrent/mktorrent.info @@ -1,10 +1,12 @@ PRGNAM="mktorrent" -VERSION="1.1" -HOMEPAGE="https://github.com/Rudde/mktorrent/" -DOWNLOAD="https://github.com/Rudde/mktorrent/archive/v1.1/mktorrent-1.1.tar.gz" -MD5SUM="0f583dc6d88c3bc7da736c3f0a8c449e" +VERSION="1.1_de7d011" +HOMEPAGE="https://github.com/pobrn/mktorrent" +DOWNLOAD="https://github.com/pobrn/mktorrent/archive/de7d011/mktorrent-de7d011b35458de1472665f50b96c9cf6c303f39.tar.gz \ + https://salsa.debian.org/debian/mktorrent/-/raw/debian/latest/debian/mktorrent.1" +MD5SUM="f01f104a052f2e0f257ebc01434caf4f \ + f99f7416ea847d5f6a01134fe5efa3f2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Markus Reichelt" -EMAIL="slackbuilds@mareichelt.de" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" diff --git a/system/mktorrent/slack-desc b/system/mktorrent/slack-desc index b49b8d361491..dc98c0e23bff 100644 --- a/system/mktorrent/slack-desc +++ b/system/mktorrent/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| mktorrent: mktorrent (Console .torrent file creator) mktorrent: -mktorrent: Console .torrent file creator. It support Multi Trackers. -mktorrent: -mktorrent: Homepage: https://github.com/Rudde/mktorrent -mktorrent: -mktorrent: +mktorrent: mktorrent is a command line utility to create BitTorrent metainfo +mktorrent: files used by trackers and torrent clients. It can create metainfo +mktorrent: files for single files or complete directories in a fast way. It +mktorrent: supports multiple trackers. mktorrent: mktorrent: +mktorrent: Homepage: https://github.com/pobrn/mktorrent mktorrent: mktorrent: |