svn commit: r376311 - in head/net/wireshark: . files
Joe Marcus Clarke
marcus at FreeBSD.org
Mon Jan 5 16:37:10 UTC 2015
Author: marcus
Date: Mon Jan 5 16:37:08 2015
New Revision: 376311
URL: https://svnweb.freebsd.org/changeset/ports/376311
QAT: https://qat.redports.org/buildarchive/r376311/
Log:
Setgid dumpcap to network so non-root users can use wireshark in capture
mode.
PR: 195435
Submitted by: yuri at rawbw.com
No objection from: ports@
Added:
head/net/wireshark/files/pkg-message (contents, props changed)
Modified:
head/net/wireshark/Makefile
head/net/wireshark/pkg-plist
Modified: head/net/wireshark/Makefile
==============================================================================
--- head/net/wireshark/Makefile Mon Jan 5 16:30:18 2015 (r376310)
+++ head/net/wireshark/Makefile Mon Jan 5 16:37:08 2015 (r376311)
@@ -3,7 +3,7 @@
PORTNAME?= wireshark
PORTVERSION= 1.12.2
-PORTREVISION?= 2
+PORTREVISION?= 3
CATEGORIES= net ipv6
MASTER_SITES= http://www.wireshark.org/download/src/ \
http://ftp.uni-kl.de/pub/wireshark/src/ \
@@ -162,6 +162,8 @@ CONFIGURE_ARGS+=--with-libgcrypt-prefix=
CONFIGURE_ARGS+=--with-krb5=no
.endif
+PKG_MESSAGE= ${FILESDIR}/pkg-message
+
post-patch:
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||g ; \
Added: head/net/wireshark/files/pkg-message
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/wireshark/files/pkg-message Mon Jan 5 16:37:08 2015 (r376311)
@@ -0,0 +1,17 @@
+===============================================================================
+
+In order for wireshark be able to capture packets when used by unprivileged
+user, /dev/bpf should be in network group and have read-write permissions.
+For example:
+
+# chgrp network /dev/bpf*
+# chmod g+r /dev/bpf*
+# chmod g+w /dev/bpf*
+
+In order for this to persist across reboots, add the following to
+/etc/devfs.conf:
+
+own bpf* root:network
+perm bpf* 0660
+
+===============================================================================
Modified: head/net/wireshark/pkg-plist
==============================================================================
--- head/net/wireshark/pkg-plist Mon Jan 5 16:30:18 2015 (r376310)
+++ head/net/wireshark/pkg-plist Mon Jan 5 16:37:08 2015 (r376311)
@@ -1,7 +1,11 @@
%%CAPINFOS%%
%%CAPTYPE%%
%%DFTEST%%
+ at group network
+ at mode 2555
bin/dumpcap
+ at mode
+ at group
%%EDITCAP%%
%%WIRESHARK%%
%%MERGECAP%%
More information about the svn-ports-all
mailing list