summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mod_log_sql/mod_log_sql-1.101.ebuild')
-rw-r--r--net-www/mod_log_sql/mod_log_sql-1.101.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/net-www/mod_log_sql/mod_log_sql-1.101.ebuild b/net-www/mod_log_sql/mod_log_sql-1.101.ebuild
new file mode 100644
index 000000000000..f0a229fff821
--- /dev/null
+++ b/net-www/mod_log_sql/mod_log_sql-1.101.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_log_sql/mod_log_sql-1.101.ebuild,v 1.1 2006/12/12 22:24:06 trapni Exp $
+
+inherit eutils apache-module
+
+DESCRIPTION="An Apache module for logging to an SQL (MySQL) database"
+HOMEPAGE="http://www.outoforder.cc/projects/apache/mod_log_sql/"
+SRC_URI="http://www.outoforder.cc/downloads/${PN}/${P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="apache2 dbi ssl"
+
+DEPEND="virtual/mysql
+ dbi? ( >=dev-db/libdbi-0.7.0 )
+ ssl? ( dev-libs/openssl !apache2? ( net-www/mod_ssl ) )"
+RDEPEND="${DEPEND}"
+
+APACHE1_MOD_CONF="${PV}/42_${PN}"
+APACHE2_MOD_CONF="${PV}/42_${PN}"
+
+APACHE1_MOD_DEFINE="LOG_SQL"
+APACHE2_MOD_DEFINE="LOG_SQL"
+
+APACHE1_EXECFILES="${PN}_mysql.so ${PN}_dbi.so ${PN}_ssl.so"
+APACHE2_EXECFILES=".libs/${PN}_mysql.so .libs/${PN}_dbi.so .libs/${PN}_ssl.so"
+
+DOCFILES="AUTHORS CHANGELOG INSTALL TODO docs/README docs/manual.html \
+contrib/create_tables.sql contrib/make_combined_log.pl contrib/mysql_import_combined_log.pl"
+
+need_apache
+
+src_compile() {
+ useq apache2 || myconf="--with-apxs=${APXS1}"
+ useq apache2 && myconf="--with-apxs=${APXS2}"
+ useq ssl && myconf="${myconf} --with-ssl-inc=/usr"
+ useq ssl || myconf="${myconf} --without-ssl-inc"
+ useq dbi && myconf="${myconf} --with-dbi=/usr"
+ useq dbi || myconf="${myconf} --without-dbi"
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+pkg_postinst() {
+ apache-module_pkg_postinst
+ einfo "See /usr/share/doc/${PF}/create_tables.sql.gz "
+ einfo "on how to create logging tables.\n"
+}