aboutsummaryrefslogtreecommitdiff
path: root/system/tarsnap/tarsnap.SlackBuild
diff options
context:
space:
mode:
authorAW Green <awg@posteo.us>2017-08-09 11:37:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:41 +0700
commitacea632173fc15ab2f10af22e4de2e4abc9e4348 (patch)
tree7b414a14641033697d55ce562ae263c47cba3085 /system/tarsnap/tarsnap.SlackBuild
parentca4108f97167e7049bd28feb8d551682dccfc82e (diff)
system/tarsnap: Updated for version 1.0.39 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/tarsnap/tarsnap.SlackBuild')
-rw-r--r--system/tarsnap/tarsnap.SlackBuild52
1 files changed, 27 insertions, 25 deletions
diff --git a/system/tarsnap/tarsnap.SlackBuild b/system/tarsnap/tarsnap.SlackBuild
index 4e09c41e208cc..9dfae49766fd3 100644
--- a/system/tarsnap/tarsnap.SlackBuild
+++ b/system/tarsnap/tarsnap.SlackBuild
@@ -1,27 +1,27 @@
#!/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
-
-# Modified by Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
-
-# 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.
+# SlackBuild for Tarsnap, 9 August 2017
+# AW Green <awg@posteo.us>
+# All rights reserved.
#
-# 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.
+# Permission to use, copy, modify, or distribute this software for any
+# purpose with or without fee is hereby granted, provided that this
+# notice of copyright and permission 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.
+
+## The Tarsnap client itself remains a copyrighted work. Please see the
+## file COPYING in the Tarsnap client source distribution.
PRGNAM=tarsnap
-VERSION=${VERSION:-1.0.37}
+VERSION=${VERSION:-1.0.39}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,9 +38,8 @@ 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.
+# we can omit the usual block here for passing ARCH-specific flags,
+# since tarsnap's configure script handles this on its own.
set -e
@@ -53,9 +52,12 @@ cd $PRGNAM-autoconf-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# patch stock path in tarsnap.conf.sample.
+patch -p1 < $CWD/$PRGNAM.patch
./configure \
--prefix=/usr \
@@ -67,7 +69,7 @@ find -L . \
make
make install DESTDIR=$PKG
-# We don't set ARCH. we let Colin Percival's configure do it.
+# configure determines ARCH for us.
ARCH=$(grep build_cpu Makefile | cut -d= -f 2 | sed s/^\ //)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \