ports/71642: new port: Slony-I

Dominic Mitchell dom at happygiraffe.net
Sun Sep 12 09:20:12 UTC 2004


>Number:         71642
>Category:       ports
>Synopsis:       new port: Slony-I
>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:   Sun Sep 12 09:20:11 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dominic Mitchell
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ppe.happygiraffe.net 6.0-CURRENT FreeBSD 6.0-CURRENT #6: Sat Sep 4 03:03:48 BST 2004 root at ppe.happygiraffe.net:/usr/obj/usr/src/sys/PPE i386


	PostgreSQL 7.4.5
>Description:
	This is a new port of Slony-I, a replication system for
        PostgreSQL.  There are a couple of points to note:

        1.  Slony needs a fully built PostgreSQL source tree available.

        2.  Slony dumps core under -CURRENT unless the MALLOC_OPTIONS
        are turned down.

        Both of these are dealt with in the port.
>How-To-Repeat:
	n/a
>Fix:
	Here's the port.

# 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:
#
#	slony
#	slony/pkg-descr
#	slony/Makefile
#	slony/distinfo
#	slony/pkg-message
#	slony/pkg-plist
#
echo c - slony
mkdir -p slony > /dev/null 2>&1
echo x - slony/pkg-descr
sed 's/^X//' >slony/pkg-descr << 'END-of-slony/pkg-descr'
XSlony-I is a "master to multiple slaves" replication system for
XPostgreSQL with cascading and failover.
X
XThe big picture for the development of Slony-I is a master-slave system
Xthat includes all features and capabilities needed to replicate large
Xdatabases to a reasonably limited number of slave systems.
X
XSlony-I is a system for data centers and backup sites, where the normal
Xmode of operation is that all nodes are available. 
X
XWWW: http://slony.info/
END-of-slony/pkg-descr
echo x - slony/Makefile
sed 's/^X//' >slony/Makefile << 'END-of-slony/Makefile'
X# New ports collection makefile for: Slony-I
X# Date created: 6 September 2004
X# Whom: dom+ports at happygiraffe.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	slony
XPORTVERSION=	1.0.2
XCATEGORIES=	databases
XMASTER_SITES=	http://developer.postgresql.org/~wieck/slony1/download/
XDISTNAME=	slony1-${PORTVERSION}
X
XMAINTAINER=	dom+ports at happygiraffe.net
XCOMMENT=	Slony-I --- A replication system for PostgreSQL
X
X# We need a fully built copy of the postgres source tree to build.  Note
X# that slony picks up most of its configuration from in here, so setting
X# things like CFLAGS for this port is a bad idea (if your PostgreSQL
X# source tree is already built).
XBUILD_DEPENDS=	${NONEXISTENT}:${PGPORT}:build
XRUN_DEPENDS=	postgres:${PGPORT}
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+= --with-pgsourcetree=${PGPORT_WRKSRC}
XUSE_GMAKE=	yes
X
X.include <bsd.port.pre.mk>
X
XPGPORT=		${PORTSDIR}/databases/postgresql7
XPGPORT_WRKSRC!=	cd ${PGPORT} && ${MAKE} -V WRKSRC
X
XDOCDIR=		${PREFIX}/share/doc/${PORTNAME}
X
X# 1) Avoid a warning during compile.
X# 2) Ensure that we use the supplied parser.c instead of rebuilding
X#    (FreeBSD has an older version of bison).
Xpre-build:
X	(cd ${WRKSRC}/src/slonik && flex -oscan.c scan.l)
X	${TOUCH} ${WRKSRC}/src/slonik/parser.c
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/HISTORY-1.0 ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/slonik_commands.html ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/slony-I-basic-mstr-slv.txt ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/slony-I-failover.txt ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/slony-I-install.txt ${DOCDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/howto/slony-I-overview.txt ${DOCDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X# vim: set noet :
X.include <bsd.port.post.mk>
END-of-slony/Makefile
echo x - slony/distinfo
sed 's/^X//' >slony/distinfo << 'END-of-slony/distinfo'
XMD5 (slony1-1.0.2.tar.gz) = 0ca6a4af061793a6d0a998a514ea50f7
XSIZE (slony1-1.0.2.tar.gz) = 322353
END-of-slony/distinfo
echo x - slony/pkg-message
sed 's/^X//' >slony/pkg-message << 'END-of-slony/pkg-message'
X
XNB: If you are using -CURRENT, this port will dump core unless you
Xdisable the malloc debugging options.  To do this, put this into the
Xshell script that calls slony:
X
X    MALLOC_OPTIONS=aj; export MALLOC_OPTIONS
X
END-of-slony/pkg-message
echo x - slony/pkg-plist
sed 's/^X//' >slony/pkg-plist << 'END-of-slony/pkg-plist'
Xbin/slon
Xbin/slonik
Xlib/postgresql/slony1_funcs.so
Xlib/postgresql/xxid.so
Xshare/doc/slony/HISTORY-1.0
Xshare/doc/slony/README
Xshare/doc/slony/slonik_commands.html
Xshare/doc/slony/slony-I-basic-mstr-slv.txt
Xshare/doc/slony/slony-I-failover.txt
Xshare/doc/slony/slony-I-install.txt
Xshare/doc/slony/slony-I-overview.txt
Xshare/postgresql/slony1_base.sql
Xshare/postgresql/slony1_base.v73.sql
Xshare/postgresql/slony1_base.v74.sql
Xshare/postgresql/slony1_funcs.sql
Xshare/postgresql/slony1_funcs.v73.sql
Xshare/postgresql/slony1_funcs.v74.sql
Xshare/postgresql/xxid.v73.sql
Xshare/postgresql/xxid.v74.sql
X at dirrm share/doc/slony
END-of-slony/pkg-plist
exit

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



More information about the freebsd-ports-bugs mailing list