# Copyright 1999-2005 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-r4.ebuild,v 1.2 2005/02/10 17:13:48 luckyduck Exp $ inherit webapp-apache DESCRIPTION="HTTP/HTML indexing and searching system" HOMEPAGE="http://www.htdig.org" SRC_URI="http://www.htdig.org/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 sparc ppc ~mips amd64" IUSE="" DEPEND=">=sys-libs/zlib-1.1.3 app-arch/unzip" export CPPFLAGS="${CPPFLAGS} -Wno-deprecated" HTTPD_USER="apache" HTTPD_GROUP="apache" pkg_setup() { webapp-detect || NO_WEBSERVER=1 webapp-pkg_setup "${NO_WEBSERVER}" einfo "Installing into ${ROOT}${HTTPD_ROOT}." } src_compile() { local DocumentRoot=${HTTPD_ROOT} local destdir=${DocumentRoot}/${PN} cd ${S} ./configure \ --prefix=/usr \ --with-config-dir=/etc/${PN} \ --with-cgi-bin-dir=${HTTPD_CGIBIN} \ --with-common-dir=/usr/share/${PN} \ --with-database-dir=/var/${PN}/db \ --with-image-dir=${destdir} \ --with-default-config-file=/etc/${PN}/${PN}.conf \ || die emake || die } src_install () { webapp-mkdirs local DocumentRoot=${HTTPD_ROOT} local destdir=${DocumentRoot}/${PN} make \ DESTDIR=${D} \ CONFIG_DIR=${D}/etc/${PN} \ SEARCH_DIR=${D}/${destdir} \ CGIBIN_DIR=${D}/${HTTPD_CGIBIN} \ COMMON_DIR=${D}/usr/share/${PN} \ DATABASE_DIR=${D}/var/${PN}/db \ IMAGE_DIR=${D}/${destdir} \ 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/htdig/htdig.conf dosed /usr/bin/rundig touch ${D}/var/htdig/db/word2root.db touch ${D}/var/htdig/db/root2word.db }