system/mktorrent: Updated for version 0.9.9

This commit is contained in:
Grigorios Bouzakis 2010-05-13 00:40:58 +02:00 committed by Robby Workman
parent 7bb8593a3d
commit 34a3c95984
4 changed files with 30 additions and 28 deletions

View File

@ -1,2 +1,2 @@
mktorrent is a console .torrent file creator. It supports Multi Trackers mktorrent is a console .torrent file creator.
(tier groups). It supports Multi Trackers (tier groups).

View File

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
# Slackware build script for mktorrent # Slackware build script for mktorrent
# Written by Grigorios Bouzakis (grbzks@gmail.com) # Written by Grigorios Bouzakis (grbzks@xsmail.com)
PRGNAM=mktorrent PRGNAM=mktorrent
VERSION=${VERSION:-0.9.9} VERSION=${VERSION:-0.9.9}
ARCH=${ARCH:-i486} ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
@ -16,14 +16,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
DOCS="CHANGES LICENSE"
set -e set -e
rm -rf $PKG rm -rf $PKG
@ -39,25 +40,24 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ make CFLAGS+="-w $SLKCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFS64"
CXXFLAGS="$SLKCFLAGS" \
make
mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/bin
cp -a mktorrent $PKG/usr/bin/ cat mktorrent > $PKG/usr/bin/mktorrent
chmod 0755 $PKG/usr/bin/mktorrent
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGES LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,10 @@
PRGNAM="mktorrent" PRGNAM="mktorrent"
VERSION="0.9.9" VERSION="0.9.9"
HOMEPAGE="http://borg.uu3.net/~borg/" HOMEPAGE="http://borg.uu3.net/~borg/?mktorrent"
DOWNLOAD="ftp://borg.uu3.net/pub/unix/mktorrent/mktorrent-0.9.9.tgz" DOWNLOAD="ftp://borg.uu3.net/pub/unix/mktorrent/mktorrent-0.9.9.tgz"
MD5SUM="8bdfa36982446f3ccd8549fedefb7448" MD5SUM="8bdfa36982446f3ccd8549fedefb7448"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Grigorios Bouzakis" MAINTAINER="Grigorios Bouzakis"
EMAIL="grbzks@gmail.com" EMAIL="grbzks@xsmail.com"
APPROVED="David Somero" APPROVED="rworkman"

View File

@ -5,15 +5,15 @@
# make exactly 11 lines for the formatting to be correct. It's also # make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'. # customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
mktorrent: mktorrent (Console .torrent file creator) mktorrent: mktorrent (Console .torrent file creator)
mktorrent: mktorrent:
mktorrent: Console .torrent file creator. It support Multi Trackers. mktorrent: Console .torrent file creator. It support Multi Trackers.
mktorrent:
mktorrent: Homepage: http://borg.uu3.net/~borg/?mktorrent
mktorrent:
mktorrent:
mktorrent:
mktorrent:
mktorrent: mktorrent:
mktorrent: Homepage: http://borg.uu3.net/~borg/ mktorrent:
mktorrent:
mktorrent:
mktorrent:
mktorrent:
mktorrent:
mktorrent: