diff options
-rw-r--r-- | system/par2cmdline/README | 28 | ||||
-rw-r--r-- | system/par2cmdline/par2cmdline.SlackBuild | 59 | ||||
-rw-r--r-- | system/par2cmdline/par2cmdline.info | 8 | ||||
-rw-r--r-- | system/par2cmdline/slack-desc | 11 |
4 files changed, 106 insertions, 0 deletions
diff --git a/system/par2cmdline/README b/system/par2cmdline/README new file mode 100644 index 0000000000000..93dc8abce1d82 --- /dev/null +++ b/system/par2cmdline/README @@ -0,0 +1,28 @@ +par2cmdline (Commandline implementation of PARv2.0 specification) + +par2cmdline is a GPL-licensed commandline tool for creating and using PAR2 +parity sets to detect damage in files and repair them if necessary. The +program uses Reed Solomon Coding to perform its error correction. A useful +program for checking and ensuring the integrity of binaries retrieved from +usenet for instance. + +This program, or it's argued gcc, has compile issues which result in a +"Warning: ignoring..." messages during the build process. This problem is +known and was made a gcc bug, which was shortly fixed. From what I know, +this issue does not affect the actual compilation of the program. + +For information on the issue see these messages: + http://gcc.gnu.org/ml/gcc-bugs/2004-04/msg02848.html + http://gcc.gnu.org/ml/gcc-bugs/2004-04/msg02856.html + http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=356548 + +There is also current work being done on a par2 library extracted from +par2cmdline called libpar2 and is available at pararchive.sourceforge.net. +However, since it still contains the original par2cmdline, it has the same +compilation issue. + +On a side note, par2cmdline in combination with unrar (available here on +SlackBuilds.org) can be used by the python program hellanzb to make getting, +verifying and unraring files with a nzb file almost totally hands-free. +For more information see: http://www.hellanzb.com/trac/. + diff --git a/system/par2cmdline/par2cmdline.SlackBuild b/system/par2cmdline/par2cmdline.SlackBuild new file mode 100644 index 0000000000000..9029aa04181af --- /dev/null +++ b/system/par2cmdline/par2cmdline.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for par2cmdline + +# Written by maldoror +# See README for notes on "warning" during build + +# No Guarantees. Use this SlackBuild at your own risk. +# Public Domain + +# Modified by the SlackBuilds.org project + +PRGNAM=par2cmdline +VERSION=0.4 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + || exit 1 + +make || exit 1 +make check || exit 1 +make install-strip DESTDIR=$PKG || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS PORTING README ROADMAP \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/system/par2cmdline/par2cmdline.info b/system/par2cmdline/par2cmdline.info new file mode 100644 index 0000000000000..3f9ec35b48031 --- /dev/null +++ b/system/par2cmdline/par2cmdline.info @@ -0,0 +1,8 @@ +PRGNAM="par2cmdline" +VERSION="0.4" +HOMEPAGE="http://parchive.sourceforge.net" +DOWNLOAD="http://dl.sourceforge.net/parchive/par2cmdline-0.4.tar.gz" +MD5SUM="1551b63e57e3c232254dc62073b723a9" +MAINTAINER="maldoror" +EMAIL="mujyo@comcast.net" +APPROVED="robw810" diff --git a/system/par2cmdline/slack-desc b/system/par2cmdline/slack-desc new file mode 100644 index 0000000000000..fe463762a9fff --- /dev/null +++ b/system/par2cmdline/slack-desc @@ -0,0 +1,11 @@ +par2cmdline: par2cmdline (Commandline implementation of PARv2.0 specification) +par2cmdline: +par2cmdline: par2cmdline is a GPL-licensed commandline tool for creating and +par2cmdline: using PAR2 parity sets to detect damage in files and repair them +par2cmdline: if necessary. The program uses Reed Solomon Coding to perform its +par2cmdline: error correction. A useful program for checking and ensuring +par2cmdline: the integrity of binaries retrieved from usenet for instance. +par2cmdline: +par2cmdline: http://parchive.sourceforge.net/ +par2cmdline: +par2cmdline: |