blob: f256ddd7f38d2a438ccabf06662cf04243cbb572 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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.1.1 2005/11/30 09:45:16 chriswhite 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
}
|