summaryrefslogtreecommitdiffstats
path: root/system/lrzip
diff options
context:
space:
mode:
author Dave Margell <dmargell@gmail.com>2010-05-13 01:00:55 +0200
committer Erik Hanson <erik@slackbuilds.org>2010-05-13 01:00:55 +0200
commit56e9740db95f698c5c971ff26a85db9d1e3f1010 (patch)
treec09ced08b11d9e5939e053377f66af4d43028b70 /system/lrzip
parent16c384a4fe5c626d3a7f541696aa319331575414 (diff)
downloadslackbuilds-56e9740db95f698c5c971ff26a85db9d1e3f1010.tar.gz
slackbuilds-56e9740db95f698c5c971ff26a85db9d1e3f1010.tar.xz
system/lrzip: Added to 13.0 repository
Diffstat (limited to 'system/lrzip')
-rw-r--r--system/lrzip/README23
-rw-r--r--system/lrzip/lrzip.SlackBuild76
-rw-r--r--system/lrzip/lrzip.info10
-rw-r--r--system/lrzip/slack-desc19
4 files changed, 128 insertions, 0 deletions
diff --git a/system/lrzip/README b/system/lrzip/README
new file mode 100644
index 0000000000..7d23e7d25f
--- /dev/null
+++ b/system/lrzip/README
@@ -0,0 +1,23 @@
+lrzip (Long Range ZIP or Lzma RZIP) is a file compression program designed
+to do particularly well on very large files containing long distance redundancy.
+
+lrztar is a wrapper for lrzip to simplify compression and decompression
+of directories. lrzip uses an extended version of rzip which does a first pass
+long distance redundancy reduction. The lrzip modifications make it scale
+according to memory size. The data is then either:
+1. Compressed by lzma (default), zpaq, lzo, gzip or bzip2.
+2. Left uncompressed and rzip prepared.
+
+The major disadvantages are:
+1. The main lrzip application only works on single files so it requires the
+ lrztar wrapper to fake a complete archiver.
+2. It requires a lot of memory to get the best performance out of, and is not
+ really usable (for compression) with less than 256MB. Decompression requires
+ less ram and works on smaller ram machines.
+3. It works on stdin/out but in a very inefficient manner generating temporary
+ files on disk so this method of using lrzip is not recommended.
+4. Files compressed on a 64 bit OS with a compression window greater than 20
+ (2 GB) may not decompress on a 32 bit OS.
+
+See the file README.benchmarks for performance examples and what kind of data
+lrzip is very good with.
diff --git a/system/lrzip/lrzip.SlackBuild b/system/lrzip/lrzip.SlackBuild
new file mode 100644
index 0000000000..99b00b001e
--- /dev/null
+++ b/system/lrzip/lrzip.SlackBuild
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+# Slackware build script for lrzip
+
+# Written by Dave Margell <dmargell@gmail.com>
+
+PRGNAM=lrzip
+VERSION=${VERSION:-0.44}
+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"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKLDFLAGS=""; LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+LDFLAGS="$SLKLDFLAGS" \
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --datarootdir=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$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 "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+# Docs are already in place. Just add our SlackBuild.
+mkdir -p $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.${PKGTYPE:-tgz}
diff --git a/system/lrzip/lrzip.info b/system/lrzip/lrzip.info
new file mode 100644
index 0000000000..2d24b347de
--- /dev/null
+++ b/system/lrzip/lrzip.info
@@ -0,0 +1,10 @@
+PRGNAM="lrzip"
+VERSION="0.44"
+HOMEPAGE="http://ck.kolivas.org/apps/lrzip/"
+DOWNLOAD="http://ck.kolivas.org/apps/lrzip/lrzip-0.44.tar.bz2"
+MD5SUM="119cb66acd4bfb6d511a4e1c692e8214"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Dave Margell"
+EMAIL="dmargell@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/system/lrzip/slack-desc b/system/lrzip/slack-desc
new file mode 100644
index 0000000000..9e3a5d89d4
--- /dev/null
+++ b/system/lrzip/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+lrzip: lrzip (Long Range ZIP or Lzma RZIP)
+lrzip:
+lrzip: lrzip is a file compression program designed to do particularly well
+lrzip: on very large files containing long distance redundancy.
+lrzip: lrztar is a wrapper for lrzip to simplify compression and
+lrzip: decompression of directories.
+lrzip:
+lrzip: Homepage: http://ck.kolivas.org/apps/lrzip/
+lrzip:
+lrzip:
+lrzip: