summaryrefslogtreecommitdiff
path: root/www-misc/pglogd
authorMichael Krelin <hacker@klever.net>2007-02-21 00:35:18 (UTC)
committer Michael Krelin <hacker@klever.net>2007-02-21 00:35:18 (UTC)
commit5f6b68f1d187afe568c4af760f8c6c22dabfb036 (patch) (side-by-side diff)
tree9c176002ab4cea34390fc7bf0d31e17fcccbfe41 /www-misc/pglogd
parentdbab03af46353cb4067704e6107e10980730f70b (diff)
downloadasylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.zip
asylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.tar.gz
asylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.tar.bz2
www-misc/pglogd
Diffstat (limited to 'www-misc/pglogd') (more/less context) (ignore whitespace changes)
-rw-r--r--www-misc/pglogd/Manifest16
-rw-r--r--www-misc/pglogd/files/digest-pglogd-2.33
-rw-r--r--www-misc/pglogd/files/pglogd-2.3-path.patch11
-rw-r--r--www-misc/pglogd/files/pglogd.init20
-rw-r--r--www-misc/pglogd/pglogd-2.3.ebuild61
5 files changed, 111 insertions, 0 deletions
diff --git a/www-misc/pglogd/Manifest b/www-misc/pglogd/Manifest
new file mode 100644
index 0000000..f906669
--- a/dev/null
+++ b/www-misc/pglogd/Manifest
@@ -0,0 +1,16 @@
+AUX pglogd-2.3-path.patch 525 RMD160 8d851d213fc6fb63948764c2c16f5fb622641116 SHA1 ee6071e44aad6646af1ddbc6e21fd69701fb648a SHA256 d558053cff27f73f01e6e377aeb81ac210a4d6d94dcdc62aefb40e6551a750ff
+MD5 dbda5e5f91ca13caf6d53247ad0cfb42 files/pglogd-2.3-path.patch 525
+RMD160 8d851d213fc6fb63948764c2c16f5fb622641116 files/pglogd-2.3-path.patch 525
+SHA256 d558053cff27f73f01e6e377aeb81ac210a4d6d94dcdc62aefb40e6551a750ff files/pglogd-2.3-path.patch 525
+AUX pglogd.init 556 RMD160 14bfef8724dff6f8d9700da96f1cebea9e0194d2 SHA1 e15563f24f8faa88fa213fbf3ba61ef71594fd27 SHA256 bb344e9fc2eb9396b356fdc8df859ec498832fe7ec500942c74a5d5cb75ef349
+MD5 0c77083bcb07ead78c786540e9d7a386 files/pglogd.init 556
+RMD160 14bfef8724dff6f8d9700da96f1cebea9e0194d2 files/pglogd.init 556
+SHA256 bb344e9fc2eb9396b356fdc8df859ec498832fe7ec500942c74a5d5cb75ef349 files/pglogd.init 556
+DIST pglogd-2.3.tar.gz 22796 RMD160 7e9264af8130b3fb5bd3dc89718fb4dfa28e1ec6 SHA1 0c792026eed7ba683f737f38b6c95e8eeb01a706 SHA256 2a0e81cc0e0ab3132a48f11834908fdc6b8e4d70c0e6c12dff8815bc93582e78
+EBUILD pglogd-2.3.ebuild 1583 RMD160 305a0fef813873507436d5be0dc2d0109bac5454 SHA1 e6bfbaf5ed816ea5497eee09e4246f0b16a773ca SHA256 79678ff71f55ec56496b5cefa0a059a7b5946ccd3934b977e016cb49af5fc06e
+MD5 da3c878f0fa22e4026fd9fcb6a6d6889 pglogd-2.3.ebuild 1583
+RMD160 305a0fef813873507436d5be0dc2d0109bac5454 pglogd-2.3.ebuild 1583
+SHA256 79678ff71f55ec56496b5cefa0a059a7b5946ccd3934b977e016cb49af5fc06e pglogd-2.3.ebuild 1583
+MD5 57dd081bef39489a3abd164e2fdcaafc files/digest-pglogd-2.3 229
+RMD160 97992217a4d902e335465f98f88cbd99d976b48b files/digest-pglogd-2.3 229
+SHA256 9285caadb485172af13e97753da56c563269e1afba752a505e70a330a8efd400 files/digest-pglogd-2.3 229
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 0000000..1d5af03
--- a/dev/null
+++ b/www-misc/pglogd/files/digest-pglogd-2.3
@@ -0,0 +1,3 @@
+MD5 49e494598d1502cf2a20356146fab654 pglogd-2.3.tar.gz 22796
+RMD160 7e9264af8130b3fb5bd3dc89718fb4dfa28e1ec6 pglogd-2.3.tar.gz 22796
+SHA256 2a0e81cc0e0ab3132a48f11834908fdc6b8e4d70c0e6c12dff8815bc93582e78 pglogd-2.3.tar.gz 22796
diff --git a/www-misc/pglogd/files/pglogd-2.3-path.patch b/www-misc/pglogd/files/pglogd-2.3-path.patch
new file mode 100644
index 0000000..04d2931
--- a/dev/null
+++ b/www-misc/pglogd/files/pglogd-2.3-path.patch
@@ -0,0 +1,11 @@
+--- pglogd.h.orig 2005-04-26 18:51:47.000000000 +0200
++++ pglogd.h 2005-04-26 18:52:20.000000000 +0200
+@@ -75,7 +75,7 @@
+ #define FIFO "/tmp/.f.PGLOGD" /* FIFO file. */
+ #define LOGFILE "/var/log/pglogd.log" /* File the daemon will log to. */
+
+-#define OVERFLOWFILE "/usr/site/logs/pglogd_overflow"
++#define OVERFLOWFILE "/var/log/pglogd_overflow.log"
+ #define OVERFLOW_WARNING 100 /* Write a warning to the log every n entries in the overflow log. */
+
+ #define MAXSELECTDELAY 30 /* Max time select() will block. */
diff --git a/www-misc/pglogd/files/pglogd.init b/www-misc/pglogd/files/pglogd.init
new file mode 100644
index 0000000..ce7108f
--- a/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/pglogd-2.3.ebuild b/www-misc/pglogd/pglogd-2.3.ebuild
new file mode 100644
index 0000000..dad9a04
--- a/dev/null
+++ b/www-misc/pglogd/pglogd-2.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils postgresql
+
+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 ~amd64"
+IUSE=""
+
+DEPEND="dev-db/postgresql-libs"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-path.patch
+}
+
+src_compile() {
+ local pgconfig=$(postgresql_get_pgconfig)
+ emake COPTS= \
+ CFLAGS="${CFLAGS} -I$(${pgconfig} --includedir)" \
+ LDFLAGS="${LDFLAGS} -L$(${pgconfig} --libdir)" \
+ || die "emake failed"
+}
+
+src_install() {
+ dobin pglogctl
+ dosbin pglogd
+ dodoc CHANGELOG README pglogd_tables.sql weblog_daily.sql queries.txt pglogd.conf
+
+ 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
+}