blob: 0eedb72fd941386bc2229e089ac5fd1291a574fb (
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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-misc/htdig/htdig-3.1.6-r5.ebuild,v 1.1 2004/08/26 12:51:06 rl03 Exp $
inherit webapp
DESCRIPTION="HTTP/HTML indexing and searching system"
SRC_URI="http://www.htdig.org/files/${P}.tar.gz"
HOMEPAGE="http://www.htdig.org"
KEYWORDS="~x86 ~sparc ~ppc ~mips ~amd64"
LICENSE="GPL-2"
DEPEND=">=sys-libs/zlib-1.1.3
app-arch/unzip"
export CPPFLAGS="${CPPFLAGS} -Wno-deprecated"
src_compile() {
cd ${S}
./configure \
--prefix=/usr \
--with-config-dir=/${MY_HOSTROOTDIR}/${PN} \
--with-cgi-bin-dir=${MY_CGIBINDIR} \
--with-common-dir=/usr/share/${PN} \
--with-database-dir=${MY_HOSTROOTDIR}/${PN}/db \
--with-image-dir=${MY_HTDOCSDIR} \
--with-default-config-file=${MY_HOSTROOTDIR}/${PN}/${PN}.conf \
|| die
emake || die
}
src_install () {
webapp_src_preinst
dodir ${MY_HOSTROOTDIR}/${PN}
make \
DESTDIR=${D} \
CONFIG_DIR=${D}/${MY_HOSTROOTDIR}/${PN} \
SEARCH_DIR=${D}/${MY_HOSTROOTDIR} \
CGIBIN_DIR=${D}/${MY_CGIBINDIR} \
COMMON_DIR=${D}/usr/share/${PN} \
DATABASE_DIR=${D}/${MY_HOSTROOTDIR}/${PN}/db \
IMAGE_DIR=${D}/${MY_HTDOCSDIR} \
DEFAULT_CONFIG_FILE=${D}/${MY_HOSTROOTDIR}/${PN}/${PN}.conf \
exec_prefix=${D}/usr \
install || die
dodoc ChangeLog COPYING README
dohtml -r htdoc
sed -e "s/@DATABASE_DIR@/\/var\/${PN}\/db/" -i ${D}/${MY_HOSTROOT}/${PN}/htdig.conf
dosed ${MY_HOSTROOTDIR}/${PN}/${PN}.conf
dosed /usr/bin/rundig
webapp_src_install
}
|