File: rules

package info (click to toggle)
tomcat5 5.0.30-12etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 22,860 kB
  • ctags: 26,367
  • sloc: java: 152,968; xml: 42,830; ansic: 33,715; jsp: 7,193; perl: 2,289; sh: 1,081; makefile: 551; awk: 59
file content (55 lines) | stat: -rwxr-xr-x 2,582 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# debian/rules file for tomcat5 (uses cdbs)

UPSTREAM_VERSION   := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | cut -f1 -d-)
TOMCAT_SRCDIR      := jakarta-tomcat-5
TOMCAT_BUILD    := jakarta-tomcat-5/build
CATALINA_SRCDIR    := jakarta-tomcat-catalina
CONNECTORS_SRCDIR  := jakarta-tomcat-connectors
JASPAER_SRCDIR     := jakarta-tomcat-jasper

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME := /usr/lib/jvm/java-gcj
ANT_HOME  := /usr/share/ant

DEB_JARS := $(ANT_HOME)/lib/ant-trax.jar

DEB_ANT_BUILD_TARGET   := build

# Examples and documentation for the tomcat5 package
DEB_INSTALL_DOCS_tomcat5 := $(DEB_SRCDIR)/$(TOMCAT_SRCDIR)/RUNNING.txt
DEB_INSTALL_EXAMPLES_tomcat5 := $(DEB_SRCDIR)/$(TOMCAT_SRCDIR)/build/conf/server.xml \
	$(DEB_SRCDIR)/$(TOMCAT_SRCDIR)/build/conf/web.xml


pre-build:: 	
	-rm -r jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/puretls/

clean::
	-rm -r jakarta-tomcat-5/build
	-rm -r jakarta-tomcat-5/compat
	-rm -r jakarta-tomcat-5/deployer
	-rm -f LICENSE

install/tomcat5-webapps::
	install -d jakarta-tomcat-5/build/webapps/tomcat-docs/
	cd jakarta-tomcat-catalina/webapps/docs && cp -R *.xml *.xsl appdev architecture config funcspecs ../../../jakarta-tomcat-5/build/webapps/tomcat-docs/	
	cd jakarta-tomcat-5/build/webapps/tomcat-docs && for i in `find . -maxdepth 2 -name '*.xml'`; do xsltproc tomcat-docs.xsl $$i > `dirname $$i`/`basename $$i .xml`.html; done
	cd jakarta-tomcat-5/build/webapps/tomcat-docs && find . -name '*.xml' -exec rm -f {} \;
	cd jakarta-tomcat-5/build/webapps/tomcat-docs && rm -f tomcat-docs.xsl        
	cd jakarta-tomcat-catalina/webapps/docs && cp -R WEB-INF ../../../jakarta-tomcat-5/build/webapps/tomcat-docs/
	# copy the RELEASE_NOTES into the tomcat-docs webapp
	cp jakarta-tomcat-5/RELEASE-NOTES jakarta-tomcat-5/build/webapps/ROOT/RELEASE-NOTES.txt		
	
	gunzip $(TOMCAT_BUILD)/webapps/jsp-examples/examples-jsp.war.gz
	gunzip $(TOMCAT_BUILD)/webapps/servlets-examples/examples-servlet.war.gz
	unzip $(TOMCAT_BUILD)/webapps/jsp-examples/examples-jsp.war -d $(TOMCAT_BUILD)/webapps/jsp-examples/
	unzip $(TOMCAT_BUILD)/webapps/servlets-examples/examples-servlet.war \
	-d $(TOMCAT_BUILD)/webapps/servlets-examples/
	rm $(TOMCAT_BUILD)/webapps/jsp-examples/examples-jsp.war
	rm $(TOMCAT_BUILD)/webapps/servlets-examples/examples-servlet.war
	# patch for port number, not in debian/patches as the file is only available now
	patch -p0 < debian/svg_example.patch