aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-07-28 15:28:22 +0800
committervs <vs@FreeBSD.org>2005-07-28 15:28:22 +0800
commit172c7d377a9b28e2868cdb17119c3390923c775f (patch)
treed2c999afd47218a8ab0b474af0f300f0ebafa3cb /www
parent8ec10f2ace7026751cc5f7ba633d873a590e46e1 (diff)
downloadfreebsd-ports-gnome-172c7d377a9b28e2868cdb17119c3390923c775f.tar.gz
freebsd-ports-gnome-172c7d377a9b28e2868cdb17119c3390923c775f.tar.zst
freebsd-ports-gnome-172c7d377a9b28e2868cdb17119c3390923c775f.zip
- Correctly USE_RC_SUBR
- Fix build-issue on 4.x Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r--www/cocoon/Makefile2
-rw-r--r--www/cocoon/files/cocoon.sh2
-rw-r--r--www/cocoon/files/patch-build.sh13
3 files changed, 14 insertions, 3 deletions
diff --git a/www/cocoon/Makefile b/www/cocoon/Makefile
index b8660cfff1fa..55b77ee06b17 100644
--- a/www/cocoon/Makefile
+++ b/www/cocoon/Makefile
@@ -15,6 +15,7 @@ DISTNAME= ${PDISTNAME}-src
MAINTAINER= jb.quenot@caraldi.com
COMMENT= XML Web Development Framework
+USE_RC_SUBR= yes
USE_JAVA= yes
JAVA_VERSION= 1.3+
USE_PYTHON= 1.6+
@@ -46,6 +47,7 @@ LOG_FILE?= ${APP_HOME}/${APP_NAME}.log
SUBSTITUTIONS= \
-e "s|%%APP_HOME%%|${APP_HOME}|g" \
-e "s|%%APP_NAME%%|${APP_NAME}|g" \
+ -e "s|%%RC_SUBR%%|${RC_SUBR}|g" \
-e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%PORT%%|${PORT}|g" \
-e "s|%%COCOON_LIB%%|${COCOON_LIB}|g" \
diff --git a/www/cocoon/files/cocoon.sh b/www/cocoon/files/cocoon.sh
index 259ada14b103..f9badad030c4 100644
--- a/www/cocoon/files/cocoon.sh
+++ b/www/cocoon/files/cocoon.sh
@@ -11,7 +11,7 @@
# %%APP_NAME%%_enable="YES"
#
-. /etc/rc.subr
+. %%RC_SUBR%%
name=%%APP_NAME%%
rcvar=`set_rcvar`
diff --git a/www/cocoon/files/patch-build.sh b/www/cocoon/files/patch-build.sh
index 861dc2b5c612..08f852f4a959 100644
--- a/www/cocoon/files/patch-build.sh
+++ b/www/cocoon/files/patch-build.sh
@@ -1,8 +1,17 @@
---- build.sh.orig Thu Nov 4 13:14:57 2004
-+++ build.sh Thu Nov 4 13:15:01 2004
+--- build.sh.orig Wed Mar 23 12:44:13 2005
++++ build.sh Wed Jul 27 18:50:50 2005
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
# Copyright 1999-2004 The Apache Software Foundation
#
+@@ -27,7 +27,7 @@
+
+ # ----- Ignore system CLASSPATH variable
+ OLD_CLASSPATH="$CLASSPATH"
+-unset CLASSPATH
++unset CLASSPATH || true
+ CLASSPATH="`echo lib/endorsed/*.jar | tr ' ' $S`"
+ export CLASSPATH
+