2013-03-08 12:32:11 +01:00
|
|
|
# Created by: Radim Kolar
|
2004-06-29 00:07:53 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slony1
|
2012-02-14 16:27:57 +01:00
|
|
|
PORTVERSION= 1.2.23
|
2014-03-14 21:59:20 +01:00
|
|
|
PORTREVISION= 1
|
2004-06-29 00:07:53 +02:00
|
|
|
CATEGORIES= databases
|
2007-04-14 10:12:04 +02:00
|
|
|
MASTER_SITES= http://main.slony.info/downloads/1.2/source/
|
2009-08-09 22:38:22 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${DISTNAME}-docs${EXTRACT_SUFX}
|
2004-06-29 00:07:53 +02:00
|
|
|
|
2004-11-24 19:01:33 +01:00
|
|
|
MAINTAINER= vivek@khera.org
|
2005-06-24 13:22:43 +02:00
|
|
|
COMMENT= PostgreSQL master to multiple replicas replication system
|
2004-06-29 00:07:53 +02:00
|
|
|
|
2009-08-04 14:28:36 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
2004-06-29 00:07:53 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2013-07-21 14:57:10 +02:00
|
|
|
USES= bison gmake
|
2009-08-04 14:28:36 +02:00
|
|
|
USE_PGSQL= yes
|
2005-06-24 13:22:43 +02:00
|
|
|
USE_BZIP2= yes
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= slon
|
2013-07-21 14:57:10 +02:00
|
|
|
WANT_PGSQL_VER= 91-
|
2004-06-29 00:07:53 +02:00
|
|
|
|
2005-06-24 13:22:43 +02:00
|
|
|
SUB_FILES= pkg-message slon-mkservice.sh
|
|
|
|
SUB_LIST+= NAME=slon
|
2004-06-29 00:07:53 +02:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
OPTIONS_DEFINE= PERLTOOLS DOCS
|
|
|
|
PERLTOOLS_DESC= Install perl configuration tools
|
2005-01-31 01:35:55 +01:00
|
|
|
|
2009-12-14 21:44:35 +01:00
|
|
|
CONFLICTS?= slony1v2-2*
|
2009-08-09 22:38:22 +02:00
|
|
|
|
2013-09-20 18:13:47 +02:00
|
|
|
NO_STAGE= yes
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-06-24 13:22:43 +02:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MPERLTOOLS}
|
2014-03-14 21:59:20 +01:00
|
|
|
USES+= perl5
|
2005-07-31 10:25:44 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perltools=${LOCALBASE}/sbin
|
2012-06-30 07:52:54 +02:00
|
|
|
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
|
|
|
BUILD_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
2005-06-24 13:22:43 +02:00
|
|
|
PLIST_SUB+= PERLTOOLS=""
|
|
|
|
SUB_LIST+= PERLTOOLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PERLTOOLS="@comment "
|
|
|
|
SUB_LIST+= PERLTOOLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-10-19 17:47:50 +02:00
|
|
|
# let configure find postgres stuff in non-standard places
|
|
|
|
CONFIGURE_ARGS+=--with-pgconfigdir=${LOCALBASE}/bin \
|
|
|
|
--with-pgbindir=${LOCALBASE}/bin \
|
|
|
|
--with-pgincludedir=${LOCALBASE}/include \
|
|
|
|
--with-pgincludeserverdir=${LOCALBASE}/include/postgresql/server \
|
|
|
|
--with-pglibdir=${LOCALBASE}/lib \
|
|
|
|
--with-pgpkglibdir=${LOCALBASE}/lib/postgresql \
|
|
|
|
--with-pgsharedir=${LOCALBASE}/share/postgresql
|
|
|
|
|
2007-04-14 10:12:04 +02:00
|
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN1= slon.1 slonik.1
|
|
|
|
.endif
|
|
|
|
|
2005-06-24 13:22:43 +02:00
|
|
|
post-install:
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-06-29 00:07:53 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-02-02 11:33:11 +01:00
|
|
|
${MKDIR} ${DOCSDIR}/adminguide
|
2005-07-31 10:25:44 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/howto
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/INSTALL ${WRKSRC}/SAMPLE ${WRKSRC}/README ${WRKSRC}/HISTORY-1.1 ${WRKSRC}/UPGRADING ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/howto/*.txt ${WRKSRC}/doc/howto/*.html ${DOCSDIR}/howto/
|
2006-11-23 13:12:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/adminguide/*.html ${WRKSRC}/doc/adminguide/*.png ${DOCSDIR}/adminguide/
|
2007-04-14 10:12:04 +02:00
|
|
|
.endif
|
|
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/adminguide/man1/*.1 ${MAN1PREFIX}/man/man1
|
2004-06-29 00:07:53 +02:00
|
|
|
.endif
|
2005-06-24 13:22:43 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/slon-mkservice.sh ${PREFIX}/sbin/slon-mkservice
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/slon.conf-sample ${PREFIX}/etc/
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-06-29 00:07:53 +02:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.mk>
|