diff options
author | mnag <mnag@FreeBSD.org> | 2006-04-15 02:40:59 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2006-04-15 02:40:59 +0800 |
commit | db3d07f173d2b223b7cecc79d2d3e1be7f0b0efc (patch) | |
tree | 29c7f7ced0d829f8c3b8ae9023c230f9b73c75cc /databases/pgpool-II-30 | |
parent | b9aa02de83a23681b287ab87b02f73bb154620b2 (diff) | |
download | freebsd-ports-gnome-db3d07f173d2b223b7cecc79d2d3e1be7f0b0efc.tar.gz freebsd-ports-gnome-db3d07f173d2b223b7cecc79d2d3e1be7f0b0efc.tar.zst freebsd-ports-gnome-db3d07f173d2b223b7cecc79d2d3e1be7f0b0efc.zip |
- Add rc.d script.
- Bump PORTREVISION
PR: 94137
Submitted by: Chris St Denis <chris___ctgameinfo.com>
Approved by: maintainer timeout, 39 days
Diffstat (limited to 'databases/pgpool-II-30')
-rw-r--r-- | databases/pgpool-II-30/Makefile | 5 | ||||
-rw-r--r-- | databases/pgpool-II-30/files/pgpool.in | 34 |
2 files changed, 38 insertions, 1 deletions
diff --git a/databases/pgpool-II-30/Makefile b/databases/pgpool-II-30/Makefile index bd9a3f78e1b9..cfa6bdbe1900 100644 --- a/databases/pgpool-II-30/Makefile +++ b/databases/pgpool-II-30/Makefile @@ -7,6 +7,7 @@ PORTNAME= pgpool PORTVERSION= 2.6.3 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://pgfoundry.org/frs/download.php/426/ @@ -16,11 +17,13 @@ COMMENT= A connection pool server for PostgreSQL USE_GMAKE= yes GNU_CONFIGURE= yes +USE_RC_SUBR= pgpool + PORTDOCS= README AUTHORS COPYING ChangeLog INSTALL NEWS TODO README.euc_jp post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR} .endfor diff --git a/databases/pgpool-II-30/files/pgpool.in b/databases/pgpool-II-30/files/pgpool.in new file mode 100644 index 000000000000..54e1feb92fdd --- /dev/null +++ b/databases/pgpool-II-30/files/pgpool.in @@ -0,0 +1,34 @@ +#!/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" +# + +. %%RC_SUBR%% + +name=pgpool +rcvar=${name}_enable + +load_rc_config $name + +: ${pgpool_enable="NO"} +: ${pgpool_conf="%%PREFIX%%/etc/pgpool.conf"} + +command="%%PREFIX%%/bin/pgpool" +command_args="-f ${pgpool_conf}" +stop_cmd="${command} ${command_args} stop" + +required_files="${pgpool_conf}" + +run_rc_command "$1" |