debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | |
| 4 | export DH_GOLANG_EXCLUDES := examples pcap/gopacket_benchmark pfring |
| 5 | export DH_GOLANG_INSTALL_EXTRA := $(wildcard pcap/*.pcap) pcapgo/tests |
| 6 | |
| 7 | DH_GOPKG := github.com/gopacket/gopacket |
| 8 | |
| 9 | %: |
| 10 | dh $@ --builddirectory=_build --buildsystem=golang |
| 11 | |
| 12 | override_dh_auto_configure: |
| 13 | dh_auto_configure |
| 14 | chmod -x _build/src/$(DH_GOPKG)/pcapgo/write.go |
| 15 | rm -rf _build/src/$(DH_GOPKG)/routing/routing_test.go |
| 16 | rm -rf _build/src/$(DH_GOPKG)/pcapgo/ngwrite_dsb_test.go |