| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 7 |
PKG=nocache |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
override_dh_auto_install: |
| 13 |
dh_auto_install -v -- PREFIX=/usr LIBDIR=/lib/$(PKG) |
| 14 |
# check if wrapper built for correct PREFIX and LIBDIR |
| 15 |
[ -n "$$(grep '/usr/lib/$(PKG)/$(PKG)' $(CURDIR)/debian/$(PKG)/usr/bin/$(PKG))" ] |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 19 |
# -NOCACHE_NR_FADVISE=2 dh_auto_test -v |
| 20 |
## #916415 |
| 21 |
timeout 11 ./nocache true |
| 22 |
endif |