- 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)
This commit is contained in:
Pav Lucistnik 2005-07-08 15:16:53 +00:00
parent f3f59e0af6
commit d565f90a4b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138708
6 changed files with 42 additions and 2 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= slony1
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/

View file

@ -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

View file

@ -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

View file

@ -7,6 +7,7 @@
PORTNAME= slony1
PORTVERSION= 1.1.0
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/

View file

@ -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

View file

@ -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