# $Id: Portfile,v 1.4 2006/05/16 06:09:49 mww Exp $

PortSystem 1.0

name		pgpool
version		3.0.1
categories	databases
platforms	darwin
maintainers	mww@opendarwin.org
description		PostgreSQL connection pool server
long_description	pgpool is a connection server program for PostgreSQL. \
			It runs between PostgreSQL's client(frontend) and \
			server(backend). Any PostgreSQL clients can connect to \
			pgpool as if it's a real PostgreSQL server. It \
			supports connection pooling, failover and replication.

homepage		http://pgpool.projects.postgresql.org/
master_sites	http://pgfoundry.org/frs/download.php/733/ freebsd
dist_subdir		${name}/${version}
checksums		sha1 3f55e72626e81b1d2ea61457ad81d2a53b93ccfc

configure.args	--bindir=${prefix}/sbin --mandir=${prefix}/share/man \
		--sysconfdir=${prefix}/etc/${name}

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS \
		README README.euc_jp TODO ${destroot}${prefix}/share/doc/${name}
}

