summaryrefslogtreecommitdiff
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) (unidiff)
tree9c176002ab4cea34390fc7bf0d31e17fcccbfe41
parentdbab03af46353cb4067704e6107e10980730f70b (diff)
downloadasylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.zip
asylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.tar.gz
asylum-5f6b68f1d187afe568c4af760f8c6c22dabfb036.tar.bz2
www-misc/pglogd
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--profiles/categories1
-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
6 files changed, 112 insertions, 0 deletions
diff --git a/profiles/categories b/profiles/categories
index 86eac3d..e6b12bd 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -1 +1,2 @@
1net-www 1net-www
2www-misc
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 @@
1AUX pglogd-2.3-path.patch 525 RMD160 8d851d213fc6fb63948764c2c16f5fb622641116 SHA1 ee6071e44aad6646af1ddbc6e21fd69701fb648a SHA256 d558053cff27f73f01e6e377aeb81ac210a4d6d94dcdc62aefb40e6551a750ff
2MD5 dbda5e5f91ca13caf6d53247ad0cfb42 files/pglogd-2.3-path.patch 525
3RMD160 8d851d213fc6fb63948764c2c16f5fb622641116 files/pglogd-2.3-path.patch 525
4SHA256 d558053cff27f73f01e6e377aeb81ac210a4d6d94dcdc62aefb40e6551a750ff files/pglogd-2.3-path.patch 525
5AUX pglogd.init 556 RMD160 14bfef8724dff6f8d9700da96f1cebea9e0194d2 SHA1 e15563f24f8faa88fa213fbf3ba61ef71594fd27 SHA256 bb344e9fc2eb9396b356fdc8df859ec498832fe7ec500942c74a5d5cb75ef349
6MD5 0c77083bcb07ead78c786540e9d7a386 files/pglogd.init 556
7RMD160 14bfef8724dff6f8d9700da96f1cebea9e0194d2 files/pglogd.init 556
8SHA256 bb344e9fc2eb9396b356fdc8df859ec498832fe7ec500942c74a5d5cb75ef349 files/pglogd.init 556
9DIST pglogd-2.3.tar.gz 22796 RMD160 7e9264af8130b3fb5bd3dc89718fb4dfa28e1ec6 SHA1 0c792026eed7ba683f737f38b6c95e8eeb01a706 SHA256 2a0e81cc0e0ab3132a48f11834908fdc6b8e4d70c0e6c12dff8815bc93582e78
10EBUILD pglogd-2.3.ebuild 1583 RMD160 305a0fef813873507436d5be0dc2d0109bac5454 SHA1 e6bfbaf5ed816ea5497eee09e4246f0b16a773ca SHA256 79678ff71f55ec56496b5cefa0a059a7b5946ccd3934b977e016cb49af5fc06e
11MD5 da3c878f0fa22e4026fd9fcb6a6d6889 pglogd-2.3.ebuild 1583
12RMD160 305a0fef813873507436d5be0dc2d0109bac5454 pglogd-2.3.ebuild 1583
13SHA256 79678ff71f55ec56496b5cefa0a059a7b5946ccd3934b977e016cb49af5fc06e pglogd-2.3.ebuild 1583
14MD5 57dd081bef39489a3abd164e2fdcaafc files/digest-pglogd-2.3 229
15RMD160 97992217a4d902e335465f98f88cbd99d976b48b files/digest-pglogd-2.3 229
16SHA256 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 @@
1MD5 49e494598d1502cf2a20356146fab654 pglogd-2.3.tar.gz 22796
2RMD160 7e9264af8130b3fb5bd3dc89718fb4dfa28e1ec6 pglogd-2.3.tar.gz 22796
3SHA256 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 @@
1 --- pglogd.h.orig2005-04-26 18:51:47.000000000 +0200
2 +++ pglogd.h2005-04-26 18:52:20.000000000 +0200
3@@ -75,7 +75,7 @@
4 #define FIFO "/tmp/.f.PGLOGD" /* FIFO file. */
5 #define LOGFILE "/var/log/pglogd.log"/* File the daemon will log to. */
6
7-#define OVERFLOWFILE "/usr/site/logs/pglogd_overflow"
8+#define OVERFLOWFILE "/var/log/pglogd_overflow.log"
9 #define OVERFLOW_WARNING 100 /* Write a warning to the log every n entries in the overflow log. */
10
11 #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 @@
1#!/sbin/runscript
2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/www-misc/pglogd/files/pglogd.init,v 1.1 2005/05/10 05:07:57 nakano Exp $
5
6depend() {
7 before apache apache2
8}
9
10start() {
11 ebegin "Starting pglogd"
12 start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/pglogd.pid --exec /usr/sbin/pglogd -- -c /etc/pglogd.conf
13 eend $?
14}
15
16stop() {
17 ebegin "Stopping pglogd"
18 start-stop-daemon --stop --quiet --pidfile /var/run/pglogd.pid
19 eend $?
20}
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 @@
1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit eutils postgresql
6
7DESCRIPTION="pgLOGd writes web server log entries to a PostgreSQL database"
8HOMEPAGE="http://www.digitalstratum.com/pglogd/"
9SRC_URI="http://www.digitalstratum.com/pglogd/${P}.tar.gz"
10
11LICENSE="BSD"
12SLOT="0"
13KEYWORDS="~x86 ~amd64"
14IUSE=""
15
16DEPEND="dev-db/postgresql-libs"
17
18src_unpack() {
19 unpack ${A}
20 cd ${S}
21 epatch ${FILESDIR}/${P}-path.patch
22}
23
24src_compile() {
25 local pgconfig=$(postgresql_get_pgconfig)
26 emake COPTS= \
27 CFLAGS="${CFLAGS} -I$(${pgconfig} --includedir)" \
28 LDFLAGS="${LDFLAGS} -L$(${pgconfig} --libdir)" \
29 || die "emake failed"
30}
31
32src_install() {
33 dobin pglogctl
34 dosbin pglogd
35 dodoc CHANGELOG README pglogd_tables.sql weblog_daily.sql queries.txt pglogd.conf
36
37 insinto /etc
38 doins pglogd.conf
39
40 exeinto /etc/init.d
41 newexe ${FILESDIR}/pglogd.init pglogd
42}
43
44pkg_postinst() {
45 echo
46 einfo "Create a database on PostgreSQL server,"
47 einfo "default name pglogd, but call it what you want,"
48 einfo "and create the required tables within the database. An SQL script is"
49 einfo "included with the source /usr/share/doc/${PF}/pglogd_tables.sql.gz"
50 einfo "to accomplish this:"
51 einfo
52 einfo " # su - postgres"
53 einfo " $ createdb pglogd"
54 einfo " $ zcat /usr/share/doc/${PF}/pglogd_tables.sql.gz | psql pglogd"
55 einfo " $ exit"
56 einfo
57 einfo "Then, you need to edit /etc/pglogd.conf against your enviroment."
58 einfo "Finally, start up pglogd."
59 einfo " # /etc/init.d/pglogd start before apache server."
60 echo
61}