summaryrefslogtreecommitdiff
blob: 75a6d1a64ae2c5dc861c6b6c66f7cdcd0d0f6a88 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/htdig/htdig-3.1.5-r1.ebuild,v 1.1 2001/04/30 11:43:08 achim Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="WWW index and searching system"
SRC_URI="http://www.htdig.org/files/${A}"
HOMEPAGE="http://www.htdig.org"

DEPEND=">=sys-apps/bash-2.04
	>=sys-devel/gcc-2.95.2
	>=sys-libs/glibc-2.1.3
	>=sys-libs/zlib-1.1.3"

src_unpack() {
  unpack ${A}
  cp ${FILESDIR}/CONFIG.in ${S}
}

src_compile() {

    cd ${S}
    try ./configure --prefix=/usr --host=${CHOST} \
	--with-cgi-bin-dir=/usr/bin \
	--with-image-dir=/usr/local/httpd/images/htdig \
	--with-search-dir=/usr/local/httpd/htdocs/htdig
    try make

}

src_install () {

    cd ${S}
    try make DESTDIR=${D} CGIBIN_DIR=${D}/usr/bin \
	SEARCH_DIR=${D}/usr/local/httpd/htdocs/htdig \
	IMAGE_DIR=${D}/usr/local/httpd/htdocs/images/htdig \
	exec_prefix=${D}/usr install
    dosed /etc/httpd/htdig.conf /usr/bin/rundig
    dodoc ChangeLog COPYING README

}