From adb8a8fd6f5009a80eb94e2083a4a41ed18329c4 Mon Sep 17 00:00:00 2001 From: Daniele Date: Wed, 28 Dec 2011 12:11:47 +0000 Subject: [PATCH] Patching tiger - it would not build as released upstream. --- tiger/PKGBUILD | 16 ++++++++++------ tiger/fix-genmsgidx-basedir.patch | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 tiger/fix-genmsgidx-basedir.patch diff --git a/tiger/PKGBUILD b/tiger/PKGBUILD index 566cfe566..828a8e132 100644 --- a/tiger/PKGBUILD +++ b/tiger/PKGBUILD @@ -8,17 +8,21 @@ arch=('i686' 'x86_64') url="http://www.nongnu.org/tiger/" license=('GPL') depends=('perl') -makedepends=('patch') -backup=('opt/tiger/config' 'etc/tiger/tigerrc' 'etc/tiger/cronrc') +makedepends=('patch' 'debianutils') +backup=('etc/tiger/tigerrc' 'etc/tiger/cronrc') source=("http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz" - "${pkgname}-makefile.diff") + 'tiger-makefile.diff' + 'fix-genmsgidx-basedir.patch') md5sums=('f41076f645da9de937819bf6d516e546' - 'aadd12186c717dfe202d55d1192851c2') + 'aadd12186c717dfe202d55d1192851c2' + '97255dbd16a663b2494df8d90829945e') build() { cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np0 -i ${srcdir}/$pkgname-makefile.diff + patch -Np0 -i "${srcdir}/tiger-makefile.diff" + + patch -Np1 -i "${srcdir}/fix-genmsgidx-basedir.patch" install -d "${pkgdir}/usr/share/tiger" "${pkgdir}/usr/sbin" @@ -30,7 +34,7 @@ build() { --with-tigerlog=/var/log/tiger \ --with-tigerbin=/usr/sbin - make + make -j1 } package() { diff --git a/tiger/fix-genmsgidx-basedir.patch b/tiger/fix-genmsgidx-basedir.patch new file mode 100644 index 000000000..d22825250 --- /dev/null +++ b/tiger/fix-genmsgidx-basedir.patch @@ -0,0 +1,22 @@ +diff -Naur a/util/genmsgidx b/util/genmsgidx +--- a/util/genmsgidx 2011-12-28 11:58:04.399319906 +0000 ++++ b/util/genmsgidx 2011-12-28 12:09:01.852424013 +0000 +@@ -34,7 +34,8 @@ + esac + done + +-BASEDIR=${BASEDIR:=$basedir} ++BASEDIR="${BASEDIR:=$basedir}" ++BASEDIR="${BASEDIR%/}" + export BASEDIR + + findcmd() +@@ -96,7 +97,7 @@ + haveallof variables BASEDIR || exit 1 + + # Clear idx file and detect error +-> $BASEDIR/doc/explain.idx && { ++> "${BASEDIR}/doc/explain.idx" || { + echo "Error: Cannot write over the index file $BASEDIR/doc/explain.idx. Aborting" + exit 1 + }