Patching tiger - it would not build as released upstream.

This commit is contained in:
Daniele 2011-12-28 12:11:47 +00:00
parent 16481f723a
commit adb8a8fd6f
2 changed files with 32 additions and 6 deletions

View File

@ -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() {

View File

@ -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
}