Index: head/databases/pgpool-II-40/Makefile =================================================================== --- head/databases/pgpool-II-40/Makefile (revision 491465) +++ head/databases/pgpool-II-40/Makefile (revision 491466) @@ -1,53 +1,53 @@ # $FreeBSD$ PORTNAME= pgpool-II PORTVERSION= 4.0.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases MASTER_SITES= http://www.pgpool.net/mediawiki/images/ PKGNAMESUFFIX= 40 MAINTAINER= tz@FreeBSD.org COMMENT= Connection pool server for PostgreSQL LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING PORTSCOUT= limit:^4.0.[0-9]* USES= gmake libtool pgsql:9.6+ GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_RC_SUBR= pgpool CONFLICTS= pgpool-II-[0-9]* PORTDOCS= * PAM_DESC= Build with PAM support SSL_DESC= Build with OpenSSL support MEMCACHED_DESC = Use memcached for in memory query cache OPTIONS_DEFINE= DOCS SSL PAM MEMCACHED OPTIONS_DEFAULT= SSL MEMCACHED_CONFIGURE_ON= --with-memcached=${LOCALBASE}/include MEMCACHED_LIB_DEPENDS= libmemcached.so:databases/libmemcached PAM_CONFIGURE_ON= --with-pam SSL_CONFIGURE_WITH= openssl SSL_USES= ssl post-install: @${MKDIR} ${STAGEDIR}/var/run/pgpool ${INSTALL_LIB} ${WRKSRC}/src/libs/pcp/.libs/libpcp.so.1.0.0 ${STAGEDIR}${PREFIX}/lib post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR} "-not -name Makefile.\*" .for f in AUTHORS ChangeLog NEWS TODO ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/databases/pgpool-II-40/files/pgpool.in =================================================================== --- head/databases/pgpool-II-40/files/pgpool.in (revision 491465) +++ head/databases/pgpool-II-40/files/pgpool.in (revision 491466) @@ -1,40 +1,50 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: pgpool # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# pgpool_enable (bool): Set to NO by default. -# Set it to YES to enable pgpool. -# pgpool_conf (file): Set location of your config. -# Default is "%%PREFIX%%/etc/pgpool.conf" -# pgpool_user (uid): User ID to run as (default nobody) -# pgpool_stop_mode (string): Shutdown mode -# Default is "smart" -# Possibilities are "smart", "fast", or "immediate" +# pgpool_enable (bool): Set to NO by default. +# Set it to YES to enable pgpool. +# pgpool_conf (file): Set location of your config. +# Default is "%%PREFIX%%/etc/pgpool.conf" +# pgpool_hba (file): Set location of your pool hba file. +# Default is "%%PREFIX%%/etc/pool_hba.conf" +# pgpool_pcp (file): Set location of your pcp conf file. +# Default is "%%PREFIX%%/etc/pcp.conf" +# pgpool_user (uid): User ID to run as (default nobody) +# pgpool_stop_mode (string): Shutdown mode +# Default is "smart" +# Possibilities are "smart", "fast", or "immediate" # . /etc/rc.subr name=pgpool rcvar=pgpool_enable load_rc_config $name : ${pgpool_enable="NO"} : ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} +: ${pgpool_hba="%%PREFIX%%/etc/pool_hba.conf"} +: ${pgpool_pcp="%%PREFIX%%/etc/pcp.conf"} : ${pgpool_user="nobody"} : ${pgpool_stop_mode="smart"} command="%%PREFIX%%/bin/pgpool" -command_args="-f ${pgpool_conf}" +command_args="-f ${pgpool_conf} -a ${pgpool_hba} -F ${pgpool_pcp}" stop_cmd="${command} -m ${pgpool_stop_mode} ${command_args} stop" +reload_cmd="${command} ${command_args} reload" +extra_commands="reload" required_files="${pgpool_conf}" + run_rc_command "$1" +