summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-03-13 16:11:20 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-03-13 16:11:20 +0000
commitfad2b198f2ab0ade751c5ba14e90f724dc2b8bbc (patch)
tree99e0ecd342d1cf968dd760d1ab481ad9d0b9098b /www-apache
parentStable for HPPA (bug #211986). (diff)
downloadgentoo-2-fad2b198f2ab0ade751c5ba14e90f724dc2b8bbc.tar.gz
gentoo-2-fad2b198f2ab0ade751c5ba14e90f724dc2b8bbc.tar.bz2
gentoo-2-fad2b198f2ab0ade751c5ba14e90f724dc2b8bbc.zip
install logio module; include dbi module in config
(Portage version: 2.1.4.4)
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_log_sql/ChangeLog8
-rw-r--r--www-apache/mod_log_sql/files/1.101/42_mod_log_sql.conf33
-rw-r--r--www-apache/mod_log_sql/mod_log_sql-1.101-r1.ebuild50
3 files changed, 90 insertions, 1 deletions
diff --git a/www-apache/mod_log_sql/ChangeLog b/www-apache/mod_log_sql/ChangeLog
index fe56c95e94e5..ae77c7cd1b3e 100644
--- a/www-apache/mod_log_sql/ChangeLog
+++ b/www-apache/mod_log_sql/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-apache/mod_log_sql
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_log_sql/ChangeLog,v 1.4 2008/01/31 19:09:26 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_log_sql/ChangeLog,v 1.5 2008/03/13 16:11:19 hollow Exp $
+
+*mod_log_sql-1.101-r1 (13 Mar 2008)
+
+ 13 Mar 2008; Benedikt Böhm <hollow@gentoo.org>
+ +files/1.101/42_mod_log_sql.conf, +mod_log_sql-1.101-r1.ebuild:
+ install logio module; include dbi module in config
31 Jan 2008; Benedikt Böhm <hollow@gentoo.org> files/42_mod_log_sql.conf,
mod_log_sql-1.100.ebuild, mod_log_sql-1.101.ebuild:
diff --git a/www-apache/mod_log_sql/files/1.101/42_mod_log_sql.conf b/www-apache/mod_log_sql/files/1.101/42_mod_log_sql.conf
new file mode 100644
index 000000000000..57bd78d34ae4
--- /dev/null
+++ b/www-apache/mod_log_sql/files/1.101/42_mod_log_sql.conf
@@ -0,0 +1,33 @@
+<IfDefine LOG_SQL>
+LoadModule log_sql_module modules/mod_log_sql.so
+LoadModule log_sql_logio_module modules/mod_log_sql_logio.so
+
+<IfDefine DBI>
+LoadModule log_sql_dbi_module modules/mod_log_sql_dbi.so
+</IfDefine>
+
+<IfDefine !DBI>
+LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
+</IfDefine>
+
+<IfDefine SSL>
+LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
+</IfDefine>
+
+LogSQLLoginInfo mysql://user:passwd@host/database
+LogSQLDBParam socketfile /var/run/mysqld/mysqld.sock
+
+# LogSQLMassVirtualHosting automatically sets LogSQLCreateTables to 'on'
+#LogSQLCreateTables on
+LogSQLMassVirtualHosting on
+
+LogSQLMachineID machine_id
+LogSQLPreserveFile logs/mod_log_sql_preserve.sql
+
+# See http://www.outoforder.cc/projects/apache/mod_log_sql/docs-2.0/
+# for details about LogSQLTransferLogFormat
+# be compatible with the Combined Log Format (CLF)
+LogSQLTransferLogFormat AbHhmRSsTUuv
+</IfDefine>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apache/mod_log_sql/mod_log_sql-1.101-r1.ebuild b/www-apache/mod_log_sql/mod_log_sql-1.101-r1.ebuild
new file mode 100644
index 000000000000..18420c3d51ad
--- /dev/null
+++ b/www-apache/mod_log_sql/mod_log_sql-1.101-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_log_sql/mod_log_sql-1.101-r1.ebuild,v 1.1 2008/03/13 16:11:19 hollow Exp $
+
+inherit apache-module
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+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"
+IUSE="dbi ssl"
+
+DEPEND="virtual/mysql
+ dbi? ( dev-db/libdbi )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_CONF="1.101/42_${PN}"
+APACHE2_MOD_DEFINE="LOG_SQL"
+
+APACHE2_EXECFILES="
+ .libs/${PN}_dbi.so
+ .libs/${PN}_logio.so
+ .libs/${PN}_mysql.so
+ .libs/${PN}_ssl.so"
+
+DOCFILES="AUTHORS CHANGELOG docs/README docs/manual.html \
+contrib/create_tables.sql contrib/make_combined_log.pl contrib/mysql_import_combined_log.pl"
+
+need_apache
+
+src_compile() {
+ local myconf="--with-apxs=${APXS}"
+ use ssl && myconf="${myconf} --with-ssl-inc=/usr"
+ use ssl || myconf="${myconf} --without-ssl-inc"
+ use dbi && myconf="${myconf} --with-dbi=/usr"
+ use dbi || myconf="${myconf} --without-dbi"
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+pkg_postinst() {
+ use dbi && APACHE2_MOD_DEFINE="${APACHE2_MOD_DEFINE} DBI"
+ apache-module_pkg_postinst
+ einfo "Refer to /usr/share/doc/${PF}/ for scripts"
+ einfo "on how to create logging tables."
+}