File: rules

package info (click to toggle)
ldapjdk 4.21.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 9,768 kB
  • sloc: ansic: 44,727; java: 39,519; xml: 7,420; sh: 4,237; perl: 3,774; makefile: 1,681; cpp: 979
file content (35 lines) | stat: -rwxr-xr-x 1,129 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ln -s /usr/share/java/jss.jar $(CURDIR)/java-sdk/ldapjdk/lib/jss4.jar

	ant -buildfile $(CURDIR)/java-sdk/build.xml \
		dist

clean:
	rm -f $(CURDIR)/java-sdk/ldapjdk/lib/jss4.jar
	rm -rf $(CURDIR)/java-sdk/dist
	dh_clean

override_dh_install:
	mkdir -p $(CURDIR)/debian/libldap-java/usr/share/java/
	install -m 644 $(CURDIR)/java-sdk/dist/packages/ldapjdk.jar \
		$(CURDIR)/debian/libldap-java/usr/share/java/
	install -m 644 $(CURDIR)/java-sdk/dist/packages/ldapsp.jar \
		$(CURDIR)/debian/libldap-java/usr/share/java/
	install -m 644 $(CURDIR)/java-sdk/dist/packages/ldapfilt.jar \
		$(CURDIR)/debian/libldap-java/usr/share/java/
	install -m 644 $(CURDIR)/java-sdk/dist/packages/ldapbeans.jar \
		$(CURDIR)/debian/libldap-java/usr/share/java/

get-orig-source: SOURCE=ldapjdk
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 .