| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
# Files provided by upstream overwritten during the build |
| 6 |
# (they need to be restored after the build to ensure that the source package |
| 7 |
# can be built after successful build - see https://bugs.debian.org/1048666) |
| 8 |
FILES = configure nbase/configure nbase/nbase_config.h.in ncrack_config.h.in \ |
| 9 |
nsock/include/nsock_config.h.in nsock/src/aclocal.m4 nsock/src/configure \ |
| 10 |
opensshlib/config.h.in opensshlib/configure opensshlib/install-sh |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_autoreconf_clean: |
| 16 |
dh_autoreconf_clean |
| 17 |
for F in $(FILES); do \ |
| 18 |
if [ -w $$F.upstream ]; then \ |
| 19 |
mv -f $$F.upstream $$F; \ |
| 20 |
fi \ |
| 21 |
done |
| 22 |
|
| 23 |
override_dh_autoreconf: |
| 24 |
for F in $(FILES); do \ |
| 25 |
cp -f $$F $$F.upstream; \ |
| 26 |
done |
| 27 |
dh_autoreconf |
| 28 |
|
| 29 |
override_dh_auto_configure: |
| 30 |
dh_auto_configure -- --prefix=/usr |
| 31 |
|
| 32 |
override_dh_dwz: |