Date: Thursday, May 7, 2015 @ 18:59:23 Author: anatolik Revision: 132886
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: wireshark/repos/community-staging-i686/ wireshark/repos/community-staging-i686/PKGBUILD (from rev 132884, wireshark/trunk/PKGBUILD) wireshark/repos/community-staging-i686/configure-pixmap-fix.diff (from rev 132884, wireshark/trunk/configure-pixmap-fix.diff) wireshark/repos/community-staging-i686/wireshark-gtk.install (from rev 132884, wireshark/trunk/wireshark-gtk.install) wireshark/repos/community-staging-i686/wireshark-qt.install (from rev 132884, wireshark/trunk/wireshark-qt.install) wireshark/repos/community-staging-i686/wireshark.install (from rev 132885, wireshark/trunk/wireshark.install) wireshark/repos/community-staging-x86_64/ wireshark/repos/community-staging-x86_64/PKGBUILD (from rev 132885, wireshark/trunk/PKGBUILD) wireshark/repos/community-staging-x86_64/configure-pixmap-fix.diff (from rev 132885, wireshark/trunk/configure-pixmap-fix.diff) wireshark/repos/community-staging-x86_64/wireshark-gtk.install (from rev 132885, wireshark/trunk/wireshark-gtk.install) wireshark/repos/community-staging-x86_64/wireshark-qt.install (from rev 132885, wireshark/trunk/wireshark-qt.install) wireshark/repos/community-staging-x86_64/wireshark.install (from rev 132885, wireshark/trunk/wireshark.install) ----------------------------------------------------+ community-staging-i686/PKGBUILD | 98 +++++++++++++++++++ community-staging-i686/configure-pixmap-fix.diff | 14 ++ community-staging-i686/wireshark-gtk.install | 12 ++ community-staging-i686/wireshark-qt.install | 11 ++ community-staging-i686/wireshark.install | 18 +++ community-staging-x86_64/PKGBUILD | 98 +++++++++++++++++++ community-staging-x86_64/configure-pixmap-fix.diff | 14 ++ community-staging-x86_64/wireshark-gtk.install | 12 ++ community-staging-x86_64/wireshark-qt.install | 11 ++ community-staging-x86_64/wireshark.install | 18 +++ 10 files changed, 306 insertions(+) Copied: wireshark/repos/community-staging-i686/PKGBUILD (from rev 132884, wireshark/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,98 @@ +# $Id$ +# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Guillaume ALAUX <guilla...@archlinux.org> +# Contributor: Florian Pritz <bluewind at jabber dot ccc dot de> +pkgname=('wireshark-cli' 'wireshark-gtk' 'wireshark-qt') +pkgbase=wireshark +pkgver=1.12.4 +pkgrel=4 +arch=('i686' 'x86_64') +license=('GPL2') +makedepends=('qt4' 'gtk3' 'krb5' 'libpcap' 'bash' 'gnutls' 'portaudio' + 'lua52' 'python' 'desktop-file-utils' 'hicolor-icon-theme') +url='http://www.wireshark.org/' +source=(http://www.wireshark.org/download/src/${pkgbase}-${pkgver}.tar.bz2 + configure-pixmap-fix.diff) +sha1sums=('dbbd4090c02fe170f35b26fa26d8aba0b399c659' + 'c383bad83442d75f44afe1737848b9dee4f35b8f') + +prepare() { + cd ${pkgbase}-${pkgver} + sed -i 's/$(AM_V_RCC)rcc/&-qt4/p' ui/qt/Makefile.am + patch -uNp0 -i ../configure-pixmap-fix.diff +} + +build() { + cd ${pkgbase}-${pkgver} + + ./autogen.sh + ./configure \ + --prefix=/usr \ + --with-qt \ + --with-gtk3=yes \ + --with-pcap \ + --with-zlib \ + --with-lua \ + --with-portaudio \ + --with-ssl \ + --with-krb5 + make all +} + +package_wireshark-cli() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - CLI version' + depends=('krb5' 'libgcrypt' 'libcap' 'libpcap' 'bash' 'gnutls' 'glib2' 'lua52') + install=wireshark.install + conflicts=(wireshark) + + cd ${pkgbase}-${pkgver} + + make DESTDIR="${pkgdir}" install + + #wireshark uid group is 150 + chgrp 150 "${pkgdir}/usr/bin/dumpcap" + chmod 754 "${pkgdir}/usr/bin/dumpcap" + rm "${pkgdir}/usr/bin/wireshark" "${pkgdir}/usr/bin/wireshark-qt" + + # Headers + install -dm755 "${pkgdir}"/usr/include/${pkgbase}/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil} + + install -m644 color.h config.h register.h ws_symbol_export.h "${pkgdir}/usr/include/${pkgbase}" + for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do + install -m644 ${d}/*.h "${pkgdir}"/usr/include/${pkgbase}/${d} + done +} + +package_wireshark-gtk() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - GTK frontend' + depends=('gtk3' 'portaudio' 'wireshark-cli' 'desktop-file-utils' 'hicolor-icon-theme') + install=wireshark-gtk.install + replaces=(wireshark) + conflicts=(wireshark) + + cd ${pkgbase}-${pkgver} + + install -Dm755 .libs/wireshark "${pkgdir}/usr/bin/wireshark" + for d in 16 32 48; do + install -Dm644 image/hi${d}-app-wireshark.png \ + "${pkgdir}/usr/share/icons/hicolor/${d}x${d}/apps/wireshark.png" + done + + for d in 16 24 32 48 64 128 256 ; do + install -Dm644 image/WiresharkDoc-${d}.png \ + "${pkgdir}/usr/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png" + done + install -Dm644 wireshark.desktop "${pkgdir}/usr/share/applications/wireshark.desktop" +} + +package_wireshark-qt() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - Qt frontend' + depends=('qt4' 'wireshark-cli') + install=wireshark-qt.install + + cd ${pkgbase}-${pkgver} + install -Dm755 .libs/wireshark-qt "${pkgdir}/usr/bin/wireshark-qt" + + install -d "${pkgdir}/usr/share/applications" + sed -e 's/^Name.*=Wireshark/& (QT)/g' -e '/Exec=/s/wireshark/&-qt/g' wireshark.desktop > "${pkgdir}/usr/share/applications/wireshark-qt.desktop" +} Copied: wireshark/repos/community-staging-i686/configure-pixmap-fix.diff (from rev 132884, wireshark/trunk/configure-pixmap-fix.diff) =================================================================== --- community-staging-i686/configure-pixmap-fix.diff (rev 0) +++ community-staging-i686/configure-pixmap-fix.diff 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,14 @@ +--- configure.ac 2015-03-14 10:52:22.187482157 -0500 ++++ configure.ac 2015-03-14 10:53:01.040495936 -0500 +@@ -1531,7 +1531,10 @@ + if test "$have_gtk" = "yes" ; then + # If we have GTK then add flags for it. + +- CPPFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CPPFLAGS" ++ # 2015-03-04 - disabled to fix SegFault, see ++ # https://trac.macports.org/ticket/46850 ++ # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195980#c45 ++ #CPPFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CPPFLAGS" + CPPFLAGS="-DGDK_DISABLE_DEPRECATED $CPPFLAGS" + if test \( $gtk_config_major_version -eq 3 -a $gtk_config_minor_version -ge 10 \) ; then + ## Allow use of deprecated & disable deprecated warnings if Gtk >= 3.10; Copied: wireshark/repos/community-staging-i686/wireshark-gtk.install (from rev 132884, wireshark/trunk/wireshark-gtk.install) =================================================================== --- community-staging-i686/wireshark-gtk.install (rev 0) +++ community-staging-i686/wireshark-gtk.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} Copied: wireshark/repos/community-staging-i686/wireshark-qt.install (from rev 132884, wireshark/trunk/wireshark-qt.install) =================================================================== --- community-staging-i686/wireshark-qt.install (rev 0) +++ community-staging-i686/wireshark-qt.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} Copied: wireshark/repos/community-staging-i686/wireshark.install (from rev 132885, wireshark/trunk/wireshark.install) =================================================================== --- community-staging-i686/wireshark.install (rev 0) +++ community-staging-i686/wireshark.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,18 @@ +post_install() { + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap + echo "NOTE: To run wireshark as normal user you have to add yourself into wireshark group" +} + +post_upgrade() { + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap +} + +post_remove() { + if getent group wireshark >/dev/null 2>&1; then + groupdel wireshark + fi +} Copied: wireshark/repos/community-staging-x86_64/PKGBUILD (from rev 132885, wireshark/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,98 @@ +# $Id$ +# Maintainer: Timothy Redaelli <timothy.redae...@gmail.com> +# Contributor: Guillaume ALAUX <guilla...@archlinux.org> +# Contributor: Florian Pritz <bluewind at jabber dot ccc dot de> +pkgname=('wireshark-cli' 'wireshark-gtk' 'wireshark-qt') +pkgbase=wireshark +pkgver=1.12.4 +pkgrel=4 +arch=('i686' 'x86_64') +license=('GPL2') +makedepends=('qt4' 'gtk3' 'krb5' 'libpcap' 'bash' 'gnutls' 'portaudio' + 'lua52' 'python' 'desktop-file-utils' 'hicolor-icon-theme') +url='http://www.wireshark.org/' +source=(http://www.wireshark.org/download/src/${pkgbase}-${pkgver}.tar.bz2 + configure-pixmap-fix.diff) +sha1sums=('dbbd4090c02fe170f35b26fa26d8aba0b399c659' + 'c383bad83442d75f44afe1737848b9dee4f35b8f') + +prepare() { + cd ${pkgbase}-${pkgver} + sed -i 's/$(AM_V_RCC)rcc/&-qt4/p' ui/qt/Makefile.am + patch -uNp0 -i ../configure-pixmap-fix.diff +} + +build() { + cd ${pkgbase}-${pkgver} + + ./autogen.sh + ./configure \ + --prefix=/usr \ + --with-qt \ + --with-gtk3=yes \ + --with-pcap \ + --with-zlib \ + --with-lua \ + --with-portaudio \ + --with-ssl \ + --with-krb5 + make all +} + +package_wireshark-cli() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - CLI version' + depends=('krb5' 'libgcrypt' 'libcap' 'libpcap' 'bash' 'gnutls' 'glib2' 'lua52') + install=wireshark.install + conflicts=(wireshark) + + cd ${pkgbase}-${pkgver} + + make DESTDIR="${pkgdir}" install + + #wireshark uid group is 150 + chgrp 150 "${pkgdir}/usr/bin/dumpcap" + chmod 754 "${pkgdir}/usr/bin/dumpcap" + rm "${pkgdir}/usr/bin/wireshark" "${pkgdir}/usr/bin/wireshark-qt" + + # Headers + install -dm755 "${pkgdir}"/usr/include/${pkgbase}/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil} + + install -m644 color.h config.h register.h ws_symbol_export.h "${pkgdir}/usr/include/${pkgbase}" + for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do + install -m644 ${d}/*.h "${pkgdir}"/usr/include/${pkgbase}/${d} + done +} + +package_wireshark-gtk() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - GTK frontend' + depends=('gtk3' 'portaudio' 'wireshark-cli' 'desktop-file-utils' 'hicolor-icon-theme') + install=wireshark-gtk.install + replaces=(wireshark) + conflicts=(wireshark) + + cd ${pkgbase}-${pkgver} + + install -Dm755 .libs/wireshark "${pkgdir}/usr/bin/wireshark" + for d in 16 32 48; do + install -Dm644 image/hi${d}-app-wireshark.png \ + "${pkgdir}/usr/share/icons/hicolor/${d}x${d}/apps/wireshark.png" + done + + for d in 16 24 32 48 64 128 256 ; do + install -Dm644 image/WiresharkDoc-${d}.png \ + "${pkgdir}/usr/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png" + done + install -Dm644 wireshark.desktop "${pkgdir}/usr/share/applications/wireshark.desktop" +} + +package_wireshark-qt() { + pkgdesc='a free network protocol analyzer for Unix/Linux and Windows - Qt frontend' + depends=('qt4' 'wireshark-cli') + install=wireshark-qt.install + + cd ${pkgbase}-${pkgver} + install -Dm755 .libs/wireshark-qt "${pkgdir}/usr/bin/wireshark-qt" + + install -d "${pkgdir}/usr/share/applications" + sed -e 's/^Name.*=Wireshark/& (QT)/g' -e '/Exec=/s/wireshark/&-qt/g' wireshark.desktop > "${pkgdir}/usr/share/applications/wireshark-qt.desktop" +} Copied: wireshark/repos/community-staging-x86_64/configure-pixmap-fix.diff (from rev 132885, wireshark/trunk/configure-pixmap-fix.diff) =================================================================== --- community-staging-x86_64/configure-pixmap-fix.diff (rev 0) +++ community-staging-x86_64/configure-pixmap-fix.diff 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,14 @@ +--- configure.ac 2015-03-14 10:52:22.187482157 -0500 ++++ configure.ac 2015-03-14 10:53:01.040495936 -0500 +@@ -1531,7 +1531,10 @@ + if test "$have_gtk" = "yes" ; then + # If we have GTK then add flags for it. + +- CPPFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CPPFLAGS" ++ # 2015-03-04 - disabled to fix SegFault, see ++ # https://trac.macports.org/ticket/46850 ++ # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195980#c45 ++ #CPPFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CPPFLAGS" + CPPFLAGS="-DGDK_DISABLE_DEPRECATED $CPPFLAGS" + if test \( $gtk_config_major_version -eq 3 -a $gtk_config_minor_version -ge 10 \) ; then + ## Allow use of deprecated & disable deprecated warnings if Gtk >= 3.10; Copied: wireshark/repos/community-staging-x86_64/wireshark-gtk.install (from rev 132885, wireshark/trunk/wireshark-gtk.install) =================================================================== --- community-staging-x86_64/wireshark-gtk.install (rev 0) +++ community-staging-x86_64/wireshark-gtk.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} Copied: wireshark/repos/community-staging-x86_64/wireshark-qt.install (from rev 132885, wireshark/trunk/wireshark-qt.install) =================================================================== --- community-staging-x86_64/wireshark-qt.install (rev 0) +++ community-staging-x86_64/wireshark-qt.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} Copied: wireshark/repos/community-staging-x86_64/wireshark.install (from rev 132885, wireshark/trunk/wireshark.install) =================================================================== --- community-staging-x86_64/wireshark.install (rev 0) +++ community-staging-x86_64/wireshark.install 2015-05-07 16:59:23 UTC (rev 132886) @@ -0,0 +1,18 @@ +post_install() { + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap + echo "NOTE: To run wireshark as normal user you have to add yourself into wireshark group" +} + +post_upgrade() { + getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap +} + +post_remove() { + if getent group wireshark >/dev/null 2>&1; then + groupdel wireshark + fi +}