Sha256: 3dbc239668a67f6d02ee38f57779fbe41ae1866973c81bd3d4ed5b7ecf8b8421

Contents?: true

Size: 500 Bytes

Versions: 7

Compression:

Stored size: 500 Bytes

Contents

require 'mkmf'

pcap_dir        = with_config("pcap-dir", "/usr/local")
pcap_includedir = with_config("pcap-includedir", pcap_dir + "/include")
pcap_libdir     = with_config("pcap-libdir", pcap_dir + "/lib")

$CFLAGS  = "-I#{pcap_includedir}"
$LDFLAGS = "-L#{pcap_libdir}"

have_library("socket", "socket")
have_library("xnet", "gethostbyname")
have_func("hstrerror")
if have_header("pcap.h") && have_library("pcap", "pcap_open_live")
  have_func("pcap_compile_nopcap")
  create_makefile("pcap")
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ahobson-pcap-0.7.0 ext/extconf.rb
romanbsd-pcap-0.7.0 ext/extconf.rb
blackfoundry-pcap-0.2.3 ext/extconf.rb
blackfoundry-pcap-0.2.2 ext/extconf.rb
blackfoundry-pcap-0.2.1 ext/extconf.rb
blackfoundry-pcap-0.2 ext/extconf.rb
blackfoundry-pcap-0.1 ext/extconf.rb