diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2005-04-21 10:20:56 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2005-04-21 10:20:56 +0000 |
commit | da3e40e6ed1ed7ed3aa2e74c2fb563615941db91 (patch) | |
tree | f3f5285b7f975a6784f5fb6a194a4ed1030acade /www-apache | |
parent | Stable for x86 (diff) | |
download | historical-da3e40e6ed1ed7ed3aa2e74c2fb563615941db91.tar.gz historical-da3e40e6ed1ed7ed3aa2e74c2fb563615941db91.tar.bz2 historical-da3e40e6ed1ed7ed3aa2e74c2fb563615941db91.zip |
initial import
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'www-apache')
10 files changed, 166 insertions, 0 deletions
diff --git a/www-apache/mod_accounting/ChangeLog b/www-apache/mod_accounting/ChangeLog new file mode 100644 index 000000000000..35f071606c42 --- /dev/null +++ b/www-apache/mod_accounting/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for www-apache/mod_accounting +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_accounting/ChangeLog,v 1.1 2005/04/21 10:20:56 hollow Exp $ + +*mod_accounting-0.5 (21 Apr 2005) + + 21 Apr 2005; Benedikt Boehm <hollow@gentoo.org> + +files/mod_accounting-0.5-all.patch, +files/mod_accounting-0.5-fix.patch, + +files/mod_accounting-0.5-mysql.patch, + +files/mod_accounting-0.5-pgsql.patch, +files/10_mod_accounting.conf, + +metadata.xml, +mod_accounting-0.5.ebuild: + Initial import. Ebuild submitted by Anatoly Shipitsin <sauron@infocentr.ru> + diff --git a/www-apache/mod_accounting/Manifest b/www-apache/mod_accounting/Manifest new file mode 100644 index 000000000000..f2c3022a7016 --- /dev/null +++ b/www-apache/mod_accounting/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 af82fb3b8a7f4b427606958cbef4459a mod_accounting-0.5.ebuild 1343 +MD5 0d18f0fe5d603b41b988373892caf195 metadata.xml 226 +MD5 738044f6451f2f6ad3f3472ceb8e5253 ChangeLog 622 +MD5 2148fe5dd97e63ce3c4a296288af45a4 files/10_mod_accounting.conf 407 +MD5 58a216778f044115abfdcd1408919298 files/mod_accounting-0.5-all.patch 620 +MD5 86999fe7b606ac09d34b12fc842be634 files/mod_accounting-0.5-fix.patch 505 +MD5 388d4a516dce21a765d9d130ed361fe3 files/mod_accounting-0.5-mysql.patch 598 +MD5 98aaf9bc748c614b9c74ddc522d3b8e1 files/mod_accounting-0.5-pgsql.patch 605 +MD5 a6c50c342450f5c0cafb1d2bc9311258 files/digest-mod_accounting-0.5 68 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCZ369mPFBzbX68WERAtyBAJ48w9Ku5MKX3shYXXN+hPDCvZejsgCfcxWn +kwbd0Z9zm0qMSXa/miOrLkQ= +=JNX7 +-----END PGP SIGNATURE----- diff --git a/www-apache/mod_accounting/files/10_mod_accounting.conf b/www-apache/mod_accounting/files/10_mod_accounting.conf new file mode 100644 index 000000000000..35365353f595 --- /dev/null +++ b/www-apache/mod_accounting/files/10_mod_accounting.conf @@ -0,0 +1,12 @@ +<IfDefine ACCOUNTING> + LoadModule accounting_module modules/mod_accounting.so +</IfDefine> + +<IfModule mod_accounting.c> + AccountingDatabase accounting + AccountingQueryFmt "INSERT INTO ipaccounting ( tstamp, host, bytesin, bytesout) VALUES( NOW() , '%h', %r, %s )" + AccountingDatabaseDriver mysql + AccountingDBHost localhost 3306 + AccountingLoginInfo apache apacheagent + AccountingTimedUpdates 30 +</IfModule> diff --git a/www-apache/mod_accounting/files/digest-mod_accounting-0.5 b/www-apache/mod_accounting/files/digest-mod_accounting-0.5 new file mode 100644 index 000000000000..37ad3f11a538 --- /dev/null +++ b/www-apache/mod_accounting/files/digest-mod_accounting-0.5 @@ -0,0 +1 @@ +MD5 fc045bbdc5ae32241765fea2967a63fb mod_accounting-0.5.tar.gz 9728 diff --git a/www-apache/mod_accounting/files/mod_accounting-0.5-all.patch b/www-apache/mod_accounting/files/mod_accounting-0.5-all.patch new file mode 100644 index 000000000000..ccc3e094b603 --- /dev/null +++ b/www-apache/mod_accounting/files/mod_accounting-0.5-all.patch @@ -0,0 +1,15 @@ +diff -ruN mod_accounting-0.5.orig/Makefile mod_accounting-0.5/Makefile +--- mod_accounting-0.5.orig/Makefile 2001-12-30 19:11:43.000000000 +0500 ++++ mod_accounting-0.5/Makefile 2005-04-13 13:21:31.545792008 +0600 +@@ -10,8 +10,8 @@ + + # here's what you may need to change + DEF=-DNEED_POSTGRES -DNEED_MYSQL +-INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/ +-LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient ++INC=-I/usr/include/postgresql/pgsql/ -I/usr/include/mysql/ ++LIB=-L/usr/lib/postgresql/ -lpq -L/usr/lib/mysql/ -lmysqlclient + + # the default target + all: mod_accounting.so +
\ No newline at end of file diff --git a/www-apache/mod_accounting/files/mod_accounting-0.5-fix.patch b/www-apache/mod_accounting/files/mod_accounting-0.5-fix.patch new file mode 100644 index 000000000000..ce990400e6b7 --- /dev/null +++ b/www-apache/mod_accounting/files/mod_accounting-0.5-fix.patch @@ -0,0 +1,15 @@ +diff -ruN mod_accounting-0.5.orig/mod_accounting.c mod_accounting-0.5/mod_accounting.c +--- mod_accounting-0.5.orig/mod_accounting.c 2002-09-08 21:17:22.000000000 +0600 ++++ mod_accounting-0.5/mod_accounting.c 2005-04-13 13:02:53.772719344 +0600 +@@ -217,8 +217,9 @@ + int i, found = 0; + char *ptr = arg; + +- while( *ptr ) +- *ptr++ = tolower( *ptr ); ++// it's not need ++// while( *ptr ) ++// *ptr++ = tolower( *ptr ); + + // let's see if we have the requested driver + for( i = 0; i < DB_MAX; i++ ) diff --git a/www-apache/mod_accounting/files/mod_accounting-0.5-mysql.patch b/www-apache/mod_accounting/files/mod_accounting-0.5-mysql.patch new file mode 100644 index 000000000000..240fe5b24091 --- /dev/null +++ b/www-apache/mod_accounting/files/mod_accounting-0.5-mysql.patch @@ -0,0 +1,17 @@ +diff -ruN mod_accounting-0.5.orig/Makefile mod_accounting-0.5/Makefile +--- mod_accounting-0.5.orig/Makefile 2001-12-30 19:11:43.000000000 +0500 ++++ mod_accounting-0.5/Makefile 2005-04-13 13:24:38.427381688 +0600 +@@ -9,9 +9,10 @@ + APACHECTL=apachectl + + # here's what you may need to change +-DEF=-DNEED_POSTGRES -DNEED_MYSQL +-INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/ +-LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient ++DEF=-DNEED_MYSQL ++INC=-I/usr/include/mysql/ ++LIB=-L/usr/lib/mysql/ -lmysqlclient ++ + + # the default target + all: mod_accounting.so diff --git a/www-apache/mod_accounting/files/mod_accounting-0.5-pgsql.patch b/www-apache/mod_accounting/files/mod_accounting-0.5-pgsql.patch new file mode 100644 index 000000000000..3df0ef710106 --- /dev/null +++ b/www-apache/mod_accounting/files/mod_accounting-0.5-pgsql.patch @@ -0,0 +1,16 @@ +diff -ruN mod_accounting-0.5.orig/Makefile mod_accounting-0.5/Makefile +--- mod_accounting-0.5.orig/Makefile 2001-12-30 19:11:43.000000000 +0500 ++++ mod_accounting-0.5/Makefile 2005-04-13 13:23:18.489534088 +0600 +@@ -9,9 +9,9 @@ + APACHECTL=apachectl + + # here's what you may need to change +-DEF=-DNEED_POSTGRES -DNEED_MYSQL +-INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/ +-LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient ++DEF=-DNEED_POSTGRES ++INC=-I/usr/include/postgresql/pgsql/ ++LIB=-L/usr/lib/postgresql/ -lpq + + # the default target + all: mod_accounting.so diff --git a/www-apache/mod_accounting/metadata.xml b/www-apache/mod_accounting/metadata.xml new file mode 100644 index 000000000000..10510cb8be95 --- /dev/null +++ b/www-apache/mod_accounting/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>apache</herd> +<maintainer> + <email>apache-devs@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/www-apache/mod_accounting/mod_accounting-0.5.ebuild b/www-apache/mod_accounting/mod_accounting-0.5.ebuild new file mode 100644 index 000000000000..10a20a3ab1c2 --- /dev/null +++ b/www-apache/mod_accounting/mod_accounting-0.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_accounting/mod_accounting-0.5.ebuild,v 1.1 2005/04/21 10:20:56 hollow Exp $ + +inherit eutils apache-module + +DESCRIPTION="This apache module is intended for doing traffic account." +HOMEPAGE="http://mod-acct.sourceforge.net/" +SRC_URI="mirror://sourceforge/mod-acct/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="mysql postgres" + +DEPEND="mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql )" + +APACHE1_MOD_CONF="10_${PN}" +APACHE1_MOD_DEFINE="ACCOUNTING" + +DOCFILES="ChangeLog README LICENSE FAQ.txt schema.sql" + +need_apache1 + +src_unpack(){ + unpack ${A} || die "unpack failed" + cd ${S} || die "cd to \$S failed" + + if use mysql; then + epatch ${FILESDIR}/mod_accounting-0.5-mysql.patch + elif use postgres; then + epatch ${FILESDIR}/mod_accounting-0.5-pgsql.patch + elif use mysql && use postgres; then + epatch ${FILESDIR}/mod_accounting-0.5-all.patch + else + die "choose at least one of mysql or postgres as database driver" + fi + + epatch ${FILESDIR}/mod_accounting-0.5-fix.patch +} + +src_compile() { + 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" +} |