File: rules

package info (click to toggle)
varnish-modules 0.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 604 kB
  • sloc: ansic: 2,430; makefile: 190; sh: 63; ruby: 35
file content (24 lines) | stat: -rwxr-xr-x 646 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildtools.mk

D := $(CURDIR)/debian/varnish-modules

export VARNISHAPI_DATAROOTDIR = $(shell $(PKG_CONFIG) varnishapi --variable=datarootdir)

%:
	dh $@ --with varnishabi

execute_after_dh_auto_install:
	# Empty dependency_libs field in .la files (c.f. Policy 10.2).
	sed -i "/^dependency_libs=/s/'.*'/''/" `find $D -name '*.la'`
	rm $D/usr/share/doc/varnish-modules/LICENSE

override_dh_auto_test:
	LD_PRELOAD=libnss_wrapper.so NSS_WRAPPER_HOSTS=../debian/varnishtest_nss_wrapper_hosts \
	dh_auto_test

override_dh_varnishabi:
	dh_varnishabi --strict