aboutsummaryrefslogtreecommitdiffstats
path: root/databases/slony1
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-08 23:16:53 +0800
committerpav <pav@FreeBSD.org>2005-07-08 23:16:53 +0800
commitcbde59652682ad2484b36f131372fee4035da0ef (patch)
tree954c14469b5565c0b4f1c6f8804a549eccf5b136 /databases/slony1
parent8f4bbda5988bfbd4bc79d0414ed7058ce65e73b2 (diff)
downloadfreebsd-ports-gnome-cbde59652682ad2484b36f131372fee4035da0ef.tar.gz
freebsd-ports-gnome-cbde59652682ad2484b36f131372fee4035da0ef.tar.zst
freebsd-ports-gnome-cbde59652682ad2484b36f131372fee4035da0ef.zip
- Fix build on systems without Perl
- Fix rc script, it failed to background the daemon process PR: ports/83067 Submitted by: Vivek Khera <vivek@khera.org> (maintainer)
Diffstat (limited to 'databases/slony1')
-rw-r--r--databases/slony1/Makefile1
-rw-r--r--databases/slony1/files/patch-tools-altperl-Makefile19
-rw-r--r--databases/slony1/files/slon.sh.in2
3 files changed, 21 insertions, 1 deletions
diff --git a/databases/slony1/Makefile b/databases/slony1/Makefile
index 4a46cdae00bd..6c2449d3cb69 100644
--- a/databases/slony1/Makefile
+++ b/databases/slony1/Makefile
@@ -7,6 +7,7 @@
PORTNAME= slony1
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/
diff --git a/databases/slony1/files/patch-tools-altperl-Makefile b/databases/slony1/files/patch-tools-altperl-Makefile
new file mode 100644
index 000000000000..1a12e4e84876
--- /dev/null
+++ b/databases/slony1/files/patch-tools-altperl-Makefile
@@ -0,0 +1,19 @@
+--- tools/altperl/Makefile.dist Wed Jul 6 11:31:10 2005
++++ tools/altperl/Makefile Wed Jul 6 11:31:45 2005
+@@ -13,6 +13,8 @@
+ DISTFILES = Makefile ToDo README $(wildcard *.pl) $(wildcard *.pm) slon_tools.conf-sample
+
+ all:
++ifdef toolsbin
++
+ ifndef PERL
+ @echo "The altperl tools require that Perl be installed."
+ exit 1;
+@@ -31,6 +33,7 @@
+ $$file > $$tmpname; \
+ chmod 755 $$tmpname; \
+ done
++endif
+
+ install: all installdirs
+ ifndef toolsbin
diff --git a/databases/slony1/files/slon.sh.in b/databases/slony1/files/slon.sh.in
index 7a235158c751..c64c1175b2b7 100644
--- a/databases/slony1/files/slon.sh.in
+++ b/databases/slony1/files/slon.sh.in
@@ -20,7 +20,7 @@ rcvar=`set_rcvar`
pidfile="/var/run/$name.pid"
command="%%PREFIX%%/bin/slon"
-command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile"
+command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile &"
required_files="%%PREFIX%%/etc/$name.conf"
# read configuration and set defaults