diff options
-rw-r--r-- | abs/core/man-db/PKGBUILD | 23 | ||||
-rw-r--r-- | abs/core/man-db/__changelog | 3 | ||||
-rw-r--r-- | abs/core/man-db/man-db.install | 6 |
3 files changed, 22 insertions, 10 deletions
diff --git a/abs/core/man-db/PKGBUILD b/abs/core/man-db/PKGBUILD index 05265fd..a3e3caf 100644 --- a/abs/core/man-db/PKGBUILD +++ b/abs/core/man-db/PKGBUILD @@ -1,16 +1,16 @@ -# $Id: PKGBUILD 99794 2010-11-17 19:07:22Z andyrtr $ +# $Id: PKGBUILD 162129 2012-06-21 16:20:53Z andyrtr $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> # Contributor: Sergej Pupykin <sergej@aur.archlinux.org> pkgname=man-db -pkgver=2.5.9 +pkgver=2.6.2 pkgrel=1 pkgdesc="A utility for reading man pages" arch=('i686' 'x86_64') url="http://www.nongnu.org/man-db/" license=('GPL' 'LGPL') groups=('base') -depends=( 'bash' 'gdbm' 'zlib' 'groff') +depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline') optdepends=('less' 'gzip') backup=('etc/man_db.conf' 'etc/cron.daily/man-db') @@ -18,26 +18,31 @@ conflicts=('man') provides=('man') replaces=('man') install=${pkgname}.install -source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.gz - #http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz +source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.sig} convert-mans man-db.cron.daily) -md5sums=('9841394f5c5fe7e2dd2e0c5fb4766d0f' +options=('!libtool') +md5sums=('647c48d46c464419185d031d04481ee5' + 'a9de1f9bbe620a5a9b9f5da8c58cd96c' '2b7662a7d5b33fe91f9f3e034361a2f6' 'd30c39ae47560304471b5461719e0f03') -options=('!libtool') build() { cd ${srcdir}/${pkgname}-${pkgver} - + sed -i '/gets is a security hole/d' gnulib/lib/stdio.in.h ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ --with-db=gdbm --disable-setuid --enable-mandirs=GNU \ --with-sections="1 n l 8 3 0 2 5 4 9 6 7" make } +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make check +} + package() { cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install || return 1 + make DESTDIR=${pkgdir} install # part of groff pkg rm -f ${pkgdir}/usr/bin/zsoelim diff --git a/abs/core/man-db/__changelog b/abs/core/man-db/__changelog new file mode 100644 index 0000000..f0ec7f9 --- /dev/null +++ b/abs/core/man-db/__changelog @@ -0,0 +1,3 @@ +glibc + sed -i '/gets is a security hole/d' gnulib/lib/stdio.in.h +http://www.mail-archive.com/lfs-dev@linuxfromscratch.org/msg17404.html diff --git a/abs/core/man-db/man-db.install b/abs/core/man-db/man-db.install index 6a0f36b..f6f0f27 100644 --- a/abs/core/man-db/man-db.install +++ b/abs/core/man-db/man-db.install @@ -10,9 +10,13 @@ post_upgrade() { echo "run \"userdel man\". please also" echo "chown root:root /var/cache/man" fi + # force database rebuild to get rid off badly imported pages + if [ "`vercmp $2 2.6.0.2`" -lt 0 ]; then + echo "(re)building database..." + mandb -c --quiet + fi } post_remove() { rm -rf /var/cache/man } - |