File: rules

package info (click to toggle)
tomcatjss 8.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 276 kB
  • sloc: java: 853; sh: 366; xml: 193; makefile: 24
file content (31 lines) | stat: -rwxr-xr-x 969 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

export CLASSPATH=/usr/share/java/jss.jar:/usr/share/java/tomcat9-coyote.jar

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant \
		-Dcatalina.jar=/usr/share/java/tomcat9-catalina.jar \
		-Dtomcat-api.jar=/usr/share/java/tomcat9-api.jar \
		-Dtomcat-coyote.jar=/usr/share/java/tomcat9-coyote.jar \
		-Dtomcat-juli.jar=/usr/share/java/tomcat9-juli.jar \
		-Dtomcat-util.jar=/usr/share/java/tomcat9-util.jar \
		-Dinstall.doc.dir=build/usr/share/doc/tomcatjss \
		-Dinstall.jar.dir=build/usr/share/java \
		-Dslf4j-api.jar=/usr/share/java/slf4j-api.jar \
		-Dversion=8.0.0 \
		install

override_dh_auto_install:
	mkdir -p debian/tmp
	mv build/usr debian/tmp

get-orig-source: SOURCE=tomcatjss
get-orig-source: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
get-orig-source:
	tar --transform 's,^,$(SOURCE)-$(UV)/,' \
		--exclude 'debian' --exclude-vcs \
		-cJf ../$(SOURCE)_$(UV).orig.tar.xz .