blob: a6248544eed998e8add3db5861ca064ef1f0ca5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Maintainer: a172 <spartan074+aur@gmail.com>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Filipe LaĆns <lains@archlinux.org>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Guillaume ALAUX <guillaume@archlinux.org>
# Contributor: Florian Pritz <bluewind at jabber dot ccc dot de>
# Contributor: Peter Wu <peter@lekensteyn.nl>
_pkgbase=wireshark
pkgbase="${_pkgbase}-libsmi"
pkgname=("${pkgbase}-cli" "${pkgbase}-qt")
pkgver=4.4.0
pkgrel=1
pkgdesc='Network traffic and protocol analyzer/sniffer with SNMP OID resolution'
url='https://www.wireshark.org/'
arch=('x86_64')
license=('GPL-2.0-only')
makedepends=('glibc' 'cmake' 'ninja' 'c-ares' 'libmaxminddb' 'qt6-tools' 'qt6-svg'
'qt6-multimedia' 'qt6-5compat' 'krb5' 'libpcap' 'libssh' 'libxml2' 'libnghttp2'
'snappy' 'lz4' 'spandsp' 'gnutls' 'lua52' 'python' 'libcap' 'libnl'
'glib2' 'libgcrypt' 'sbc' 'bcg729' 'desktop-file-utils' 'libxslt'
'hicolor-icon-theme' 'zstd' 'zlib' 'gcc-libs' 'brotli' 'asciidoctor'
'doxygen' 'minizip' 'speexdsp' 'opus' 'libsmi')
options=('!emptydirs')
source=(https://www.wireshark.org/download/src/${_pkgbase}-${pkgver}.tar.xz
wireshark.sysusers)
sha512sums=('a00275ffcc7c5bdf546e3e1c95a2fa77b86232d008f77b1b2f3de8e63f1862321d7a439cba2d136be4407131e07e20071d972a4efb7db2bc55388a347f47ce9e'
'3956c1226e64f0ce4df463f80b55b15eed06ecd9b8703b3e8309d4236a6e1ca84e43007336f3987bc862d8a5e7cfcaaf6653125d2a34999a0f1357c52e7c4990')
b2sums=('679b774e780201d1d188f5ce2ec1eb21d98250d2dd45b37b741a3cd5d6dc59d983e473a3f87e3ae1b8eef0b0f9b0c02227eecee644697ec19b6c3b2a21a5ad31'
'3cebcc993f51eaf0e09673c77e0436598593ef5eff306d880415ccc8eecb32fee93c9a6986f1a7bb0835ab7f9732369d7c5a07e6c053d6293e73a1ea84c58a5c')
build() {
cd ${_pkgbase}-${pkgver}
cmake \
-B build \
-G Ninja \
-DVCSVERSION_OVERRIDE="Git v${pkgver} packaged as ${pkgver}-${pkgrel}" \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_RPATH= \
-DCMAKE_SKIP_RPATH=ON \
-Wno-dev
ninja -C build -v
}
package_wireshark-libsmi-cli() {
pkgdesc+=' - CLI tools and data files'
depends=('glibc' 'c-ares' 'libmaxminddb' 'krb5' 'libgcrypt' 'libcap' 'libpcap'
'gnutls' 'glib2' 'lua52' 'libssh' 'libxml2' 'libnghttp2' 'snappy'
'lz4' 'spandsp' 'sbc' 'bcg729' 'zstd' 'zlib' 'brotli' 'speexdsp'
'opus' 'opencore-amr' libpcap.so libcap.so libbrotlidec.so libcares.so
libkrb5.so libk5crypto.so 'libsmi')
install=wireshark.install
conflicts=(wireshark wireshark-cli)
provides=(libwireshark.so libwiretap.so libwsutil.so wireshark-cli)
cd ${_pkgbase}-${pkgver}
DESTDIR="${pkgdir}" ninja -C build install
DESTDIR="${pkgdir}" cmake --install build --component Development
# wireshark uid group is 150
install -Dm 644 "${srcdir}"/wireshark.sysusers "${pkgdir}"/usr/lib/sysusers.d/wireshark.conf
chgrp 150 "${pkgdir}"/usr/bin/dumpcap
chmod 754 "${pkgdir}"/usr/bin/dumpcap
cd "${pkgdir}"
rm -r usr/share/mime \
usr/share/icons \
usr/share/man/man1/wireshark.1 \
usr/bin/wireshark \
usr/share/applications/org.wireshark.Wireshark.desktop \
usr/share/metainfo/org.wireshark.Wireshark.metainfo.xml \
usr/share/doc/wireshark/wireshark.html
}
package_wireshark-libsmi-qt() {
pkgdesc+=' - Qt GUI'
depends=('glibc' 'desktop-file-utils' 'qt6-multimedia' 'qt6-svg' 'qt6-5compat'
'wireshark-cli' 'libwireshark.so' 'libwiretap.so' 'libwsutil.so'
'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'gcc-libs'
'zlib' 'libpcap' 'libgcrypt' 'libnl' 'minizip' 'speexdsp'
libpcap.so 'libsmi')
provides=(wireshark-qt)
replaces=(wireshark wireshark-gtk wireshark-common)
conflicts=(wireshark wireshark-gtk wireshark-common wireshark-qt)
cd ${_pkgbase}-${pkgver}
install -d "${srcdir}/staging"
DESTDIR="${srcdir}/staging" ninja -C build install
install -Dm 755 build/run/wireshark -t "${pkgdir}"/usr/bin
install -Dm 644 build/doc/man_pages/wireshark.1 -t "${pkgdir}"/usr/share/man/man1
install -Dm 644 build/doc/man_pages/wireshark.html -t "${pkgdir}"/usr/share/doc/wireshark
cd "${srcdir}"/staging/usr/share
install -Dm 644 applications/org.wireshark.Wireshark.desktop -t "${pkgdir}"/usr/share/applications
install -Dm 644 mime/packages/org.wireshark.Wireshark.xml -t "${pkgdir}"/usr/share/mime/packages
install -Dm 644 metainfo/org.wireshark.Wireshark.metainfo.xml -t "${pkgdir}"/usr/share/metainfo
mv icons "${pkgdir}"/usr/share/icons
}
# vim: ts=2 sw=2 et:
|