| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 6 |
include /usr/share/dpkg/buildflags.mk |
| 7 |
|
| 8 |
CFLAGS += $(CPPFLAGS) |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --builddirectory build |
| 12 |
|
| 13 |
override_dh_auto_configure: |
| 14 |
dh_auto_configure -- \ |
| 15 |
--disable-static \ |
| 16 |
--disable-rpath \ |
| 17 |
--with-initscript=systemd \ |
| 18 |
--with-gpp-default-behavior=REMOTE_FIRST |
| 19 |
|
| 20 |
execute_after_dh_auto_install: |
| 21 |
rm -r `find . -name '*.la'` |
| 22 |
rm -r `find . -type d -name log` |
| 23 |
rmdir debian/gssproxy/usr/include debian/gssproxy/usr/share/doc/gssproxy/doc |
| 24 |
mkdir -p debian/gssproxy/usr/share/doc/gssproxy/ |
| 25 |
cp -a docs debian/gssproxy/usr/share/doc/gssproxy/ |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 29 |
cd build && $(MAKE) test_proxymech |
| 30 |
endif |
| 31 |
|
| 32 |
execute_after_dh_clean: |
| 33 |
rm -rf m4 |
| 34 |
rm -f ABOUT-NLS config.rpath ltmain.sh |
| 35 |
rm -f po/Make* po/Rules-quot po/*.header po/*.sed po/*.sin |