summaryrefslogtreecommitdiff
path: root/extra/htdig/PKGBUILD
blob: f40457224b7d899cf49ffc5b35a03fdcffd04636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 122102 2011-05-02 07:10:01Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=htdig
pkgver=3.2.0b6
pkgrel=7
pkgdesc="Scripts and HTML code needed for using ht://Dig as a web search engine"
url="http://www.htdig.org/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('openssl')
options=('!libtool' 'emptydirs')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
        'gcc4.3.patch'
	    'CVE-2007-6110.patch')
md5sums=('8b9b9587a411ac7dd278fa5413428960'
         '2aeda683f95b58efc0978d7fe951de59'
         '0d9099d3b5a32d322a8e0240f85a3578')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -p1 -i "${srcdir}/gcc4.3.patch"
  patch -p1 -i "${srcdir}/CVE-2007-6110.patch"

  ./configure --prefix=/usr \
    --mandir=/usr/share/man \
    --with-config-dir=/etc/htdig \
    --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 \
    --localstatedir=/var/lib/htdig \
    --with-ssl
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}