aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/postgresql-relay/Makefile8
-rw-r--r--databases/postgresql-relay/files/postgresql-relay.in (renamed from databases/postgresql-relay/files/postgresql-relay.sh.in)5
2 files changed, 5 insertions, 8 deletions
diff --git a/databases/postgresql-relay/Makefile b/databases/postgresql-relay/Makefile
index 06e0bff065b8..47cd345ae425 100644
--- a/databases/postgresql-relay/Makefile
+++ b/databases/postgresql-relay/Makefile
@@ -7,6 +7,7 @@
PORTNAME= postgresql-relay
PORTVERSION= 1.3.2
+PORTREVISION= 1
CATEGORIES= databases net
MASTER_SITES= http://www.mavetju.org/download/
@@ -15,18 +16,15 @@ COMMENT= Multiplex multiple PostgreSQL databases to one relay
MAN8= postgresql-relay.8
PLIST_FILES= bin/postgresql-relay \
- etc/postgresql-relay.conf-sample \
- etc/rc.d/postgresql-relay.sh
+ etc/postgresql-relay.conf-sample
-USE_RC_SUBR= yes
+USE_RC_SUBR= postgresql-relay
USE_PERL5_BUILD=yes
-SUB_FILES= postgresql-relay.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/postgresql-relay ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/postgresql-relay.conf-sample ${PREFIX}/etc/postgresql-relay.conf-sample
${INSTALL_MAN} ${WRKSRC}/postgresql-relay.8 ${MAN8PREFIX}/man/man8
- ${INSTALL_SCRIPT} ${WRKDIR}/postgresql-relay.sh ${PREFIX}/etc/rc.d
post-install:
${CAT} ${PKGMESSAGE}
diff --git a/databases/postgresql-relay/files/postgresql-relay.sh.in b/databases/postgresql-relay/files/postgresql-relay.in
index 67a2ca128d88..a4329a15bdbb 100644
--- a/databases/postgresql-relay/files/postgresql-relay.sh.in
+++ b/databases/postgresql-relay/files/postgresql-relay.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/databases/postgresql-relay/files/Attic/postgresql-relay.sh.in,v 1.1 2006-04-01 11:57:25 edwin Exp $
+# $FreeBSD$
#
# PROVIDE: postgresql-relay
@@ -24,9 +24,8 @@ rcvar=`set_rcvar`
command=%%PREFIX%%/bin/postgresql-relay
required_files=%%PREFIX%%/etc/postgresql-relay.conf
-# set defaults
+load_rc_config $name
postgresqlrelay_enable=${postgresqlrelay_enable:-"NO"}
-load_rc_config $name
run_rc_command "$1"