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
|
2008-05-30 15:37:39 +00:00
|
|
|
PORTVERSION= 1.2.14
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 1
|
2004-06-28 22:07:53 +00:00
|
|
|
CATEGORIES= databases
|
2007-04-14 08:12:04 +00:00
|
|
|
MASTER_SITES= http://main.slony.info/downloads/1.2/source/
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-${PORTVERSION}-docs${EXTRACT_SUFX}
|
2004-06-28 22:07:53 +00:00
|
|
|
|
2004-11-24 18:01:33 +00:00
|
|
|
MAINTAINER= vivek@khera.org
|
2005-06-24 11:22:43 +00:00
|
|
|
COMMENT= PostgreSQL master to multiple replicas replication system
|
2004-06-28 22:07:53 +00:00
|
|
|
|
2005-01-31 00:35:55 +00:00
|
|
|
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
2004-07-01 10:55:03 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/postmaster:${PGSQL_PORT}
|
2005-06-29 03:54:50 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/postmaster:${PGSQL_PORT}
|
2004-06-28 22:07:53 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2005-06-24 11:22:43 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_RC_SUBR= slon.sh
|
2004-06-28 22:07:53 +00:00
|
|
|
|
2005-06-24 11:22:43 +00:00
|
|
|
SUB_FILES= pkg-message slon-mkservice.sh
|
|
|
|
SUB_LIST+= NAME=slon
|
2004-06-28 22:07:53 +00:00
|
|
|
|
2005-06-24 11:22:43 +00:00
|
|
|
OPTIONS= PERLTOOLS "Install perl configuration tools" Off
|
2005-01-31 00:35:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2005-06-24 11:22:43 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PERLTOOLS)
|
2006-06-26 10:27:59 +00:00
|
|
|
USE_PERL5= yes
|
2005-07-31 08:25:44 +00:00
|
|
|
CONFIGURE_ARGS+= --with-perltools=${LOCALBASE}/sbin
|
2006-05-04 09:02:30 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
2005-06-24 11:22:43 +00:00
|
|
|
PLIST_SUB+= PERLTOOLS=""
|
|
|
|
SUB_LIST+= PERLTOOLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PERLTOOLS="@comment "
|
|
|
|
SUB_LIST+= PERLTOOLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-10-19 15:47:50 +00: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
|
|
|
|
|
2005-06-24 11:22:43 +00:00
|
|
|
DEFAULT_PGSQL_VER?=80
|
|
|
|
|
2005-01-31 00:35:55 +00:00
|
|
|
# Setting/finding PostgreSQL version we want.
|
|
|
|
.if exists(${LOCALBASE}/bin/postmaster)
|
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
2006-12-08 10:59:53 +00:00
|
|
|
${SED} -En 's/.*PostgreSQL[^0-9]*([0-9]+)\.([0-9]+)\..*/\1\2/p'
|
2005-01-31 00:35:55 +00:00
|
|
|
.elif exists(${LOCALBASE}/bin/pg_config)
|
2005-06-24 11:22:43 +00:00
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | \
|
|
|
|
${SED} -En 's/PostgreSQL[^0-9]*([0-9]*)\.([0-9]+)\..*/\1\2/p'
|
2005-01-31 00:35:55 +00:00
|
|
|
.else
|
|
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
|
|
.endif
|
|
|
|
|
2007-04-14 08:12:04 +00:00
|
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
|
|
MAN1= slon.1 slonik.1
|
|
|
|
.endif
|
|
|
|
|
2005-06-24 11:22:43 +00:00
|
|
|
post-install:
|
2004-06-28 22:07:53 +00:00
|
|
|
.if ! defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-02-02 10:33:11 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/adminguide
|
2005-07-31 08:25:44 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/howto
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${WRKSRC}/INSTALL ${WRKSRC}/SAMPLE ${WRKSRC}/README ${WRKSRC}/HISTORY-1.1 ${WRKSRC}/UPGRADING ${DOCSDIR}
|
2005-10-06 20:21:08 +00:00
|
|
|
# ${INSTALL_DATA} ${WRKSRC}/doc/*/*.pdf ${DOCSDIR}
|
2005-07-31 08:25:44 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/howto/*.txt ${WRKSRC}/doc/howto/*.html ${DOCSDIR}/howto/
|
2006-11-23 12:12:53 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/adminguide/*.html ${WRKSRC}/doc/adminguide/*.png ${DOCSDIR}/adminguide/
|
2007-04-14 08:12:04 +00:00
|
|
|
.endif
|
|
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/adminguide/man1/*.1 ${MAN1PREFIX}/man/man1
|
2004-06-28 22:07:53 +00:00
|
|
|
.endif
|
2005-06-24 11:22:43 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/slon-mkservice.sh ${PREFIX}/sbin/slon-mkservice
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/slon.conf-sample ${PREFIX}/etc/
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-06-28 22:07:53 +00:00
|
|
|
|
2005-01-31 00:35:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|