2014-04-01 16:39:47 +02:00
|
|
|
# Template file for 'wireshark'
|
|
|
|
pkgname=wireshark
|
2014-08-05 20:10:15 +02:00
|
|
|
version=1.12.0
|
2014-05-06 17:05:55 +02:00
|
|
|
revision=1
|
2014-04-01 16:39:47 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args=" --with-ssl \
|
|
|
|
--with-pcap \
|
|
|
|
--with-libcap \
|
|
|
|
--with-zlib \
|
|
|
|
--with-lua \
|
|
|
|
--with-krb5 \
|
2014-05-06 18:21:56 +02:00
|
|
|
--without-portaudio \
|
|
|
|
CC_FOR_BUILD=cc"
|
|
|
|
hostmakedepends="pkg-config bison flex perl mit-krb5-devel libtool"
|
2014-08-05 20:10:15 +02:00
|
|
|
makedepends="libpcap-devel zlib-devel lua-devel libcap-devel mit-krb5-devel gtk+3-devel qt-devel"
|
2014-04-01 16:39:47 +02:00
|
|
|
depends="libcap-progs"
|
|
|
|
short_desc="A graphical network protocol analyzer for Unix/Linux"
|
|
|
|
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"
|
2014-08-05 20:10:15 +02:00
|
|
|
checksum=0f59fea1c5b35de90af681067e49113fee0dd7a901750a97fa25f4256dbf13c7
|
2014-04-01 16:39:47 +02:00
|
|
|
system_groups="wireshark"
|
2014-05-06 18:21:56 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
sed -i \
|
|
|
|
-e "s/^LIBS = .*/\0 -ldl/" \
|
|
|
|
`find -name Makefile.in`
|
|
|
|
}
|
2014-04-01 16:39:47 +02: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
|
|
|
|
|
|
|
|
# Desktop Launcher
|
|
|
|
vinstall wireshark.desktop 644 usr/share/applications/wireshark.desktop
|
|
|
|
|
|
|
|
# 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 16:51:02 +02:00
|
|
|
|
|
|
|
chmod +754 $DESTDIR/usr/bin/dumpcap
|
2014-04-01 16:39:47 +02: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
|
|
|
|
}
|
|
|
|
}
|