mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
77 lines
2.3 KiB
Makefile
77 lines
2.3 KiB
Makefile
# Created by: Radim Kolar
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= slony1
|
|
PORTVERSION= 1.2.23
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://main.slony.info/downloads/1.2/source/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${DISTNAME}-docs${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= vivek@khera.org
|
|
COMMENT= PostgreSQL master to multiple replicas replication system
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= bison gmake
|
|
USE_PGSQL= yes
|
|
USE_BZIP2= yes
|
|
USE_RC_SUBR= slon
|
|
WANT_PGSQL_VER= 91-
|
|
|
|
SUB_FILES= pkg-message slon-mkservice.sh
|
|
SUB_LIST+= NAME=slon
|
|
|
|
OPTIONS_DEFINE= PERLTOOLS DOCS
|
|
PERLTOOLS_DESC= Install perl configuration tools
|
|
|
|
CONFLICTS?= slony1v2-2*
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MPERLTOOLS}
|
|
USES+= perl5
|
|
CONFIGURE_ARGS+= --with-perltools=${LOCALBASE}/sbin
|
|
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
|
BUILD_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
|
|
PLIST_SUB+= PERLTOOLS=""
|
|
SUB_LIST+= PERLTOOLS=""
|
|
.else
|
|
PLIST_SUB+= PERLTOOLS="@comment "
|
|
SUB_LIST+= PERLTOOLS="@comment "
|
|
.endif
|
|
|
|
# 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
|
|
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
MAN1= slon.1 slonik.1
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${MKDIR} ${DOCSDIR}/adminguide
|
|
${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/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/adminguide/*.html ${WRKSRC}/doc/adminguide/*.png ${DOCSDIR}/adminguide/
|
|
.endif
|
|
.if ! defined(NO_INSTALL_MANPAGES)
|
|
${INSTALL_MAN} ${WRKSRC}/doc/adminguide/man1/*.1 ${MAN1PREFIX}/man/man1
|
|
.endif
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/slon-mkservice.sh ${PREFIX}/sbin/slon-mkservice
|
|
@${INSTALL_DATA} ${FILESDIR}/slon.conf-sample ${PREFIX}/etc/
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|