summaryrefslogtreecommitdiff
path: root/system/tarsnap
diff options
context:
space:
mode:
Diffstat (limited to 'system/tarsnap')
-rw-r--r--system/tarsnap/README15
-rw-r--r--system/tarsnap/slack-desc19
-rw-r--r--system/tarsnap/tarsnap.SlackBuild84
-rw-r--r--system/tarsnap/tarsnap.info8
4 files changed, 126 insertions, 0 deletions
diff --git a/system/tarsnap/README b/system/tarsnap/README
new file mode 100644
index 0000000000..c0fca1dd81
--- /dev/null
+++ b/system/tarsnap/README
@@ -0,0 +1,15 @@
+Encrypted Snapshotted Remote Backup Service
+
+Colin Percival's program 'tarsnap' to be used as a part of his online encrypted
+snapshotted backup service, currently undergoing paid private beta testing.
+
+"Beta", means two things in this particular case:
+1. stable but not feature complete
+2. new releases come out rapidly. Please check for a newer release before
+building the one here - see https://beta.tarsnap.com/download.html
+
+An easy way to use the slackbuild on a newer version without editing:
+VERSION="<latest version>" tarsnap.SlackBuild
+
+Please note that this is only the client. In order to use tarsnap, one must
+subscribe to the Tarsnap service - see their website for details.
diff --git a/system/tarsnap/slack-desc b/system/tarsnap/slack-desc
new file mode 100644
index 0000000000..67e5e14524
--- /dev/null
+++ b/system/tarsnap/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-----------------------------------------------------|
+tarsnap: tarsnap (Encrypted Snapshotted Remote Backup Service)
+tarsnap:
+tarsnap: Colin Percival's program 'tarsnap' to be used as a part of his
+tarsnap: online encrypted snapshotted backup service, currently undergoing
+tarsnap: paid private beta testing
+tarsnap:
+tarsnap: http://www.tarsnap.com
+tarsnap:
+tarsnap:
+tarsnap:
+tarsnap:
diff --git a/system/tarsnap/tarsnap.SlackBuild b/system/tarsnap/tarsnap.SlackBuild
new file mode 100644
index 0000000000..93ff05269d
--- /dev/null
+++ b/system/tarsnap/tarsnap.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for tarsnap
+
+# Written by Justin H Haynes <justin@justinhaynes.com>
+# as a series of careful modifications to the excellent
+# http://slackbuilds.org/template.SlackBuild
+
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+# Modified by the SlackBuilds.org project
+
+PRGNAM=tarsnap
+VERSION=${VERSION:-1.0.17}
+#ARCH=${ARCH:-i486} # Do not set or edit this - we get it from the Makefile.
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# Normally we'd have this if block here for setting ARCH and
+# feeding same to the configure script, but the tarsnap configure script
+# figures out the architecture itself.
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-at-$VERSION
+tar xvf $CWD/$PRGNAM-at-$VERSION.tgz
+cd $PRGNAM-at-$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 {} \;
+
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION
+
+make
+make install DESTDIR=$PKG
+
+# We don't set ARCH. we let Colin Percival's configure do it.
+ARCH=$(grep build_cpu Makefile | cut -d= -f 2 | sed s/^\ //)
+
+# We'll leave stuff unstripped for now, since we're dealing with a beta
+#( 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
+#)
+
+( cd $PKG/usr/man || exit 1
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+
+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.tgz
diff --git a/system/tarsnap/tarsnap.info b/system/tarsnap/tarsnap.info
new file mode 100644
index 0000000000..76d94e038d
--- /dev/null
+++ b/system/tarsnap/tarsnap.info
@@ -0,0 +1,8 @@
+PRGNAM="tarsnap"
+VERSION="1.0.17"
+HOMEPAGE="http://www.tarsnap.com"
+DOWNLOAD="https://beta.tarsnap.com/download/tarsnap-at-1.0.17.tgz"
+MD5SUM="bd46669df643fe3ffa8abc834bc87072"
+MAINTAINER="Justin H Haynes"
+EMAIL="justin at justinhaynes dot com"
+APPROVED="rworkman"