~ludovicc/uj/tomcat6

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Ludovic
  • Date: 2010-02-08 23:13:42 UTC
  • Revision ID: ludovic.claude@laposte.net-20100208231342-mypnuofeip45ydyn
[ Ludovic Claude ]
* Update the POM files for the new version of Tomcat
[ Jason Brittain ]
* Fixed a bug in the init script: When a start fails, the PID file was
  being left in place.  Now the init script makes sure it is deleted.
* Fixed a packaging bug that results in the ROOT webapp not being properly
  installed after an uninstall, then a reinstall.
* control: Corrected a couple of comments (no functional change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
export QUILT_PATCHES = debian/patches
 
4
 
3
5
JAVA_HOME := /usr/lib/jvm/default-java
4
6
JAVA_CMD := $(JAVA_HOME)/bin/java
5
7
BLDLIB := output/build/lib
22
24
T_JARS := tomcat-i18n-fr tomcat-i18n-es tomcat-i18n-ja catalina-ant
23
25
T_MAVENIZED_JARS := jasper-el annotations-api catalina-tribes tomcat-coyote jasper catalina-ha catalina
24
26
# Version for the POMs available on the sonatype repository
25
 
P_VER := 6.0.16
 
27
P_VER := $(T_VER)
26
28
 
27
29
ANT_ARGS := -Dcompile.debug=true \
28
30
        -Dant.build.javac.source=1.5 \
39
41
ANT_INVOKE := $(JAVA_CMD) -classpath "$(DEB_CLASSPATH)" \
40
42
        org.apache.tools.ant.Main $(ANT_ARGS)
41
43
 
42
 
build: build-stamp
 
44
patch: debian/stamp-patch
 
45
debian/stamp-patch:
 
46
        quilt push -a || test $$? = 2
 
47
        touch $@
 
48
 
 
49
unpatch:
 
50
        quilt pop -a -R || test $$? = 2
 
51
        rm -rf $(CURDIR)/.pc debian/stamp-patch
 
52
 
 
53
configure: patch
 
54
 
 
55
build: configure build-stamp
43
56
build-stamp:
44
57
        dh_testdir
45
 
        $(ANT_INVOKE) build-only
46
 
        $(ANT_INVOKE) build-docs
47
58
        $(ANT_INVOKE) deploy-webapps
48
59
        javadoc -subpackages "javax.servlet" -d "output/api" \
49
60
                -sourcepath "java" -author -version -breakiterator \
51
62
                -bottom "Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved."
52
63
        touch build-stamp
53
64
 
54
 
clean:
 
65
clean: unpatch
55
66
        dh_testdir
56
67
        dh_testroot
57
68
        -$(ANT_INVOKE) clean
92
103
        mh_installjar -plibservlet2.5-java -l -s debian/poms/servlet-api.pom output/build/lib/servlet-api.jar
93
104
        mh_installjar -plibservlet2.5-java -l -s debian/poms/jsp-api.pom output/build/lib/jsp-api.jar
94
105
        mh_installjar -plibservlet2.5-java -l -s debian/poms/el-api.pom output/build/lib/el-api.jar
 
106
        rm -rf debian/tomcat6/usr/share/tomcat6/webapps/default_root/.svn \
 
107
                debian/tomcat6/usr/share/tomcat6/webapps/default_root/META-INF/.svn
95
108
        chmod a+x debian/tomcat6-common/usr/share/tomcat6/bin/*.sh
96
109
        chmod a+x debian/tomcat6-user/usr/bin/tomcat6-instance-create
97
110
        chmod a+x debian/tomcat6-user/usr/share/tomcat6/skel/bin/*.sh
107
120
binary: binary-indep binary-arch
108
121
 
109
122
get-orig-source:
110
 
        -uscan --upstream-version 0
 
123
        -uscan --download-version $(VERSION) --force-download --rename
111
124
 
112
125
get-orig-pom:
113
126
        wget -O debian/poms/annotations-api.pom http://repository.sonatype.org/service/local/repositories/central/content/org/apache/tomcat/annotations-api/$(P_VER)/annotations-api-$(P_VER).pom