diff options
author | root <root@rshg054.dnsready.net> | 2013-10-22 01:11:27 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-22 01:11:27 -0700 |
commit | d5839dd449651d7781de570240f3d0a1a9162320 (patch) | |
tree | 59a51057ead59eda118056ff05b1e2b941fa356b /extra/htdig | |
parent | 61f20cbeb90ac877764e14b7c4e1c5c08b3e5383 (diff) |
Tue Oct 22 01:11:15 PDT 2013
Diffstat (limited to 'extra/htdig')
-rw-r--r-- | extra/htdig/PKGBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
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 <andrea@archlinux.org> # Contributor: Giovanni Scafora <giovanni@archlinux.org> 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 } |