diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2003-10-01 11:20:42 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2003-10-01 11:20:42 +0000 |
commit | b719a5a0057e2eba43a29c0a0fdee4d45b949811 (patch) | |
tree | 39da0d36307f5e3da369247410c4aaa4987f0939 /www/resin2/files/patch-httpd.sh | |
parent | Add p5-Apache-Clean 0.05, a mod_perl interface into HTML::Clean. (diff) |
New port: Resin 2.
Submitted by: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
Notes
Notes:
svn path=/head/; revision=89966
Diffstat (limited to 'www/resin2/files/patch-httpd.sh')
-rw-r--r-- | www/resin2/files/patch-httpd.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www/resin2/files/patch-httpd.sh b/www/resin2/files/patch-httpd.sh new file mode 100644 index 000000000000..0eb3b58dd55b --- /dev/null +++ b/www/resin2/files/patch-httpd.sh @@ -0,0 +1,34 @@ +--- bin/httpd.sh.orig Tue Apr 15 23:28:50 2003 ++++ bin/httpd.sh Thu Jul 24 14:35:36 2003 +@@ -37,11 +37,8 @@ + # + # You can predefine JAVA_HOME and RESIN_HOME + # +-# JAVA_HOME=/usr/java +-# export JAVA_HOME +-# +-# RESIN_HOME=/usr/local/resin +-# export RESIN_HOME ++export JAVA_HOME=%%JAVA_HOME%% ++export RESIN_HOME=%%PREFIX%%/%%PKGNAMEPREFIX%%%%PORTNAME%% + # + # Extra arguments to Java. If you're passing arguments to the JVM, you'll + # need to use -Jxxx. For example, args="-J-ms48m". You can modify +@@ -61,16 +58,4 @@ + # + perl=perl + +-# +-# trace script and simlinks to find thw wrapper +-# +-script=`/bin/ls -l $0 | awk '{ print $NF; }'` +- +-while test -h "$script" +-do +- script=`/bin/ls -l $script | awk '{ print $NF; }'` +-done +- +-bin=`dirname $script` +- +-exec $perl $bin/wrapper.pl -chdir -name "$name" -class "$class" $args $* ++su -f -m www -c "exec $perl %%PREFIX%%/sbin/resinctl -conf %%PREFIX%%/etc/resin.xml -chdir -name "$name" -class "$class" $args $*" > /dev/null && echo -n '%%PKGNAMEPREFIX%%%%PORTNAME%% ' |