2004-06-28 22:07:53 +00:00
|
|
|
# New ports collection makefile for: slony1
|
|
|
|
# Date created: 20 Jun 2004
|
|
|
|
# Whom: Radim Kolar
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= slony1
|
2004-07-01 10:55:03 +00:00
|
|
|
PORTVERSION= 1.0.0.r1
|
2004-06-28 22:07:53 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/
|
2004-07-01 10:55:03 +00:00
|
|
|
DISTNAME= slony1-1.0.0.rc1
|
2004-06-28 22:07:53 +00:00
|
|
|
|
|
|
|
MAINTAINER= hsn@netmag.cz
|
|
|
|
COMMENT= PostgreSQL master to multiple slaves replication system
|
|
|
|
|
2004-07-01 10:55:03 +00:00
|
|
|
PGSQL_PORT= ${PORTSDIR}/databases/postgresql7
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PGSQL_PORT}:configure
|
2004-06-28 22:07:53 +00:00
|
|
|
.if ! defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/pnmtops:${PORTSDIR}/graphics/netpbm \
|
|
|
|
${LOCALBASE}/bin/djpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
${LOCALBASE}/bin/ps2pdf:${PORTSDIR}/print/ghostscript-gnu
|
|
|
|
.else
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-GNUmakefile.in
|
|
|
|
.endif
|
2004-07-01 10:55:03 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/postmaster:${PGSQL_PORT}
|
2004-06-28 22:07:53 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GMAKE= yes
|
2004-07-01 10:55:03 +00:00
|
|
|
PGSQL_SRC= `cd ${PGSQL_PORT}; make -V WRKSRC`
|
2004-06-28 22:07:53 +00:00
|
|
|
CONFIGURE_ARGS= --with-pgsourcetree=${PGSQL_SRC}
|
|
|
|
|
|
|
|
PLIST_FILES= bin/slon bin/slonik bin/slony_setup.pl \
|
|
|
|
lib/postgresql/slony1_funcs.so lib/postgresql/xxid.so \
|
|
|
|
share/postgresql/slony1_base.sql \
|
|
|
|
share/postgresql/slony1_funcs.sql \
|
|
|
|
share/postgresql/slony1_base.v73.sql \
|
|
|
|
share/postgresql/slony1_base.v74.sql \
|
|
|
|
share/postgresql/slony1_funcs.v73.sql \
|
|
|
|
share/postgresql/slony1_funcs.v74.sql \
|
|
|
|
share/postgresql/xxid.v73.sql \
|
|
|
|
share/postgresql/xxid.v74.sql
|
2004-07-01 10:55:03 +00:00
|
|
|
PORTDOCS= *.pdf howto/*.txt COPYRIGHT README slonik_commands.html
|
2004-06-28 22:07:53 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${PGSQL_SRC}/src/interfaces/libpq && ${GMAKE} all
|
|
|
|
cd ${PGSQL_SRC}/src/port && ${GMAKE} all
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${GMAKE} install
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/slony_setup.pl ${PREFIX}/bin
|
|
|
|
.if ! defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/concept/Slony-I-concept.pdf ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/implementation/Slony-I-implementation.pdf ${DOCSDIR}
|
|
|
|
${MKDIR} ${DOCSDIR}/howto
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/howto/*.txt ${DOCSDIR}/howto
|
2004-07-01 10:55:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/slonik/slonik_commands.html ${DOCSDIR}
|
2004-06-28 22:07:53 +00:00
|
|
|
.endif
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|