Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2004 18:11:42 +0200
From:      Radim Kolar <hsn@netmag.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68245: [NEW PORT] databases/slony1: PostgreSQL master to multiple slaves replication system
Message-ID:  <E1BdALe-000PRT-5y@sanatana.dharma>
Resent-Message-ID: <200406231620.i5NGKGtS061853@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68245
>Category:       ports
>Synopsis:       [NEW PORT] databases/slony1: PostgreSQL master to multiple slaves replication system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 23 16:20:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2.1-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD sanatana.dharma 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #7: Mon May 10 17:15:51 CEST 2004
>Description:
Slony-I will be a "master to multiple slaves" replication
system with cascading and failover.

The big picture for the development of Slony-I is to build 
a master-slave system that includes all features and
capabilities needed to replicate large databases to a
reasonably limited number of slave systems.

Slony-I is planned as a system for data centers and backup
sites, where the normal mode of operation is that all nodes
are available.

WWW: http://www.slony.org/

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
There is one thing special in this port. Slony1 needs postgresql
source code as its own build dependency.
>Fix:

--- slony1-1.0.0.b3.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	slony1
#	slony1/Makefile
#	slony1/distinfo
#	slony1/pkg-descr
#	slony1/files
#	slony1/files/patch-builddocs
#	slony1/pkg-message
#
echo c - slony1
mkdir -p slony1 > /dev/null 2>&1
echo x - slony1/Makefile
sed 's/^X//' >slony1/Makefile << 'END-of-slony1/Makefile'
X# New ports collection makefile for:	slony1
X# Date created:		20 Jun 2004
X# Whom:			Radim Kolar
X#
X# $FreeBSD$
X#
X
XPORTNAME=	slony1
XPORTVERSION=	1.0.0.b3
XCATEGORIES=	databases
XMASTER_SITES=	http://developer.postgresql.org/~wieck/slony1/download/
XDISTNAME=	slony1-1.0.0.beta3
X
XMAINTAINER=	hsn@netmag.cz
XCOMMENT=	PostgreSQL master to multiple slaves replication system
X
XBUILD_DEPENDS=	${LOCALBASE}/bin/pnmtops:${PORTSDIR}/graphics/netpbm \
X		${LOCALBASE}/bin/djpeg:${PORTSDIR}/graphics/jpeg \
X		${LOCALBASE}/bin/ps2pdf:${PORTSDIR}/print/ghostscript-gnu \
X		${LOCALBASE}/bin/msgfmt:${PORTSDIR}/devel/gettext
XRUN_DEPENDS=	${LOCALBASE}/bin/postmaster:${PORTSDIR}/databases/postgresql7
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XCONFIGURE_ARGS=	--with-pgsourcetree=${PGSQL_SRC}
XPGSQL_SRC=	`ls -d ${WRKDIR}/pg/postgresql-*`
X
XPLIST_FILES=	bin/slon bin/slonik bin/slony_setup.pl \
X		lib/postgresql/slony1_funcs.so lib/postgresql/xxid.so \
X		share/postgresql/slony1_base.sql \
X		share/postgresql/slony1_funcs.sql \
X		share/postgresql/slony1_base.v73.sql \
X		share/postgresql/slony1_base.v74.sql \
X		share/postgresql/slony1_funcs.v73.sql \
X		share/postgresql/slony1_funcs.v74.sql \
X		share/postgresql/xxid.v73.sql \
X		share/postgresql/xxid.v74.sql
XPORTDOCS=	*.pdf howto/*.txt COPYRIGHT README
X
Xpost-extract:
X.ifdef(MAINTAINER_MODE)
X	cd ~/hacked/postgresql7 && ${MAKE} configure WRKDIR=${WRKDIR}/pg
X.else
X	cd ${PORTSDIR}/databases/postgresql7 && ${MAKE} configure WRKDIR=${WRKDIR}/pg
X.endif
X
Xpre-configure:
X	cd ${PGSQL_SRC}/src/interfaces/libpq && ${GMAKE} all
X	cd ${PGSQL_SRC}/src/port && ${GMAKE} all
X
Xdo-install:
X	cd ${WRKSRC} && ${GMAKE} install
X	${INSTALL_SCRIPT} ${WRKSRC}/tools/slony_setup.pl ${PREFIX}/bin
X.if ! defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/README ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/concept/Slony-I-concept.pdf ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/implementation/Slony-I-implementation.pdf ${DOCSDIR}
X	${MKDIR} ${DOCSDIR}/howto
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/*.txt ${DOCSDIR}/howto
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-slony1/Makefile
echo x - slony1/distinfo
sed 's/^X//' >slony1/distinfo << 'END-of-slony1/distinfo'
XMD5 (slony1-1.0.0.beta3.tar.gz) = ec82bf0a0374a232f87ff71ddfc7be7c
XSIZE (slony1-1.0.0.beta3.tar.gz) = 317494
END-of-slony1/distinfo
echo x - slony1/pkg-descr
sed 's/^X//' >slony1/pkg-descr << 'END-of-slony1/pkg-descr'
XSlony-I will be a "master to multiple slaves" replication
Xsystem with cascading and failover.
X
XThe big picture for the development of Slony-I is to build 
Xa master-slave system that includes all features and
Xcapabilities needed to replicate large databases to a
Xreasonably limited number of slave systems.
X
XSlony-I is planned as a system for data centers and backup
Xsites, where the normal mode of operation is that all nodes
Xare available.
X
XWWW: http://www.slony.org/
END-of-slony1/pkg-descr
echo c - slony1/files
mkdir -p slony1/files > /dev/null 2>&1
echo x - slony1/files/patch-builddocs
sed 's/^X//' >slony1/files/patch-builddocs << 'END-of-slony1/files/patch-builddocs'
X--- doc/Makefile.orig	Thu Mar 18 20:32:21 2004
X+++ doc/Makefile	Wed Jun 23 17:30:53 2004
X@@ -15,9 +15,9 @@
X 
X DISTFILES = Makefile
X 
X-all install installdirs:
X+install installdirs:
X 
X-clean distclean maintainer-clean:
X+all clean distclean maintainer-clean:
X 	for subdir in $(SUBDIRS) ; do \
X 		$(MAKE) -C $$subdir $@ ; \
X 	done
END-of-slony1/files/patch-builddocs
echo x - slony1/pkg-message
sed 's/^X//' >slony1/pkg-message << 'END-of-slony1/pkg-message'
XFor running slony you need:
X     slony system user
X     slony postgresql superuser
X     postgresql with TCP/IP communication enabled
X
XThere is a perl script slony_setup.pl which helps you to create initial
Xconfiguration. Installing this package do not makes any needed system
Xchanges.
END-of-slony1/pkg-message
exit
--- slony1-1.0.0.b3.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BdALe-000PRT-5y>