pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix pcap linking on NetBSD



Module Name:	pkgsrc-wip
Committed By:	Filip Hajny <filip%joyent.com@localhost>
Pushed By:	fhajny
Date:		Thu Jan 5 16:13:59 2017 +0000
Changeset:	327647a1194d255b346aa759d79bd42eefb8f69f

Modified Files:
	beats/distinfo
Added Files:
	beats/patches/patch-vendor_github.com_tsg_gopacket_pcap_pcap.go

Log Message:
Fix pcap linking on NetBSD

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=327647a1194d255b346aa759d79bd42eefb8f69f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 beats/distinfo                                     |  1 +
 ...tch-vendor_github.com_tsg_gopacket_pcap_pcap.go | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diffs:
diff --git a/beats/distinfo b/beats/distinfo
index 755d612..5be5d98 100644
--- a/beats/distinfo
+++ b/beats/distinfo
@@ -4,3 +4,4 @@ SHA1 (beats-5.1.1.tar.gz) = 6847fc4b96adcf38b3b46a2c31a6109797bfd07b
 RMD160 (beats-5.1.1.tar.gz) = 9cc18d886df86e4cead9c9ab546a127a8f643893
 SHA512 (beats-5.1.1.tar.gz) = 0eb646faa7ff8fb310f97507c105b1dac5ee1ed114c858f92905ae8a1e7a3a2a2a095e52a5155194df9b699e93dd93f00e9da9b1d71b22fbcc539feaa705b984
 Size (beats-5.1.1.tar.gz) = 16500866 bytes
+SHA1 (patch-vendor_github.com_tsg_gopacket_pcap_pcap.go) = 2ef13f84cbf2e1da428e7b08625ffa6111ebcdf5
diff --git a/beats/patches/patch-vendor_github.com_tsg_gopacket_pcap_pcap.go b/beats/patches/patch-vendor_github.com_tsg_gopacket_pcap_pcap.go
new file mode 100644
index 0000000..bc5ff8c
--- /dev/null
+++ b/beats/patches/patch-vendor_github.com_tsg_gopacket_pcap_pcap.go
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Just require pcap, fixes NetBSD.
+
+--- vendor/github.com/tsg/gopacket/pcap/pcap.go.orig	2016-12-06 07:41:08.000000000 +0000
++++ vendor/github.com/tsg/gopacket/pcap/pcap.go
+@@ -8,14 +8,7 @@
+ package pcap
+ 
+ /*
+-#cgo linux LDFLAGS: -lpcap
+-#cgo freebsd LDFLAGS: -lpcap
+-#cgo openbsd LDFLAGS: -lpcap
+-#cgo darwin LDFLAGS: -lpcap
+-#cgo solaris LDFLAGS: -lpcap
+-#cgo windows CFLAGS: -I C:/WpdPack/Include
+-#cgo windows,386 LDFLAGS: -L C:/WpdPack/Lib -lwpcap
+-#cgo windows,amd64 LDFLAGS: -L C:/WpdPack/Lib/x64 -lwpcap
++#cgo LDFLAGS: -lpcap
+ #include <stdlib.h>
+ #include <pcap.h>
+ 


Home | Main Index | Thread Index | Old Index