80 lines
2.2 KiB
Bash
80 lines
2.2 KiB
Bash
# Template file for 'wireshark'
|
|
pkgname=wireshark
|
|
version=2.6.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-ssl --with-pcap --with-libcap --with-zlib --with-lua
|
|
--with-krb5 --with-gtk=3 --with-qt=5 --without-portaudio CC_FOR_BUILD=cc"
|
|
hostmakedepends="pkg-config flex perl python-devel mit-krb5-devel automake libtool
|
|
qt5-host-tools qt5-tools glib-devel"
|
|
makedepends="libpcap-devel zlib-devel lua52-devel mit-krb5-devel gnutls-devel
|
|
geoip-devel libgcrypt-devel gtk+3-devel qt5-devel libcap-devel sbc-devel c-ares-devel"
|
|
depends="libcap-progs"
|
|
short_desc="A 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=93155b798544b2f07693920f4ac1b531c952965ee4eb1d98419961240177438a
|
|
system_groups="wireshark"
|
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
|
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
find -type f -name Makefile.in -exec sed -i "s/^LIBS = .*/\0 -ldl/" {} \;
|
|
}
|
|
|
|
post_install() {
|
|
local _includeDir=usr/include/wireshark
|
|
|
|
# Headers
|
|
vmkdir $_includeDir
|
|
vcopy "config.h 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
|
|
}
|
|
}
|
|
|
|
libwireshark-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libwireshark>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|
|
|
|
wireshark-gtk_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
|
short_desc+=" - GTK+ frontend"
|
|
pkg_install() {
|
|
vmove usr/bin/wireshark-gtk
|
|
vmove usr/share/icons
|
|
vmove usr/share/applications/wireshark-gtk.desktop
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|