summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2005-05-11 21:34:23 +0000
committerMasatomo Nakano <nakano@gentoo.org>2005-05-11 21:34:23 +0000
commit78561fec35f7c7172375262ff3b9b4c570b2335e (patch)
tree472e0917c092c6af79b1db2628df9fb4c654cee6 /dev-db/slony1
parentFixed my SNAFU and closing bug #92294. (diff)
downloadgentoo-2-78561fec35f7c7172375262ff3b9b4c570b2335e.tar.gz
gentoo-2-78561fec35f7c7172375262ff3b9b4c570b2335e.tar.bz2
gentoo-2-78561fec35f7c7172375262ff3b9b4c570b2335e.zip
initial import
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'dev-db/slony1')
-rw-r--r--dev-db/slony1/ChangeLog11
-rw-r--r--dev-db/slony1/Manifest7
-rw-r--r--dev-db/slony1/files/digest-slony1-1.1.0_beta41
-rw-r--r--dev-db/slony1/files/slony1.conf11
-rwxr-xr-xdev-db/slony1/files/slony1.init37
-rw-r--r--dev-db/slony1/files/slony1_remove_jave.patch50
-rw-r--r--dev-db/slony1/metadata.xml5
-rw-r--r--dev-db/slony1/slony1-1.1.0_beta4.ebuild41
8 files changed, 163 insertions, 0 deletions
diff --git a/dev-db/slony1/ChangeLog b/dev-db/slony1/ChangeLog
new file mode 100644
index 000000000000..a0e91de8bc26
--- /dev/null
+++ b/dev-db/slony1/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-db/slony1
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/ChangeLog,v 1.1 2005/05/11 21:34:23 nakano Exp $
+
+*slony1-1.1.0_beta4 (11 May 2005)
+
+ 11 May 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/slony1_remove_jave.patch, +files/slony1.conf, +files/slony1.init,
+ +metadata.xml, +slony1-1.1.0_beta4.ebuild:
+ Initial import.
+
diff --git a/dev-db/slony1/Manifest b/dev-db/slony1/Manifest
new file mode 100644
index 000000000000..570dcd34b652
--- /dev/null
+++ b/dev-db/slony1/Manifest
@@ -0,0 +1,7 @@
+MD5 6023df5c852c46e928ba877180835422 slony1-1.1.0_beta4.ebuild 1053
+MD5 0e7908553340bdeb1732c66bfce6c765 ChangeLog 339
+MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
+MD5 7e0be4b4f25524dfd0d3118262a7b03c files/slony1.conf 245
+MD5 7b20d764f72e8e615bdad783d512971a files/slony1.init 614
+MD5 9b6f21cd1c27bef01c23ccfa2049b8cb files/digest-slony1-1.1.0_beta4 70
+MD5 1e14c40195d02127e32f8369db843873 files/slony1_remove_jave.patch 1431
diff --git a/dev-db/slony1/files/digest-slony1-1.1.0_beta4 b/dev-db/slony1/files/digest-slony1-1.1.0_beta4
new file mode 100644
index 000000000000..1433c2702fd1
--- /dev/null
+++ b/dev-db/slony1/files/digest-slony1-1.1.0_beta4
@@ -0,0 +1 @@
+MD5 5aa577e437a47d2d862464bce6840e86 slony1-1.1.0.beta4.tar.gz 626721
diff --git a/dev-db/slony1/files/slony1.conf b/dev-db/slony1/files/slony1.conf
new file mode 100644
index 000000000000..8c82b1cde625
--- /dev/null
+++ b/dev-db/slony1/files/slony1.conf
@@ -0,0 +1,11 @@
+# /etc/conf.d/slony1:
+# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/files/slony1.conf,v 1.1 2005/05/11 21:34:23 nakano Exp $
+
+# Configuration file for /etc/init.d/slony1
+
+USER=postgres
+DBUSER=postgres
+CLUSTER=your_cluster_name
+DBNAME=your_database_name
+LOGFILE=/var/lib/postgresql/data/slony1.log
+LOGLEVEL=1 # 1(minimum)..4(maximum)
diff --git a/dev-db/slony1/files/slony1.init b/dev-db/slony1/files/slony1.init
new file mode 100755
index 000000000000..b6bb3d3614e6
--- /dev/null
+++ b/dev-db/slony1/files/slony1.init
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/files/slony1.init,v 1.1 2005/05/11 21:34:23 nakano Exp $
+
+depend() {
+ need postgresql
+}
+
+start() {
+ ebegin "Starting slony1"
+ /usr/bin/slon -p /var/run/slony1.pid -d $LOGLEVEL $CLUSTER "dbname=$DBNAME user=$DBUSER" >> $LOGFILE 2>&1 &
+
+ while :
+ do
+ cnt=$(($cnt + 1))
+ if [ -f "/var/run/slony1.pid" ]; then
+ ret=0
+ break
+ fi
+
+ if [ $cnt -eq 30 ]; then
+ eerror "Please see log file: $LOGFILE"
+ ret=1
+ break
+ fi
+ sleep 1
+ done
+ eend $ret
+}
+
+stop() {
+ ebegin "Stopping slony1"
+ kill `cat /var/run/slony1.pid`
+ eend $?
+}
+
diff --git a/dev-db/slony1/files/slony1_remove_jave.patch b/dev-db/slony1/files/slony1_remove_jave.patch
new file mode 100644
index 000000000000..a33568299466
--- /dev/null
+++ b/dev-db/slony1/files/slony1_remove_jave.patch
@@ -0,0 +1,50 @@
+diff -Naru slony1-1.1.0.beta4.org/configure slony1-1.1.0.beta4/configure
+--- slony1-1.1.0.beta4.org/configure 2005-04-06 20:00:54.000000000 +0100
++++ slony1-1.1.0.beta4/configure 2005-05-11 20:44:49.000000000 +0100
+@@ -9563,46 +9563,6 @@
+ test -n "$NSGMLS" && break
+ done
+
+-for ac_prog in openjade jade
+-do
+- # Extract the first word of "$ac_prog", so it can be a program name with args.
+-set dummy $ac_prog; ac_word=$2
+-echo "$as_me:$LINENO: checking for $ac_word" >&5
+-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+-if test "${ac_cv_prog_JADE+set}" = set; then
+- echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+- if test -n "$JADE"; then
+- ac_cv_prog_JADE="$JADE" # Let the user override the test.
+-else
+-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in $PATH
+-do
+- IFS=$as_save_IFS
+- test -z "$as_dir" && as_dir=.
+- for ac_exec_ext in '' $ac_executable_extensions; do
+- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+- ac_cv_prog_JADE="$ac_prog"
+- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+- break 2
+- fi
+-done
+-done
+-
+-fi
+-fi
+-JADE=$ac_cv_prog_JADE
+-if test -n "$JADE"; then
+- echo "$as_me:$LINENO: result: $JADE" >&5
+-echo "${ECHO_T}$JADE" >&6
+-else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+-fi
+-
+- test -n "$JADE" && break
+-done
+-
+
+ echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
+ echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
diff --git a/dev-db/slony1/metadata.xml b/dev-db/slony1/metadata.xml
new file mode 100644
index 000000000000..309b51e9a965
--- /dev/null
+++ b/dev-db/slony1/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>postgresql</herd>
+</pkgmetadata>
diff --git a/dev-db/slony1/slony1-1.1.0_beta4.ebuild b/dev-db/slony1/slony1-1.1.0_beta4.ebuild
new file mode 100644
index 000000000000..5fe1ed02dc82
--- /dev/null
+++ b/dev-db/slony1/slony1-1.1.0_beta4.ebuild
@@ -0,0 +1,41 @@
+# 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_beta4.ebuild,v 1.1 2005/05/11 21:34:23 nakano Exp $
+
+inherit eutils
+
+IUSE=""
+
+DESCRIPTION="A replication system for the PostgreSQL Database Management System"
+HOMEPAGE="http://slony.info/"
+MY_PV=${PV/_beta/.beta}
+MY_P=${PN}-${MY_PV}
+SRC_URI="http://developer.postgresql.org/~wieck/slony1/download/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="dev-db/postgresql"
+
+S=${WORKDIR}/${MY_P}
+src_compile() {
+ # temporary
+ epatch ${FILESDIR}/slony1_remove_jave.patch
+
+ econf --with-pgincludedir=/usr/include/postgresql/pgsql \
+ --with-pgincludeserverdir=/usr/include/postgresql/server || die
+ emake || die
+}
+
+src_install() {
+ einstall DESTDIR=${D} || die
+ dodoc README SAMPLE doc/howto/*.txt
+ dohtml doc/howto/*.html
+
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/slony1.init slony1 || die
+
+ insinto /etc/conf.d/
+ newins ${FILESDIR}/slony1.conf slony1 || die
+}