219d691b62
Repo copy from databases/pgpool-II. Changes from that port: - New port for pgpool-II33-3.3.3 - Stagify - Add libtool, gmake, pgsql, perl5 to USES. Drop .la files -- this is a new port, so there can't be any pre-existing consumers of the .la files to worry about. - Use options helpers - The configure used with this software is buggy and doesn't understand --without-foo. Just omit any --with-foo or --without-foo to turn off 'foo' support. - New options PAM MEMCACHED. Enable PAM by default since it only depends on the base system. - Add RUN_DEPENDS on rsync and perl5 -- needed for the scripts pgpool_copy_backup and pgpool_remote_start respectively. - regenerate pkg-plist using 'make makeplist.' Just use the auto-generated plist entries for %%PORTDOCS%% rather than the $PORTDOCS variable. - Simplify how docs and sql/contrib functions are installed Redports: https://redports.org/buildarchive/20140629142900-20287/ PR: 189880 Submitted by: michelle@sorbs.net Reviewed by: pi, matthew
92 lines
2.8 KiB
Makefile
92 lines
2.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pgpool-II
|
|
PORTVERSION= 3.3.3
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.pgpool.net/mediawiki/images/ \
|
|
LOCAL/matthew/${PORTNAME}
|
|
PKGNAMESUFFIX= 33
|
|
|
|
MAINTAINER= michelle@sorbs.net
|
|
COMMENT= Connection pool server for PostgreSQL
|
|
|
|
LICENSE= PGPOOL
|
|
LICENSE_NAME= PGPOOL
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
|
|
|
|
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
|
|
|
USES= gmake libtool pgsql perl5
|
|
WANT_PGSQL= client
|
|
USE_PERL5= run
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP}
|
|
|
|
CONFLICTS= pgpool-3.* pgpool-II-22-2.* pgpool-II-23-2.* pgpool-II-30-3.* pgpool-II-3.*
|
|
USE_RC_SUBR= pgpool
|
|
|
|
DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README README.euc_jp \
|
|
TODO doc/pgpool-en.html doc/pgpool-ja.html doc/pgpool.css \
|
|
doc/tutorial-en.html doc/tutorial-ja.html
|
|
|
|
OPTIONS_DEFINE+= DOCS SSL LIBMEMCACHED PAM
|
|
OPTIONS_DEFAULT= DOCS SSL PAM
|
|
|
|
# Buggy configure: adding eg. --without-pam to CONFIGURE_ARGS causes
|
|
# USE_PAM to be *defined* in config.h Omit the --with-pam or
|
|
# --without-pam flags entirely to leave PAM turned off. Similarly for
|
|
# --with-memcached.
|
|
|
|
LIBMEMCACHED_DESC= Build with MemCached support
|
|
LIBMEMCACHED_BUILD_DEPENDS= libmemcached>=1.0:${PORTSDIR}/databases/libmemcached
|
|
LIBMEMCACHED_CONFIGURE_ON= --with-memcached=${LOCALBASE}/lib/libmemcached
|
|
|
|
SSL_DESC= Build with OpenSSL support
|
|
SSL_CONFIGURE_WITH= openssl
|
|
SSL_USE= OPENSSL=yes
|
|
|
|
PAM_DESC= Build with PAM support
|
|
PAM_CONFIGURE_ON= --with-pam
|
|
PAM_USE= PAM=yes
|
|
|
|
FUNC_CONTRIB_DIR= ${PREFIX}/share/postgresql/contrib
|
|
FUNC_LIB_DIR= ${PREFIX}/lib/postgresql
|
|
|
|
FUNCTIONS= pgpool-recovery pgpool-regclass
|
|
FUNC_CONTRIB= pgpool-recovery/uninstall_pgpool-recovery.sql \
|
|
pgpool-recovery/pgpool-recovery.sql \
|
|
pgpool-regclass/uninstall_pgpool-regclass.sql \
|
|
pgpool-regclass/pgpool-regclass.sql
|
|
FUNC_LIB= pgpool-recovery/pgpool-recovery.so \
|
|
pgpool-regclass/pgpool-regclass.so
|
|
|
|
post-build:
|
|
.for f in ${FUNCTIONS}
|
|
cd ${WRKSRC}/sql/${f} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
|
|
.endfor
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${FUNC_CONTRIB_DIR}
|
|
.for f in ${FUNC_CONTRIB}
|
|
${INSTALL_DATA} ${WRKSRC}/sql/${f} ${STAGEDIR}${FUNC_CONTRIB_DIR}
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${FUNC_LIB_DIR}
|
|
.for f in ${FUNC_LIB}
|
|
${INSTALL_LIB} ${WRKSRC}/sql/${f} ${STAGEDIR}${FUNC_LIB_DIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/sample/dist_def_pgbench.sql \
|
|
${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sample/replicate_def_pgbench.sql \
|
|
${STAGEDIR}${DATADIR}
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for f in pgpool_recovery pgpool_recovery_pitr pgpool_remote_start
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sample/${f} ${STAGEDIR}${EXAMPLESDIR}
|
|
.endfor
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|