File: rules

package info (click to toggle)
apache-log4j1.2 1.2.17-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,860 kB
  • sloc: java: 35,182; xml: 4,813; cpp: 252; perl: 69; makefile: 15; sh: 14
file content (22 lines) | stat: -rwxr-xr-x 760 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
#!/usr/bin/make -f

VERSION   := 1.2.17

%:
	dh $@ --with maven-repo-helper

override_dh_auto_build:
	dh_auto_build -- jar javadoc -Djavamail.jar=/usr/share/java/javax.mail.jar

	cat debian/log4j.bnd | sed s/VERSION/$(VERSION)/ > debian/.log4j-versioned.bnd
	java -jar /usr/share/java/bnd.jar wrap --properties debian/.log4j-versioned.bnd dist/lib/log4j-$(VERSION).jar
	java -jar /usr/share/java/bnd.jar wrap --properties debian/.log4j-versioned.bnd \
		--classpath /usr/share/java/javax.mail.jar \
		--output log4j.jar dist/lib/log4j-$(VERSION).jar
	rm debian/.log4j-versioned.bnd dist/lib/log4j-$(VERSION).jar
	mv log4j.jar dist/lib/log4j-$(VERSION).jar

	rm dist/lib/log4j-*-sources.jar

get-orig-source:
	-uscan --download-current-version --force-download