File: rules

package info (click to toggle)
softhsm 1.1.4-4%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,300 kB
  • ctags: 1,296
  • sloc: sh: 10,185; cpp: 6,888; ansic: 1,227; makefile: 94
file content (31 lines) | stat: -rwxr-xr-x 809 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

export DEB_BUILD_HARDENING=1

DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)

ifeq ($(DEB_HOST_ARCH_BITS),64)
  CONFIGURE_FLAGS = --enable-64bit
endif

%:
	dh --with quilt $@

override_dh_auto_configure:
	autoreconf
	dh_auto_configure -- \
	  --sysconfdir=/etc/softhsm \
	  --localstatedir=/var/lib \
	  $(CONFIGURE_FLAGS)

override_dh_link:
	rm -rf $(CURDIR)/debian/libsofthsm/usr/share/doc/libsofthsm/
	rm -rf $(CURDIR)/debian/softhsm/usr/share/doc/softhsm/
	rm -rf $(CURDIR)/debian/libsofthsm-dev/usr/share/doc/libsofthsm-dev/
	dh_link

override_dh_makeshlibs:
	# Fail only if symbols have disappeared
	dh_makeshlibs -- -c1