rapid7 / godap

The Data Analysis Pipeline
MIT License
17 stars 10 forks source link

Conditional libpcap / libgeoip pcap/geoip input/filter compilation #10

Closed dabdine-r7 closed 5 years ago

dabdine-r7 commented 5 years ago

What is this?

This patch makes it possible to go get github.com/rapid7/godap without having to have libpcap-dev or libgeoip installed on your system. Currently, installs without libpcap-dev available will result in a complaint by the go compiler that pcap.h does not exist.

By default, the build will NOT include the pcap filter as of this change. The pcap filter will have to be explicitly compiled in by using the -tags="libpcap" option during go get, go install, go build, etc. Likewise for geoip.

Testing

Manual