| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Enable compiler hardening flags. |
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 5 |
|
| 6 |
# Enable verbose test output. |
| 7 |
export C_TAP_VERBOSE = 1 |
| 8 |
|
| 9 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ |
| 13 |
|
| 14 |
override_dh_auto_clean: |
| 15 |
rm -rf build-mit build-heimdal |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
mkdir build-mit build-heimdal |
| 19 |
dh_auto_configure -Bbuild-mit -- \ |
| 20 |
--enable-reduced-depends --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
| 21 |
--with-krb5-include=/usr/include/mit-krb5 \ |
| 22 |
--with-krb5-lib=/usr/lib/$(DEB_HOST_MULTIARCH)/mit-krb5 \ |
| 23 |
--with-kadm-client-include=/usr/include/mit-krb5 \ |
| 24 |
--with-kadm-client-lib=/usr/lib/$(DEB_HOST_MULTIARCH)/mit-krb5 |
| 25 |
dh_auto_configure -Bbuild-heimdal -- \ |
| 26 |
--enable-reduced-depends --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
| 27 |
--with-krb5-include=/usr/include/heimdal \ |
| 28 |
--with-krb5-lib=/usr/lib/$(DEB_HOST_MULTIARCH)/heimdal \ |
| 29 |
--with-kadm-client-include=/usr/include/heimdal \ |
| 30 |
--with-kadm-client-lib=/usr/lib/$(DEB_HOST_MULTIARCH)/heimdal |
| 31 |
|
| 32 |
override_dh_auto_build: |
| 33 |
dh_auto_build -Bbuild-mit |
| 34 |
dh_auto_build -Bbuild-heimdal |
| 35 |
|
| 36 |
override_dh_auto_test: |
| 37 |
dh_auto_test -Bbuild-mit |
| 38 |
dh_auto_test -Bbuild-heimdal |
| 39 |
|
| 40 |
override_dh_auto_install: |
| 41 |
dh_auto_install -Bbuild-mit --destdir=debian/libpam-krb5 |
| 42 |
dh_auto_install -Bbuild-heimdal --destdir=debian/libpam-heimdal |