aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/fsarchiver/README12
-rw-r--r--system/fsarchiver/fsarchiver.SlackBuild99
-rw-r--r--system/fsarchiver/fsarchiver.info10
-rw-r--r--system/fsarchiver/slack-desc19
4 files changed, 140 insertions, 0 deletions
diff --git a/system/fsarchiver/README b/system/fsarchiver/README
new file mode 100644
index 0000000000000..c434beadce624
--- /dev/null
+++ b/system/fsarchiver/README
@@ -0,0 +1,12 @@
+FSArchiver is a system tool that allows you to save the contents of
+a filesystem to a compressed archive file. The filesystem can be
+restored on a partition which has a different size and it can be
+restored on a different filesystem. Unlike tar/dar, FSArchiver
+also creates the filesystem when it extracts the data to partitions.
+
+Everything is checksummed in the archive in order to protect the data.
+If the archive is corrupt, you just loose the current file, not the
+whole archive.
+
+There's a manpage now so you can get on usage by doing
+"fsarchiver -h" (for short help) or "man 8 fsarchiver"
diff --git a/system/fsarchiver/fsarchiver.SlackBuild b/system/fsarchiver/fsarchiver.SlackBuild
new file mode 100644
index 0000000000000..380fc2cd25c92
--- /dev/null
+++ b/system/fsarchiver/fsarchiver.SlackBuild
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+# Slackware Package Build Script for fsarchiver
+# Home Page: http://www.fsarchiver.org/Main_Page
+
+# Copyright (c) 2009-2011, Nishant Limbachia, Hoffman Estates, IL, USA <nishant _AT_ mnspace _DOT_ net>
+# 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 script must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "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 COPYRIGHT OWNER OR
+# CONTRIBUTORS 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.
+
+PRGNAM=fsarchiver
+VERSION=${VERSION:-0.6.12}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e # Exit on most errors
+
+rm -fr $TMP/$PRGNAM-$VERSION $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+strip -g --strip-unneeded $PKG/usr/sbin/fsarchiver
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+### compress man pages
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+
+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/fsarchiver/fsarchiver.info b/system/fsarchiver/fsarchiver.info
new file mode 100644
index 0000000000000..88624f3450694
--- /dev/null
+++ b/system/fsarchiver/fsarchiver.info
@@ -0,0 +1,10 @@
+PRGNAM="fsarchiver"
+VERSION="0.6.12"
+HOMEPAGE="http://www.fsarchiver.org/Main_Page"
+DOWNLOAD="http://downloads.sourceforge.net/fsarchiver/fsarchiver-0.6.12.tar.gz"
+MD5SUM="dc54cefcf9c2bc331063d82a7ad54133"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Nishant Limbachia"
+EMAIL="nishant@mnspace.net"
diff --git a/system/fsarchiver/slack-desc b/system/fsarchiver/slack-desc
new file mode 100644
index 0000000000000..9dd3e13a267c1
--- /dev/null
+++ b/system/fsarchiver/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------------------------------------------------------|
+fsarchiver: fsarchiver (Filesystem Archiver for Linux)
+fsarchiver:
+fsarchiver: FSArchiver is a system tool that allows you to save the
+fsarchiver: contents of a file-system to a compressed archive file. The
+fsarchiver: file system can also be restored on a different-sized partition
+fsarchiver: and also to a different filesystem. It can also create the
+fsarchiver: filesytems while restoring.
+fsarchiver:
+fsarchiver: More info on http://www.fsarchiver.org/Main_Page
+fsarchiver:
+fsarchiver: