# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ DESCRIPTION="An Apache module for logging to an SQL database" HOMEPAGE="http://www.grubbybaby.com/mod_log_sql/" S=${WORKDIR}/${PN} SRC_URI="http://www.grubbybaby.com/mod_log_sql/mod_log_sql-1.18.tar.bz2" DEPEND=" >=dev-db/mysql-3.23.15 =net-www/apache-1*" LICENSE="Apache-1.1" KEYWORDS="~x86" IUSE="" SLOT="0" RESTRICT="nostrip" src_compile() { emake dso \ APXS=/usr/sbin/apxs \ APACHEHEADERS=/usr/include/apache \ APACHEINSTALLED=/usr/sbin } src_install() { exeinto /usr/lib/apache doexe ${PN}.so dodoc Documentation/{documentation.*,README} dodoc create_tables.sql dohtml Documentation/HTML/* } pkg_postinst() { einfo "Read the documentation in /usr/share/doc/${P}" einfo "and then enable the module with this command:" einfo " ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" } pkg_config() { apxs -e -n sql_log -a mod_log_sql.so \ || die "Failed to configure Apache" }