From d5839dd449651d7781de570240f3d0a1a9162320 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 22 Oct 2013 01:11:27 -0700 Subject: Tue Oct 22 01:11:15 PDT 2013 --- extra/htdig/PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'extra/htdig') diff --git a/extra/htdig/PKGBUILD b/extra/htdig/PKGBUILD index d558f4974..0511a9769 100644 --- a/extra/htdig/PKGBUILD +++ b/extra/htdig/PKGBUILD @@ -1,16 +1,15 @@ -# $Id: PKGBUILD 149485 2012-02-08 10:07:38Z pierre $ +# $Id: PKGBUILD 197001 2013-10-21 12:35:19Z andrea $ # Maintainer: Andrea Scarpino # Contributor: Giovanni Scafora pkgname=htdig pkgver=3.2.0b6 -pkgrel=8 +pkgrel=9 pkgdesc="Scripts and HTML code needed for using ht://Dig as a web search engine" url="http://www.htdig.org/" arch=('i686' 'x86_64') license=('GPL') depends=('openssl') -options=('!libtool' 'emptydirs') source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2" 'gcc4.3.patch' 'CVE-2007-6110.patch') @@ -18,11 +17,15 @@ md5sums=('8b9b9587a411ac7dd278fa5413428960' '2aeda683f95b58efc0978d7fe951de59' '0d9099d3b5a32d322a8e0240f85a3578') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" +prepare() { + cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}/gcc4.3.patch" patch -p1 -i "${srcdir}/CVE-2007-6110.patch" +} + +build() { + cd ${pkgname}-${pkgver} ./configure --prefix=/usr \ --mandir=/usr/share/man \ @@ -30,15 +33,15 @@ build() { --with-default-config-file=/etc/htdig/htdig.conf \ --with-database-dir=/var/lib/htdig/db \ --with-cgi-bin-dir=/usr/bin \ - --with-common-dir=/usr/share/doc/htdig \ - --with-search-dir=/usr/share/doc/htdig \ - --with-image-dir=/usr/share/doc/htdig \ + --with-common-dir=/usr/share/doc/htdig \ + --with-search-dir=/usr/share/doc/htdig \ + --with-image-dir=/usr/share/doc/htdig \ --localstatedir=/var/lib/htdig \ --with-ssl make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install } -- cgit v1.2.3-54-g00ecf