summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2005-05-10 05:07:57 +0000
committerMasatomo Nakano <nakano@gentoo.org>2005-05-10 05:07:57 +0000
commitc63a9152f6610c34cb5878036a7b15249362ef7c (patch)
tree8a922578cb992fd1b9957475cb3dd49a994a71d4 /www-misc
parentadded pglogd for testing (diff)
downloadhistorical-c63a9152f6610c34cb5878036a7b15249362ef7c.tar.gz
historical-c63a9152f6610c34cb5878036a7b15249362ef7c.tar.bz2
historical-c63a9152f6610c34cb5878036a7b15249362ef7c.zip
initial import
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/pglogd/ChangeLog10
-rw-r--r--www-misc/pglogd/Manifest6
-rw-r--r--www-misc/pglogd/files/Makefile.patch22
-rw-r--r--www-misc/pglogd/files/digest-pglogd-2.31
-rw-r--r--www-misc/pglogd/files/pglogd.init20
-rw-r--r--www-misc/pglogd/metadata.xml5
-rw-r--r--www-misc/pglogd/pglogd-2.3.ebuild53
7 files changed, 117 insertions, 0 deletions
diff --git a/www-misc/pglogd/ChangeLog b/www-misc/pglogd/ChangeLog
new file mode 100644
index 000000000000..be7ee01a29e9
--- /dev/null
+++ b/www-misc/pglogd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-misc/pglogd
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/pglogd/ChangeLog,v 1.1 2005/05/10 05:07:57 nakano Exp $
+
+*pglogd-2.3 (10 May 2005)
+
+ 10 May 2005; Masatomo Nakano <nakano@gentoo.org> +files/Makefile.patch,
+ +files/pglogd.init, +metadata.xml, +pglogd-2.3.ebuild:
+ Initial import. build submitted by Jochen Schalanda <jochen@schalanda.de>.
+
diff --git a/www-misc/pglogd/Manifest b/www-misc/pglogd/Manifest
new file mode 100644
index 000000000000..26dcfb660c51
--- /dev/null
+++ b/www-misc/pglogd/Manifest
@@ -0,0 +1,6 @@
+MD5 bbd1c3da6b1c9d18fb622feffa4bad9d pglogd-2.3.ebuild 1444
+MD5 9e71078b9e64c8294d152222cbbcfc6c ChangeLog 439
+MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
+MD5 e67442dd9e4759ae981da63dce507e25 files/digest-pglogd-2.3 61
+MD5 12e3988f7380e90f2e3a6a6fd9e87598 files/Makefile.patch 516
+MD5 0c77083bcb07ead78c786540e9d7a386 files/pglogd.init 556
diff --git a/www-misc/pglogd/files/Makefile.patch b/www-misc/pglogd/files/Makefile.patch
new file mode 100644
index 000000000000..19ed16e58f22
--- /dev/null
+++ b/www-misc/pglogd/files/Makefile.patch
@@ -0,0 +1,22 @@
+diff -u pglogd-2.3/Makefile.orig pglogd-2.3/Makefile
+--- pglogd-2.3/Makefile.orig 2003-11-05 19:41:01.000000000 +0100
++++ pglogd-2.3/Makefile 2005-04-24 13:53:25.000000000 +0200
+@@ -31,7 +31,7 @@
+ #
+
+ # Change this to your PostgreSQL install directroy.
+-PGDIR = /usr/local/pgsql
++PGDIR = /usr
+
+
+ ### NO NEED TO EDIT BELOW THIS LINE ###
+@@ -39,8 +39,8 @@
+ CC = gcc
+ COPTS = -O -Wall
+ LIBS = -lpq
+-CFLAGS = -I${PGDIR}/include
++CFLAGS = -I${PGDIR}/include/postgres
+ LDFLAGS = -L${PGDIR}/lib
+
+
+ SRCS_LOG = pglogd.c
diff --git a/www-misc/pglogd/files/digest-pglogd-2.3 b/www-misc/pglogd/files/digest-pglogd-2.3
new file mode 100644
index 000000000000..958b429551cd
--- /dev/null
+++ b/www-misc/pglogd/files/digest-pglogd-2.3
@@ -0,0 +1 @@
+MD5 49e494598d1502cf2a20356146fab654 pglogd-2.3.tar.gz 22796
diff --git a/www-misc/pglogd/files/pglogd.init b/www-misc/pglogd/files/pglogd.init
new file mode 100644
index 000000000000..ce7108fc96da
--- /dev/null
+++ b/www-misc/pglogd/files/pglogd.init
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/pglogd/files/pglogd.init,v 1.1 2005/05/10 05:07:57 nakano Exp $
+
+depend() {
+ before apache apache2
+}
+
+start() {
+ ebegin "Starting pglogd"
+ start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/pglogd.pid --exec /usr/sbin/pglogd -- -c /etc/pglogd.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pglogd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/pglogd.pid
+ eend $?
+}
diff --git a/www-misc/pglogd/metadata.xml b/www-misc/pglogd/metadata.xml
new file mode 100644
index 000000000000..309b51e9a965
--- /dev/null
+++ b/www-misc/pglogd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>postgresql</herd>
+</pkgmetadata>
diff --git a/www-misc/pglogd/pglogd-2.3.ebuild b/www-misc/pglogd/pglogd-2.3.ebuild
new file mode 100644
index 000000000000..7b62de44f6e9
--- /dev/null
+++ b/www-misc/pglogd/pglogd-2.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/pglogd/pglogd-2.3.ebuild,v 1.1 2005/05/10 05:07:57 nakano Exp $
+
+inherit eutils
+
+DESCRIPTION="pgLOGd writes web server log entries to a PostgreSQL database"
+HOMEPAGE="http://www.digitalstratum.com/pglogd/"
+SRC_URI="http://www.digitalstratum.com/pglogd/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-db/libpq"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/Makefile.patch
+}
+
+src_install() {
+ dobin pglogctl
+ dosbin pglogd
+ dodoc CHANGELOG README pglogd_tables.sql weblog_daily.sql queries.txt
+
+ insinto /etc
+ doins pglogd.conf
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/pglogd.init pglogd
+}
+
+pkg_postinst() {
+ echo ""
+ einfo "Create a database on PostgreSQL server, "
+ einfo "default name pglogd, but call it what you want,"
+ einfo "and create the required tables within the database. An SQL script is"
+ einfo "included with the source /usr/share/doc/${PF}/pglogd_tables.sql.gz"
+ einfo "to accomplish this:"
+ einfo ""
+ einfo " # su - postgres"
+ einfo " $ createdb pglogd"
+ einfo " $ zcat /usr/share/doc/${PF}/pglogd_tables.sql.gz | psql pglogd"
+ einfo " $ exit"
+ einfo ""
+ einfo "Then, you need to edit /etc/pglogd.conf against your enviroment."
+ einfo "Finally, start up pglogd."
+ einfo " # /etc/init.d/pglogd start before apache server."
+ echo ""
+}