File: rules

package info (click to toggle)
c-icap 1%3A0.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,324 kB
  • sloc: ansic: 24,362; sh: 11,626; makefile: 219; perl: 67; awk: 10
file content (40 lines) | stat: -rwxr-xr-x 885 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
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

# Warning on all
export DEB_CFLAGS_MAINT_APPEND  := -Wall
# More hardening
export DEB_BUILD_MAINT_OPTIONS  := hardening=+all

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--includedir=/usr/include \
		--sysconfdir=/etc/c-icap \
		--localstatedir=/var \
		--with-pcre

override_dh_fixperms:
	dh_fixperms
	chmod 0644 debian/c-icap/etc/c-icap/*

override_dh_install:
	/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap
	/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap-client
	/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap-mkbdb
	dh_install
	rm $(CURDIR)/debian/c-icap/usr/lib/*/c_icap/*.la

	
.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbg-package=libicapapi4-dbg