aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-05-01 03:41:31 +0800
committersteve <steve@FreeBSD.org>2000-05-01 03:41:31 +0800
commit3a0c8c49f7f5c7f5a33b8756902e1854632aa4c0 (patch)
treebf694abc143df9729ef12664a015935918632d63 /www
parentbeae478261da1d9ea2e78cccd04a195a2b9b3ff6 (diff)
downloadfreebsd-ports-gnome-3a0c8c49f7f5c7f5a33b8756902e1854632aa4c0.tar.gz
freebsd-ports-gnome-3a0c8c49f7f5c7f5a33b8756902e1854632aa4c0.tar.zst
freebsd-ports-gnome-3a0c8c49f7f5c7f5a33b8756902e1854632aa4c0.zip
Portlint, deinstall cleanly, and put the .jar files where they belong.
PR: 17835 Submitted by: Palle Girgensohn <girgen@partitur.se>
Diffstat (limited to 'www')
-rw-r--r--www/apache-jserv/Makefile7
-rw-r--r--www/apache-jserv/files/patch-ad6
-rw-r--r--www/apache-jserv/files/patch-af2
-rw-r--r--www/apache-jserv/files/patch-ah11
-rw-r--r--www/apache-jserv/pkg-plist4
5 files changed, 25 insertions, 5 deletions
diff --git a/www/apache-jserv/Makefile b/www/apache-jserv/Makefile
index 319fdc31ee49..39826791a8d9 100644
--- a/www/apache-jserv/Makefile
+++ b/www/apache-jserv/Makefile
@@ -28,6 +28,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX}\
--libdir=${LOCALBASE}/libexec/apache\
--with-logdir=/var/log\
--sysconfdir=${PREFIX}/etc/apache\
+ --with-apxs=${LOCALBASE}/sbin/apxs\
--with-jdk-home=${LOCALBASE}/jdk1.1.8\
--with-JSDK=${LOCALBASE}/share/java/classes/jsdk.jar\
--with-java=${LOCALBASE}/jdk1.1.8/bin/java\
@@ -36,6 +37,12 @@ CONFIGURE_ARGS= --prefix=${PREFIX}\
--with-gnu-ld\
--enable-compressed-jar\
--enable-EAPI
+.if defined (USE_JIKES)
+CONFIGURE_ARGS+=--with-javac=${LOCALBASE}/bin/jikes
+.endif
+
+pre-install:
+ ${MKDIR} ${PREFIX}/share/java/classes
post-install:
@${CAT} ${PKGDIR}/MESSAGE
diff --git a/www/apache-jserv/files/patch-ad b/www/apache-jserv/files/patch-ad
index ab3f5a8b5b9c..b466feeb11af 100644
--- a/www/apache-jserv/files/patch-ad
+++ b/www/apache-jserv/files/patch-ad
@@ -1,11 +1,11 @@
---- conf/jserv.properties.in.orig Wed Jan 26 18:26:31 2000
-+++ conf/jserv.properties.in Wed Jan 26 18:28:44 2000
+--- conf/jserv.properties.in.orig Sat Jan 15 01:58:57 2000
++++ conf/jserv.properties.in Fri Apr 7 01:57:42 2000
@@ -53,8 +53,15 @@
# MUST NOT be in this classpath or the classpath of the shell
# you start the Apache from.
#
-wrapper.classpath=@JSERV_CLASSES@
-+wrapper.classpath=@libexecdir@/ApacheJServ.jar
++wrapper.classpath=@prefix@/share/java/classes/ApacheJServ.jar
wrapper.classpath=@JSDK_CLASSES@
+# Uncomment if you use Cocoon.
+#wrapper.classpath=@prefix@/share/java/classes/Cocoon.jar
diff --git a/www/apache-jserv/files/patch-af b/www/apache-jserv/files/patch-af
index 6e055125da78..69c4bf4f09c9 100644
--- a/www/apache-jserv/files/patch-af
+++ b/www/apache-jserv/files/patch-af
@@ -16,7 +16,7 @@
+ i += size;
+ }
+ stream.close();
-+ return new ByteArrayInputStream(data);;
++ return new ByteArrayInputStream(data);
} else {
return null;
}
diff --git a/www/apache-jserv/files/patch-ah b/www/apache-jserv/files/patch-ah
new file mode 100644
index 000000000000..efa2c044ea32
--- /dev/null
+++ b/www/apache-jserv/files/patch-ah
@@ -0,0 +1,11 @@
+--- src/java/Makefile.in.orig Fri Apr 7 01:36:25 2000
++++ src/java/Makefile.in Fri Apr 7 01:37:51 2000
+@@ -109,7 +109,7 @@
+ SUBDIRS = org
+
+ ARCHIVE = $(PACKAGE).jar
+-jardir = ${libexecdir}
++jardir = $(prefix)/share/java/classes
+ jar_DATA = ${ARCHIVE}
+
+ # VT: NOTE: This is not going to be as bad as in ECS because the findstring
diff --git a/www/apache-jserv/pkg-plist b/www/apache-jserv/pkg-plist
index 06b95dbb683f..420a912abfd5 100644
--- a/www/apache-jserv/pkg-plist
+++ b/www/apache-jserv/pkg-plist
@@ -1,7 +1,7 @@
etc/apache/jserv/jserv.conf
etc/apache/jserv/jserv.properties
etc/apache/jserv/zone.properties
-libexec/apache/ApacheJServ.jar
+share/java/classes/ApacheJServ.jar
libexec/apache/mod_jserv.so
share/java/servlets/Hello.class
share/java/servlets/Hello.java
@@ -158,3 +158,5 @@ docs/api/overview-frame.html
@dirrm share/doc/mod_jserv/install
@dirrm share/doc/mod_jserv/protocol
@dirrm share/doc/mod_jserv
+@unexec rmdir %D/share/java/classes > /dev/null 2>&1 || true
+@unexec rmdir %D/share/java > /dev/null 2>&1 || true