2014-04-01 14:39:47 +00:00
|
|
|
# Template file for 'wireshark'
|
|
|
|
pkgname=wireshark
|
2015-01-08 13:24:21 +00:00
|
|
|
version=1.12.3
|
2015-01-18 11:05:29 +00:00
|
|
|
revision=2
|
2014-04-01 14:39:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-11-14 17:57:30 +00:00
|
|
|
configure_args="--with-ssl --with-pcap --with-libcap --with-zlib --with-lua
|
2014-11-14 19:14:11 +00:00
|
|
|
--with-krb5 --with-gtk3=yes --without-portaudio CC_FOR_BUILD=cc"
|
|
|
|
hostmakedepends="pkg-config flex perl python-devel mit-krb5-devel libtool"
|
|
|
|
makedepends="libpcap-devel zlib-devel lua-devel mit-krb5-devel gnutls-devel
|
|
|
|
geoip-devel libgcrypt-devel gtk+3-devel"
|
|
|
|
depends="libwireshark>=${version}_${revision} libcap-progs"
|
|
|
|
replaces="wireshark<1.12.2_1"
|
|
|
|
short_desc="A network protocol analyzer"
|
2014-04-01 14:39:47 +00:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
homepage="http://www.wireshark.org"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.wireshark.org/download/src/${pkgname}-${version}.tar.bz2"
|
2015-01-08 13:24:21 +00:00
|
|
|
checksum=69950b9dcb1a630982b5f680554d73d27ee0dc856fc6aeef88c8d04eb5ac33ea
|
2014-04-01 14:39:47 +00:00
|
|
|
system_groups="wireshark"
|
2014-11-14 19:14:11 +00:00
|
|
|
subpackages="libwireshark libwireshark-devel wireshark-gtk"
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2015-01-18 11:05:29 +00:00
|
|
|
makedepends+=" qt5-devel"
|
2014-11-14 19:14:11 +00:00
|
|
|
configure_args+=" --with-qt=yes"
|
|
|
|
subpackages+=" wireshark-qt"
|
|
|
|
else
|
|
|
|
configure_args+=" --with-qt=no"
|
|
|
|
fi
|
2014-05-06 16:21:56 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
2014-11-14 19:14:11 +00:00
|
|
|
find -type f -name Makefile.in -exec sed -i "s/^LIBS = .*/\0 -ldl/" {} \;
|
2014-05-06 16:21:56 +00:00
|
|
|
}
|
2014-04-01 14:39:47 +00:00
|
|
|
post_install() {
|
|
|
|
local _includeDir=usr/include/wireshark
|
|
|
|
# Icons
|
|
|
|
for d in 16 32 48; do
|
|
|
|
vinstall image/hi${d}-app-wireshark.png 644 \
|
|
|
|
usr/share/icons/hicolor/${d}x${d}/apps/wireshark.png
|
|
|
|
done
|
|
|
|
|
|
|
|
for d in 16 24 32 48 64 128 256 ; do
|
|
|
|
vinstall image/WiresharkDoc-${d}.png 644 \
|
|
|
|
usr/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png
|
|
|
|
done
|
2014-11-14 19:14:11 +00:00
|
|
|
|
2014-04-01 14:39:47 +00:00
|
|
|
# Desktop Launcher
|
2014-11-14 19:14:11 +00:00
|
|
|
vinstall wireshark.desktop 644 usr/share/applications
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
sed -i 's/^Name.*=Wireshark/& (Qt)/g;/Exec=/s/wireshark/&-qt/g' wireshark.desktop
|
|
|
|
vinstall wireshark.desktop 644 usr/share/applications wireshark-qt.desktop
|
|
|
|
fi
|
2014-04-01 14:39:47 +00:00
|
|
|
|
|
|
|
# Headers
|
|
|
|
vmkdir $_includeDir
|
|
|
|
vcopy "color.h config.h register.h ws_symbol_export.h" $_includeDir
|
|
|
|
|
|
|
|
for i in wiretap wsutil; do
|
|
|
|
vmkdir $_includeDir/$i
|
|
|
|
vcopy "$i/*.h" $_includeDir/$i
|
|
|
|
done
|
2014-04-01 14:51:02 +00:00
|
|
|
|
|
|
|
chmod +754 $DESTDIR/usr/bin/dumpcap
|
2014-04-01 14:39:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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/*.so
|
|
|
|
}
|
|
|
|
}
|
2014-11-14 19:14:11 +00:00
|
|
|
|
|
|
|
wireshark-gtk_package() {
|
|
|
|
replaces="wireshark<1.12.2_1"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
|
|
|
short_desc+=" - GTK+ frontend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/wireshark
|
|
|
|
vmove usr/share/icons
|
|
|
|
vmove usr/share/man/man1/wireshark.1
|
|
|
|
vmove usr/share/applications/wireshark.desktop
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wireshark-qt_package() {
|
|
|
|
replaces="wireshark<1.12.2_1"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
|
|
|
short_desc+=" - Qt frontend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/wireshark-qt
|
|
|
|
vmove usr/share/applications/wireshark-qt.desktop
|
|
|
|
}
|
|
|
|
}
|