summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat/patches/patch-aa
blob: de952eefbeb8a5f04a40155501e61d324399c21b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$NetBSD: patch-aa,v 1.6 2001/03/29 22:22:13 jwise Exp $
--- build.xml.orig	Tue Dec 12 14:51:36 2000
+++ build.xml	Tue Mar 27 17:17:22 2001
@@ -6,11 +6,11 @@
   <property name="build.compiler" value="classic"/>
   <property name="debug" value="on"/>
   <property name="j2ee.home" value="../../j2ee/build/unix"/>
-  <property name="jaxp" value="../jaxp-1.0.1" />
+  <property name="jaxp" value="${pkgsrc.prefix}/lib/java" />
   <property name="optimize" value="true" />
-  <property name="servlet.jar" value="../jakarta-servletapi/lib/servlet.jar"/>
+  <property name="servlet.jar" value="${pkgsrc.prefix}/lib/java/servlet.jar"/>
   <property name="tomcat.build" value="../build/tomcat"/>
-  <property name="tomcat.dist" value="../dist/tomcat"/>
+  <property name="tomcat.dist" value="${pkgsrc.prefix}/tomcat"/>
 
 
   <!-- ======================== Copy static files ========================= -->
@@ -31,14 +31,19 @@
 
     <!-- Copy executables and scripts -->
     <copy todir="${tomcat.build}/bin">
-      <fileset dir="${ant.home}/bin" includes="ant*"/>
-      <fileset dir="src/shell"/>
+      <!-- <fileset dir="${ant.home}/bin" includes="ant*"/> -->
+      <fileset dir="src/shell" excludes="*.bat"/>
     </copy>
 
     <!-- Copy configuation files -->
     <copy todir="${tomcat.build}/conf">
       <fileset dir="src/etc"/>
+      <!-- <mapper type="glob" from="*.xml" to="*.xml.default"/> -->
     </copy>
+    <move todir="${tomcat.build}/conf/">
+      <fileset dir="${tomcat.build}/conf/" includes="jni_server.xml,server.xml,tomcat.policy,tomcat-users.xml,web.xml,workers.properties"/>
+      <mapper type="glob" from="*" to="*.default"/>
+    </move>
     <copy tofile="${tomcat.build}/conf/build.xml"
             file="build.xml"/>
 
@@ -49,14 +54,14 @@
     <copy tofile="${tomcat.build}/LICENSE" file="LICENSE"/>
 
     <!-- Copy library JAR files -->
-    <copy tofile="${tomcat.build}/lib/ant.jar"
-            file="${ant.home}/lib/ant.jar"/>
-    <copy tofile="${tomcat.build}/lib/servlet.jar"
-            file="${servlet.jar}"/>
-    <copy tofile="${tomcat.build}/lib/jaxp.jar"
-            file="${jaxp}/jaxp.jar"/>
-    <copy tofile="${tomcat.build}/lib/parser.jar"
-            file="${jaxp}/parser.jar"/>
+    <!-- <copy tofile="${tomcat.build}/lib/ant.jar"
+            file="${ant.home}/lib/java/ant.jar"/> -->
+    <!-- <copy tofile="${tomcat.build}/lib/servlet.jar"
+            file="${servlet.jar}"/> -->
+    <!-- <copy tofile="${tomcat.build}/lib/jaxp.jar"
+            file="${jaxp}/jaxp.jar"/> -->
+    <!-- <copy tofile="${tomcat.build}/lib/parser.jar"
+            file="${jaxp}/parser.jar"/> -->
 
     <!-- Copy golden files for the tests webapp -->
     <copy todir="${tomcat.build}/lib/test/Golden">
@@ -65,9 +70,9 @@
 
     <!-- Fixups for line endings and executable permissions -->
     <fixcrlf srcdir="${tomcat.build}" includes="**/*.sh" cr="remove"/>
-    <fixcrlf srcdir="${tomcat.build}" includes="**/*.bat" cr="add"/>
-    <chmod perm="+x" file="${tomcat.build}/bin/ant"/>
-    <chmod perm="+x" file="${tomcat.build}/bin/antRun"/>
+    <!-- <fixcrlf srcdir="${tomcat.build}" includes="**/*.bat" cr="add"/> -->
+    <!-- <chmod perm="+x" file="${tomcat.build}/bin/ant"/> -->
+    <!-- <chmod perm="+x" file="${tomcat.build}/bin/antRun"/> -->
     <chmod perm="+x" file="${tomcat.build}/bin/jspc.sh"/>
     <chmod perm="+x" file="${tomcat.build}/bin/startup.sh"/>
     <chmod perm="+x" file="${tomcat.build}/bin/shutdown.sh"/>
@@ -202,8 +207,8 @@
     </copy>
 
     <!-- Fixups for executable permissions -->
-    <chmod perm="+x" file="${tomcat.dist}/bin/ant"/>
-    <chmod perm="+x" file="${tomcat.dist}/bin/antRun"/>
+    <!-- <chmod perm="+x" file="${tomcat.dist}/bin/ant"/> -->
+    <!-- <chmod perm="+x" file="${tomcat.dist}/bin/antRun"/> -->
     <chmod perm="+x" file="${tomcat.dist}/bin/jspc.sh"/>
     <chmod perm="+x" file="${tomcat.dist}/bin/startup.sh"/>
     <chmod perm="+x" file="${tomcat.dist}/bin/shutdown.sh"/>