76 lines
2 KiB
Bash
76 lines
2 KiB
Bash
# Template file for 'wireshark'
|
|
pkgname=wireshark
|
|
version=3.0.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config flex perl python3-devel mit-krb5-devel qt5-tools
|
|
qt5-host-tools qt5-qmake"
|
|
makedepends="libpcap-devel zlib-devel lua52-devel mit-krb5-devel gnutls-devel
|
|
libmaxminddb-devel libgcrypt-devel libcap-devel sbc-devel c-ares-devel
|
|
qt5-devel qt5-tools-devel qt5-multimedia-devel qt5-svg-devel"
|
|
depends="libcap-progs"
|
|
short_desc="Network protocol analyzer"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.wireshark.org"
|
|
distfiles="https://www.wireshark.org/download/src/${pkgname}-${version}.tar.xz"
|
|
checksum=bc4f30f5b2e94f3a696fef9de44673cdf402db90aac5299966da647f708f009e
|
|
system_groups="wireshark"
|
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
|
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
|
|
|
|
post_install() {
|
|
rm -f -- "${DESTDIR}/usr/bin/lemon"
|
|
rm -f -- "${DESTDIR}/usr/lib/wireshark/cmake/UseLemon.cmake"
|
|
|
|
local _includeDir=usr/include/wireshark
|
|
|
|
# Headers
|
|
vmkdir $_includeDir
|
|
vcopy ws_symbol_export.h $_includeDir
|
|
|
|
for i in wiretap wsutil; do
|
|
vmkdir $_includeDir/$i
|
|
vcopy "$i/*.h" $_includeDir/$i
|
|
done
|
|
|
|
chmod 0750 $DESTDIR/usr/bin/dumpcap
|
|
}
|
|
|
|
libwireshark_package() {
|
|
short_desc+=" - library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vmove usr/lib/wireshark/extcap
|
|
vmove usr/lib/wireshark/plugins
|
|
}
|
|
}
|
|
|
|
libwireshark-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libwireshark>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/wireshark/cmake
|
|
}
|
|
}
|
|
|
|
wireshark-gtk_package() {
|
|
build_style=meta
|
|
archs=noarch
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - GTK+ frontend (removed package)"
|
|
}
|
|
|
|
wireshark-qt_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
|
short_desc+=" - Qt frontend"
|
|
pkg_install() {
|
|
vmove usr/bin/wireshark
|
|
vmove usr/share/man/man1/wireshark.1
|
|
vmove usr/share/applications/wireshark.desktop
|
|
}
|
|
}
|