| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
upstream: |
| 6 |
rm -f debian/local/dnstap.proto |
| 7 |
wget https://raw.githubusercontent.com/dnstap/dnstap.pb/master/dnstap.proto -O debian/local/dnstap.proto |
| 8 |
|
| 9 |
%: |
| 10 |
dh ${@} |
| 11 |
|
| 12 |
execute_after_dh_auto_clean: |
| 13 |
rm -f src/dnstap.pb/dnstap.proto |
| 14 |
|
| 15 |
# remove generated files |
| 16 |
rm -f src/dnstap.pb-c.h |
| 17 |
|
| 18 |
execute_after_dh_auto_configure: |
| 19 |
mkdir -p src/dnstap.pb |
| 20 |
ln -s ../../debian/local/dnstap.proto src/dnstap.pb/dnstap.proto |
| 21 |
|
| 22 |
execute_after_dh_auto_install: |
| 23 |
# removing unused files |
| 24 |
rm -f debian/tmp/usr/lib/*/*.la |
| 25 |
rm -f debian/tmp/usr/share/doc/*/CHANGES |
| 26 |
rm -f debian/tmp/usr/share/doc/*/COPYING* |
| 27 |
rm -f debian/tmp/usr/share/doc/*/README.md |