pkgsrc-WIP-changes archive

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

go-gopacket: Fix PLIST on non-BSD platforms



Module Name:	pkgsrc-wip
Committed By:	Min Sik Kim <minskim%NetBSD.org@localhost>
Pushed By:	minskim
Date:		Sat Sep 1 09:44:06 2018 -0700
Changeset:	2bb4aff88cd7986a940a9d6a1e42e012369eca59

Modified Files:
	go-gopacket/Makefile
	go-gopacket/PLIST

Log Message:
go-gopacket: Fix PLIST on non-BSD platforms

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

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

diffstat:
 go-gopacket/Makefile | 8 ++++++++
 go-gopacket/PLIST    | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diffs:
diff --git a/go-gopacket/Makefile b/go-gopacket/Makefile
index 75c36006b0..d6496217ac 100644
--- a/go-gopacket/Makefile
+++ b/go-gopacket/Makefile
@@ -21,6 +21,14 @@ SUBST_MESSAGE.ldflags=	Set LDFLAGS for cgo.
 SUBST_FILES.ldflags=	pcap/pcap.go
 SUBST_SED.ldflags=	-e 's, LDFLAGS:, LDFLAGS: -L${BUILDLINK_PREFIX.libpcap}/lib,g'
 
+PLIST_VARS+=	bsdbpf
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly"
+PLIST.bsdbpf=	yes
+.endif
+
 .include "../../devel/go-sys/buildlink3.mk"
 .include "../../net/go-net/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
diff --git a/go-gopacket/PLIST b/go-gopacket/PLIST
index fd25da8b6a..186b7cf4fb 100644
--- a/go-gopacket/PLIST
+++ b/go-gopacket/PLIST
@@ -10,7 +10,7 @@ bin/reassemblydump
 bin/statsassembly
 bin/synscan
 gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket.a
-gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/bsdbpf.a
+${PLIST.bsdbpf}gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/bsdbpf.a
 gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/bytediff.a
 gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/dumpcommand.a
 gopkg/pkg/${GO_PLATFORM}/github.com/google/gopacket/examples/util.a


Home | Main Index | Thread Index | Old Index