diff options
author | Daniel Nagy | 2015-06-08 19:46:03 +0200 |
---|---|---|
committer | Daniel Nagy | 2015-06-08 19:46:03 +0200 |
commit | 2b24572f2c5cb304c0b8d1bc304f1d0bbe851c2e (patch) | |
tree | 0e4d1a4b99c67c787c45bed0630bfa233c63ab6d | |
download | aur-2b24572f2c5cb304c0b8d1bc304f1d0bbe851c2e.tar.gz |
import to aur4
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 68 | ||||
-rw-r--r-- | wireshark-git.install | 18 | ||||
-rw-r--r-- | wireshark.desktop | 10 | ||||
-rw-r--r-- | wireshark.png | bin | 0 -> 18535 bytes |
5 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6145d9acc961 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = wireshark-git + pkgdesc = A free network protocol analyzer for Unix/Linux. GIT version + pkgver = 51933.b2689ab + pkgrel = 1 + url = http://www.wireshark.org/ + install = wireshark-git.install + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + depends = gtk3 + depends = libpcap + depends = gnutls + depends = c-ares + depends = e2fsprogs + depends = lua + depends = portaudio + depends = geoip + depends = libsmi + depends = krb5 + depends = perl-parse-yapp + depends = python2 + provides = wireshark + conflicts = wireshark-gtk + replaces = ethereal + options = strip + options = !libtool + source = wireshark.desktop + source = wireshark.png + source = wireshark::git+https://code.wireshark.org/git/wireshark + sha1sums = dd9b14967b1ab16d6bd75af4ea790df50a8e397e + sha1sums = d57aa736a9864a2ed518aec4f463f3bb30a5edd5 + sha1sums = SKIP + +pkgname = wireshark-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..85358ecd507e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Daniel Nagy <danielnagy at gmx de> + +pkgname=wireshark-git +pkgver=51933.b2689ab +pkgrel=1 +pkgdesc="A free network protocol analyzer for Unix/Linux. GIT version" +arch=('i686' 'x86_64') +license=('GPL2') +depends=('gtk3' 'libpcap' 'gnutls' 'c-ares' 'e2fsprogs' 'lua' 'portaudio' 'geoip' 'libsmi' + 'krb5' 'perl-parse-yapp' 'python2') +makedepends=('git') +url="http://www.wireshark.org/" +sha1sums=('dd9b14967b1ab16d6bd75af4ea790df50a8e397e' + 'd57aa736a9864a2ed518aec4f463f3bb30a5edd5' + 'SKIP') +replaces=('ethereal') +provides=('wireshark') +_gitmod='wireshark' +source=("wireshark.desktop" + "wireshark.png" + "$_gitmod::git+https://code.wireshark.org/git/wireshark") +conflicts=('wireshark-gtk') +options=('strip' '!libtool') +install=$pkgname.install + + +pkgver() { + cd $srcdir/$_gitmod + printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/$_gitmod + ./autogen.sh + + mkdir $srcdir/build + cd $srcdir/build + + /usr/lib/python2.7/Tools/scripts/reindent.py $srcdir/$_gitmod/tools/ncp2222.py + + $srcdir/$_gitmod/configure \ + --prefix=/usr \ + --with-ssl \ + --with-krb5 \ + --with-zlib=yes \ + --with-lua=/usr/include/ \ + --with-portaudio \ + --with-python=/usr/bin/python2 \ + --enable-aircap \ + LDFLAGS="-llua" \ + CFLAGS="-Wno-error=old-style-definition -Wno-error=clobbered -Wno-error=unused-but-set-variable -fno-unit-at-a-time" + + make ${MAKEFLAGS} PYTHON=/usr/bin/python2 +} + +package() { + cd $srcdir/build + make ${MAKEFLAGS} DESTDIR=${pkgdir} install + + install -Dm644 ${srcdir}/wireshark.png ${pkgdir}/usr/share/icons/wireshark.png + install -Dm644 ${srcdir}/wireshark.desktop ${pkgdir}/usr/share/applications/wireshark.desktop + + cd $pkgdir/usr/lib/ + ln -s libwsutil.so.0 libwsutil.so.3 + ln -s libwiretap.so.0 libwiretap.so.3 +} + +# vim:set ts=2 sw=2: diff --git a/wireshark-git.install b/wireshark-git.install new file mode 100644 index 000000000000..719171d9e24f --- /dev/null +++ b/wireshark-git.install @@ -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 +} diff --git a/wireshark.desktop b/wireshark.desktop new file mode 100644 index 000000000000..f4317f6d04f7 --- /dev/null +++ b/wireshark.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +GenericName=Wireshark +Comment=Network protocol analyzer +Name=wireshark +Exec=wireshark +Icon=/usr/share/icons/wireshark.png +Type=Application +Terminal=false +Categories=Application;Network; diff --git a/wireshark.png b/wireshark.png Binary files differnew file mode 100644 index 000000000000..4e402630426f --- /dev/null +++ b/wireshark.png |