summaryrefslogtreecommitdiffstats
path: root/system/tiger/tiger.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/tiger/tiger.SlackBuild')
-rw-r--r--system/tiger/tiger.SlackBuild49
1 files changed, 24 insertions, 25 deletions
diff --git a/system/tiger/tiger.SlackBuild b/system/tiger/tiger.SlackBuild
index d9ae3e69b9..3a688508cf 100644
--- a/system/tiger/tiger.SlackBuild
+++ b/system/tiger/tiger.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Tiger
@@ -9,26 +9,36 @@
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=tiger
-VERSION=${VERSION:-3.2.3}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.2.4rc1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -61,13 +71,13 @@ then
set -e
# If we have the key and the signature file, we verify the package with GPG
if [ ${GPG_RET} -eq 0 -a \
- -f "${CWD}/${PRGNAM}-${VERSION}.tar.gz.sig" ]
+ -f "${CWD}/${PRGNAM}_${VERSION}.tar.gz.sig" ]
then
- /usr/bin/gpgv "${CWD}/${PRGNAM}-${VERSION}.tar.gz.sig"
+ /usr/bin/gpgv "${CWD}/${PRGNAM}_${VERSION}.tar.gz.sig"
fi
fi
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -76,23 +86,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# The build errs on this
-# see http://cvs.savannah.gnu.org/viewvc/tiger/tiger/util/genmsgidx?r1=1.6&r2=1.7
-patch --verbose -p1 < $CWD/patches/tiger-3.2.3-build-fix.diff
-# fix bug #7186 & #7675
+# fix bug #7675
# see https://savannah.nongnu.org/patch/?7675
-patch --verbose -p1 < $CWD/patches/zappasswd-3.2.3.patch
-# fix bug #33969
-patch --verbose -p1 < $CWD/patches/mkfilelst.patch
-# fix bug #34028
-patch --verbose -p1 < $CWD/patches/check_signatures.patch
+patch --verbose -p1 < $CWD/patches/zappasswd.patch
# see https://savannah.nongnu.org/patch/index.php?7859
patch --verbose -p1 < $CWD/patches/tiger-aide.patch
-# fix bug #37517
-patch --verbose -p1 < $CWD/patches/tiger-makefile.patch
-# add support for ext4 in the check_rootdir script
-# see http://git.savannah.gnu.org/cgit/tiger.git/commit/?id=9a030129ceceba715dff801f8229e66de62a8083
-patch --verbose -p1 < $CWD/patches/9a030129ceceba715dff801f8229e66de62a8083.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS"
@@ -142,6 +140,7 @@ cp -a [A-Z][A-Z]* site-* tigerrc* \
cp -a other/cert-usc20.txt contrib/fix_tiger_GROUPS.sh audit \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
+chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*.txt
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp $PKG/usr/libexec/tiger/html/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html
@@ -155,4 +154,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE