1
0
Fork 0
dnswire/debian/rules

26 lines
605 B
Text
Raw Normal View History

#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
upstream:
rm -f debian/local/dnstap.proto
wget https://raw.githubusercontent.com/dnstap/dnstap.pb/master/dnstap.proto -O debian/local/dnstap.proto
%:
dh ${@}
execute_after_dh_auto_clean:
rm -f src/dnstap.pb/dnstap.proto
# remove generated files
rm -f src/dnstap.pb-c.h
execute_after_dh_auto_configure:
mkdir -p src/dnstap.pb
ln -s ../../debian/local/dnstap.proto src/dnstap.pb/dnstap.proto
execute_after_dh_auto_install:
# removing unused files
rm -f debian/tmp/usr/lib/*/*.la
rm -f debian/tmp/usr/share/doc/*/README.md