FreeBSD Bugzilla – Attachment 162942 Details for
Bug 204411
[patch] net/wireshark: convert to OPTIONS helpers, drop some obsolete options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch.diff
patch-wireshark.diff (text/plain), 14.15 KB, created by
Andriy Voskoboinyk
on 2015-11-10 00:29:59 UTC
(
hide
)
Description:
Patch.diff
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2015-11-10 00:29:59 UTC
Size:
14.15 KB
patch
obsolete
>Index: net/wireshark/Makefile >=================================================================== >--- net/wireshark/Makefile (revision 401048) >+++ net/wireshark/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME?= wireshark > PORTVERSION= 1.12.8 >+PORTREVISION= 1 > CATEGORIES= net ipv6 > MASTER_SITES= http://www.wireshark.org/download/src/ \ > http://ftp.uni-kl.de/pub/wireshark/src/ \ >@@ -12,34 +13,29 @@ > http://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ > ftp://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ > http://wireshark.zing.org/download/src/ >-DISTNAME= ${DATADIR_NAME}-${PORTVERSION} > > MAINTAINER= marcus@FreeBSD.org > COMMENT?= Powerful network analyzer/capture tool > > LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/COPYING > >-DATADIR_NAME= wireshark >+CONFLICTS?= wireshark-qt5-[0-9]* > >+GNU_CONFIGURE= yes >+USES= alias cpe gmake libtool perl5 pkgconfig python:build tar:bzip2 > USE_PERL5= build >-USES= alias cpe gettext gmake iconv libtool perl5 pkgconfig \ >- python:build tar:bzip2 >-WANT_GNOME= yes >+USE_GNOME= glib20 > USE_OPENSSL= yes >-CONFLICTS?= wireshark-qt5-[0-9]* >- > CONFIGURE_ARGS+= --program-transform-name="" \ >- --with-ssl=${OPENSSLBASE} \ >- --with-qt=no >+ --with-ssl=${OPENSSLBASE} >+INSTALL_TARGET= install-strip > USE_LDCONFIG= yes >-DATADIR= ${PREFIX}/share/${DATADIR_NAME} >+ > CFLAGS+= -funit-at-a-time > LIBS+= -L${LOCALBASE}/lib >+PLIST_SUB+= PORTVERSION=${PORTVERSION} > >-DESKTOP_ENTRIES= "Wireshark" "Network Protocol Analyzer" \ >- "${DATADIR}/hi48-app-wireshark.png" \ >- "wireshark" "System;Monitor;GTK;" true >- > .for x in capinfos editcap mergecap rawshark text2pcap dftest randpkt \ > reordercap captype > .if defined(LITE) >@@ -52,154 +48,100 @@ > .endif > .endfor > >-.if !defined(LITE) >-OPTIONS_DEFINE= RTP SNMP ADNS PCRE IPV6 GEOIP LUA CARES GSSAPI X11 \ >- GNUTLS GCRYPT THREADS >+OPTIONS_DEFINE= RTP SNMP IPV6 GEOIP LUA GCRYPT GNUTLS > >-OPTIONS_RADIO= GUI >-OPTIONS_RADIO_GUI= GTK3 QT5 >+OPTIONS_RADIO= ASYNCDNS GUI >+OPTIONS_SINGLE= KERBEROS > >-OPTIONS_DEFAULT?= SNMP ADNS PCRE IPV6 GEOIP GSSAPI X11 GTK3 >+OPTIONS_RADIO_ASYNCDNS= ADNS CARES >+OPTIONS_RADIO_GUI= GTK2 GTK3 QT5 >+OPTIONS_SINGLE_KERBEROS=KRB_BASE KRB_HEIMDAL KRB_MIT KRB_NONE > >+OPTIONS_DEFAULT?= SNMP ADNS IPV6 GEOIP KRB_BASE GTK3 >+ > RTP_DESC= Enable support for playing back RTP streams >-ADNS_DESC= Enable asynchronous DNS lookup support >-.endif >+GCRYPT_DESC= IPsec decryption support >+GNUTLS_DESC= SSL decryption support >+ASYNCDNS_DESC= Asynchronous DNS lookup support >+ADNS_DESC= Asynchronous DNS resolution via GNU adns >+KERBEROS_DESC= Kerberos dissection support >+KRB_BASE_DESC= Kerberos support via base system >+KRB_HEIMDAL_DESC= Kerberos support via security/heimdal >+KRB_MIT_DESC= Kerberos support via security/krb5 >+KRB_NONE_DESC= Disable Kerberos support > >-.include <bsd.port.options.mk> >+GTK2_USE= GNOME=gtk20 >+GTK3_USE= GNOME=gtk30 >+QT5_USE= QT5=core,gui,widgets,printsupport,buildtools_build > >-.if ${PORT_OPTIONS:MX11} >-USE_XORG= x11 >-.endif >+LUA_USES= lua:5[1-2] >+KRB_BASE_USES= gssapi >+KRB_HEIMDAL_USES= gssapi:heimdal >+KRB_MIT_USES= gssapi:mit > >-.if ${PORT_OPTIONS:MX11} >-PLIST_SUB+= WIRESHARK=bin/wireshark WIRESHARK_MAN="" >-.else >-PLIST_SUB+= WIRESHARK="@comment wireshark not built" \ >- WIRESHARK_MAN="@comment wireshark not built " >-USE_GNOME+= glib20 >-CONFIGURE_ARGS+= --enable-wireshark=no \ >- --disable-gtktest >-.endif >+RTP_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio >+SNMP_LIB_DEPENDS= libsmi.so:${PORTSDIR}/net-mgmt/libsmi >+ADNS_LIB_DEPENDS= libadns.so:${PORTSDIR}/dns/adns >+CARES_LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares >+GEOIP_LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP >+GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt >+GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls > >-.if ${PORT_OPTIONS:MGTK3} >-USE_GNOME+= gtk30 >-CONFIGURE_ARGS+= --with-gtk2=no \ >- --with-gtk3=yes \ >- --with-qt=no >-.endif >+IPV6_CONFIGURE_ENABLE= ipv6 > >-.if ${PORT_OPTIONS:MQT5} >-CONFIGURE_ARGS+= --with-gtk2=no \ >- --with-gtk3=no \ >- --with-qt=yes >-USE_QT5+= core widgets printsupport buildtools_build >-PKGNAMESUFFIX+= -qt5 >-MAKE_ENV+= PATH="${PATH}:${LOCALBASE}/lib/qt5/bin" >-CONFIGURE_ENV+= PATH="${PATH}:${LOCALBASE}/lib/qt5/bin" >-.endif >+KRB_NONE_CONFIGURE_ON= --without-krb5 >+KRB_NONE_CONFIGURE_OFF= --with-krb5 >+KRB_NONE_CONFIGURE_ENV_OFF= KRB5_CONFIG=${KRB5CONFIG} > >-GNU_CONFIGURE= yes >-PLIST_SUB+= PORTVERSION=${PORTVERSION} >+GTK2_CONFIGURE_WITH= gtk2 >+GTK3_CONFIGURE_WITH= gtk3 >+QT5_CONFIGURE_WITH= qt >+LUA_CONFIGURE_WITH= lua >+RTP_CONFIGURE_WITH= portaudio >+SNMP_CONFIGURE_WITH= libsmi >+ADNS_CONFIGURE_WITH= adns >+CARES_CONFIGURE_WITH= c-ares >+GEOIP_CONFIGURE_WITH= geoip >+GCRYPT_CONFIGURE_WITH= gcrypt >+GNUTLS_CONFIGURE_WITH= gnutls > >-.if ${PORT_OPTIONS:MIPV6} >-CONFIGURE_ARGS+= --enable-ipv6=yes >-.else >-CONFIGURE_ARGS+= --enable-ipv6=no >-.endif >+LUA_CPPFLAGS= -I${LUA_INCDIR} > >-# XXX - untested >-.if ${PORT_OPTIONS:MTHREADS} >-CONFIGURE_ARGS+= --enable-threads >-.endif >+QT5_MAKE_ENV= PATH="${PATH}:${QT_BINDIR}" >+QT5_VARS= PKGNAMESUFFIX=-qt5 > >-.if ${PORT_OPTIONS:MPCRE} && !defined(LITE) >-LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre >-CONFIGURE_ARGS+= --with-pcre=${LOCALBASE}/lib >-.else >-CONFIGURE_ARGS+= --with-pcre=no >-.endif >+OPTIONS_SUB= LUA > >-.if ${PORT_OPTIONS:MLUA} && !defined(LITE) >-USES+= lua:51 >-CONFIGURE_ARGS+=--with-lua=${PREFIX} >-CFLAGS+= -I${LUA_INCDIR} >-CPPFLAGS+= -I${LUA_INCDIR} >-PLIST_SUB+= LUA="" >-.else >-CONFIGURE_ARGS+=--without-lua >-PLIST_SUB+= LUA="@comment " >-.endif >+.include <bsd.port.options.mk> > >-.if ${PORT_OPTIONS:MRTP} && !defined(LITE) >-LIB_DEPENDS+= libportaudio.so:${PORTSDIR}/audio/portaudio >-CONFIGURE_ARGS+=--with-portaudio=${LOCALBASE} >+.if empty(PORT_OPTIONS:MGTK2) && empty(PORT_OPTIONS:MGTK3) && \ >+ empty(PORT_OPTIONS:MQT5) >+CONFIGURE_ARGS+= --disable-wireshark >+PLIST_SUB+= GUI="@comment " > .else >-CONFIGURE_ARGS+=--without-portaudio >+USES+= desktop-file-utils shared-mime-info >+INSTALLS_ICONS= yes >+INSTALL_TARGET+= install_desktop_files >+PLIST_SUB+= GUI="" > .endif > >-.if ${PORT_OPTIONS:MSNMP} && !defined(LITE) >-LIB_DEPENDS+= libsmi.so:${PORTSDIR}/net-mgmt/libsmi >-CONFIGURE_ARGS+= --with-libsmi=${LOCALBASE} >-.else >-CONFIGURE_ARGS+= --with-libsmi=no >+.if empty(PORT_OPTIONS:MGTK2) && empty(PORT_OPTIONS:MGTK3) && \ >+ ${PORT_OPTIONS:MRTP} >+IGNORE= the RTP support requires GTK+ frontend > .endif > >-.if ${PORT_OPTIONS:MADNS} && !defined(LITE) >-LIB_DEPENDS+= libadns.so:${PORTSDIR}/dns/adns >-CONFIGURE_ARGS+= --with-adns=${LOCALBASE}/lib >-.else >-CONFIGURE_ARGS+= --with-adns=no >-.endif >- >-.if ${PORT_OPTIONS:MCARES} && !defined(LITE) >-LIB_DEPENDS+= libcares.so:${PORTSDIR}/dns/c-ares >-CONFIGURE_ARGS+= --with-c-ares=${LOCALBASE}/lib >-.else >-CONFIGURE_ARGS+= --with-c-ares=no >-.endif >- >-.if ${PORT_OPTIONS:MGEOIP} && !defined(LITE) >-LIB_DEPENDS+= libGeoIP.so:${PORTSDIR}/net/GeoIP >-CONFIGURE_ARGS+= --with-geoip=${LOCALBASE}/lib >-.else >-CONFIGURE_ARGS+= --with-geoip=no >-.endif >- >-.if ${PORT_OPTIONS:MGNUTLS} >-LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls \ >- libgcrypt.so:${PORTSDIR}/security/libgcrypt >-CONFIGURE_ARGS+=--with-libgcrypt-prefix=${LOCALBASE} \ >- --with-gnutls=yes >-.else >-CONFIGURE_ARGS+=--with-gnutls=no >-.endif >- >-.if ${PORT_OPTIONS:MGCRYPT} >-LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt >-CONFIGURE_ARGS+=--with-libgcrypt-prefix=${LOCALBASE} >-.endif >- >-.if ! ${PORT_OPTIONS:MGSSAPI} >-CONFIGURE_ARGS+=--with-krb5=no >-.else >-KRB5_CONFIG?= ${LOCALBASE}/bin/krb5-config >-CONFIGURE_ENV+= KRB5_CONFIG=${KRB5_CONFIG} >-LIB_DEPENDS+= libkrb5.so:${PORTSDIR}/security/krb5 >-.endif >- >-PKG_MESSAGE= ${FILESDIR}/pkg-message >- > post-patch: > @${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \ >- s|-DGDK_PIXBUF_DISABLE_DEPRECATED||g ; \ >- s|-Wl,--as-needed|| ' \ >+ s|-DQT_GUI_LIB|-DQT_GUI_LIB $$CPPFLAGS| ' \ > ${WRKSRC}/configure >+ @${REINPLACE_CMD} -e 's|/usr/share/applications|${DESKTOPDIR}|g ; \ >+ s|/usr/share|${LOCALBASE}/share|g ; \ >+ s|{mime/packages,applications}|mime/packages| ; \ >+ s|{apps,mimetypes}|apps $$(DESTDIR)${LOCALBASE}/share/icons/hicolor/$$$${size}x$$$${size}/mimetypes|' \ >+ ${WRKSRC}/Makefile.in > >-post-install: >- ${INSTALL_DATA} ${WRKSRC}/image/hi48-app-wireshark.png \ >- ${STAGEDIR}${DATADIR} >-.if ${PORT_OPTIONS:MQT5} >- ${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-qt ${STAGEDIR}${PREFIX}/bin/${PORTNAME} >-.endif >+post-install-QT5-on: >+ ${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-qt \ >+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} > > .include <bsd.port.mk> >Index: net/wireshark/files/patch-configure >=================================================================== >--- net/wireshark/files/patch-configure (revision 401048) >+++ net/wireshark/files/patch-configure (working copy) >@@ -1,20 +0,0 @@ >---- configure.orig 2015-05-12 20:26:44 UTC >-+++ configure >-@@ -35189,7 +35189,7 @@ $as_echo "yes" >&6; } >- # searches the specified directory. >- # >- CPPFLAGS="$CPPFLAGS -I$krb5_dir/include" >-- ac_heimdal_version=`grep heimdal $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*heimdal.*$/HEIMDAL/'` >-+ ac_heimdal_version=`grep heimdal $krb5_dir/include/krb5.h | head -n 1 | tr "[:lower:]" "[:upper:]" sed 's/^.*heimdal.*$/HEIMDAL/'` >- # MIT Kerberos moved krb5.h to krb5/krb5.h starting with release 1.5 >- ac_mit_version_olddir=`grep 'Massachusetts Institute of Technology' $krb5_dir/include/krb5.h | head -n 1 | sed 's/^.*Massachusetts Institute of Technology.*$/MIT/'` >- ac_mit_version_newdir=`grep 'Massachusetts Institute of Technology' $krb5_dir/include/krb5/krb5.h | head -n 1 | sed 's/^.*Massachusetts Institute of Technology.*$/MIT/'` >-@@ -35249,7 +35249,7 @@ fi >- >- if test -x "$KRB5_CONFIG" >- then >-- KRB5_FLAGS=`"$KRB5_CONFIG" --cflags` >-+ KRB5_FLAGS=`"$KRB5_CONFIG" --cflags | sed -e 's/@INCLUDE_des@//g'` >- KRB5_LIBS=`"$KRB5_CONFIG" --libs` >- CPPFLAGS="$CPPFLAGS $KRB5_FLAGS" >- # >Index: net/wireshark/files/pkg-message >=================================================================== >--- net/wireshark/files/pkg-message (revision 401048) >+++ net/wireshark/files/pkg-message (working copy) >@@ -1,17 +0,0 @@ >-=============================================================================== >- >-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 >- >-=============================================================================== >Index: net/wireshark/pkg-message >=================================================================== >--- net/wireshark/pkg-message (revision 0) >+++ net/wireshark/pkg-message (working copy) >@@ -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 >+ >+=============================================================================== > >Property changes on: net/wireshark/pkg-message >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net/wireshark/pkg-plist >=================================================================== >--- net/wireshark/pkg-plist (revision 401048) >+++ net/wireshark/pkg-plist (working copy) >@@ -7,7 +7,7 @@ > @mode > @group > %%EDITCAP%% >-%%WIRESHARK%% >+%%GUI%%bin/wireshark > %%MERGECAP%% > %%RANDPKT%% > %%RAWSHARK%% >@@ -49,8 +49,25 @@ > %%RANDPKT_MAN%%man/man1/randpkt.1.gz > %%REORDERCAP_MAN%%man/man1/reordercap.1.gz > man/man1/tshark.1.gz >-%%WIRESHARK_MAN%%man/man1/wireshark.1.gz >+%%GUI%%man/man1/wireshark.1.gz > man/man4/wireshark-filter.4.gz >+%%GUI%%share/applications/wireshark.desktop >+%%GUI%%share/icons/hicolor/128x128/apps/wireshark.png >+%%GUI%%share/icons/hicolor/128x128/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/16x16/apps/wireshark.png >+%%GUI%%share/icons/hicolor/16x16/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/24x24/apps/wireshark.png >+%%GUI%%share/icons/hicolor/24x24/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/256x256/apps/wireshark.png >+%%GUI%%share/icons/hicolor/256x256/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/32x32/apps/wireshark.png >+%%GUI%%share/icons/hicolor/32x32/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/48x48/apps/wireshark.png >+%%GUI%%share/icons/hicolor/48x48/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/64x64/apps/wireshark.png >+%%GUI%%share/icons/hicolor/64x64/mimetypes/application-wireshark-doc.png >+%%GUI%%share/icons/hicolor/scalable/apps/wireshark.svg >+%%GUI%%share/mime/packages/wireshark.xml > %%DATADIR%%/AUTHORS-SHORT > %%DATADIR%%/COPYING > %%DATADIR%%/capinfos.html >@@ -109,7 +126,6 @@ > %%DATADIR%%/help/getting_started.txt > %%DATADIR%%/help/overview.txt > %%DATADIR%%/help/toc >-%%DATADIR%%/hi48-app-wireshark.png > %%DATADIR%%/ipmap.html > %%DATADIR%%/manuf > %%DATADIR%%/mergecap.html >Index: net/wireshark-lite/Makefile >=================================================================== >--- net/wireshark-lite/Makefile (revision 401048) >+++ net/wireshark-lite/Makefile (working copy) >@@ -7,4 +7,6 @@ > MASTERDIR= ${.CURDIR}/../wireshark > COMMENT= Powerful network analyzer/capture tool (lite package) > >+OPTIONS_EXCLUDE= LUA RTP SNMP ADNS CARES GEOIP >+ > .include "${MASTERDIR}/Makefile" >Index: net/wireshark-qt5/Makefile >=================================================================== >--- net/wireshark-qt5/Makefile (revision 401048) >+++ net/wireshark-qt5/Makefile (working copy) >@@ -5,7 +5,7 @@ > > CONFLICTS= wireshark-[0-9]* > >-OPTIONS_EXCLUDE= GTK3 >-OPTIONS_DEFAULT= SNMP ADNS PCRE IPV6 GEOIP GSSAPI X11 QT5 >+OPTIONS_EXCLUDE= GTK2 GTK3 >+OPTIONS_DEFAULT= SNMP ADNS IPV6 GEOIP KRB_BASE QT5 > > .include "${MASTERDIR}/Makefile"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204411
:
162942
|
162943
|
162944
|
162945
|
162946
|
162991
|
163218
|
163219
|
163220
|
163221
|
163222
|
163223
|
163224