blob: dd611a0114f13ed1d809833a51541a5b10e425e2 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2002 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.6-r1.ebuild,v 1.1 2002/04/24 18:59:23 seemant Exp ${PN}/${PN}-3.1.5-r2.ebuild,v 1.2 2002/03/15 12:10:18 danarmak Exp $
S=${WORKDIR}/${P}
DESCRIPTION="HTTP/HTML indexing and searching system"
SRC_URI="http://www.htdig.org/files/${P}.tar.gz"
HOMEPAGE="http://www.htdig.org"
DEPEND=">=sys-libs/zlib-1.1.3
app-arch/unzip"
src_compile() {
cd ${S}
./configure \
--prefix=/usr \
--with-config-dir=/etc/${PN} \
--with-image-dir=/home/httpd/htdocs/${PN} \
--with-search-dir=/home/httpd/htdocs/${PN} \
--with-cgi-bin-dir=/home/httpd \
--with-common-dir=/usr/share/${PN} \
--with-database-dir=/var/${PN} \
--with-image-dir=/home/httpd/images/${PN} \
--with-search-dir=/home/httpd/htdocs/${PN} \
--with-default-config-file=/etc/${PN}/${PN}.conf \
|| die
emake || die
}
src_install () {
make \
DESTDIR=${D} \
CONFIG_DIR=${D}/etc/${PN} \
IMAGE_DIR=${D}/home/httpd/htdocs/${PN} \
SEARCH_DIR=${D}/home/httpd/htdocs/${PN} \
CGIBIN_DIR=${D}/home/httpd \
COMMON_DIR=${D}/usr/share/${PN} \
DATABASE_DIR=${D}/var/${PN} \
IMAGE_DIR=${D}/home/httpd/images/${PN} \
SEARCH_DIR=${D}/home/httpd/htdocs/htdig \
DEFAULT_CONFIG_FILE=${D}/etc/${PN}/${PN}.conf \
exec_prefix=${D}/usr \
install || die
dodoc ChangeLog COPYING README
dohtml -r htdoc
insinto /etc/conf.d
doins installdir/htdig.conf
dosed /etc/httpd/htdig.conf
dosed /usr/bin/rundig
}
|