summaryrefslogtreecommitdiff
blob: 3a8983aca142d6a1d90a5bf6cc041332807d28fa (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/slony1-1.1.0_rc1.ebuild,v 1.3 2005/06/29 16:09:52 nakano Exp $

inherit eutils

IUSE=""

MY_P=${P/_/.}
DESCRIPTION="A replication system for the PostgreSQL Database Management System"
HOMEPAGE="http://slony.info/"
SRC_URI="http://developer.postgresql.org/~wieck/slony1/download/${MY_P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"

DEPEND="dev-db/postgresql"

S=${WORKDIR}/${P/_/-}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/slony1_remove_jave.patch
}

src_compile() {
	econf --with-pgincludedir=/usr/include/postgresql/pgsql \
		--with-pgincludeserverdir=/usr/include/postgresql/server || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	dodoc HISTORY-1.1 INSTALL README SAMPLE TODO UPGRADING doc/howto/*.txt
	dohtml doc/howto/*.html

	newinitd ${FILESDIR}/slony1.init slony1 || die

	insinto /etc/conf.d/
	newconfd ${FILESDIR}/slony1.conf slony1 || die
}