# Description: Network Sniffer with nice GTK+ UI
# URL: http://www.wireshark.org
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager: Martin Opel, mo at obbl-net dot de
# Depends on: gtk libpcap libpcre

name=wireshark
version=1.8.5
release=1
source=(http://www.$name.org/download/src/all-versions/$name-$version.tar.bz2)

build() {
	cd $name-$version

	./configure --prefix=/usr \
	            --mandir=/usr/man \
	            --with-plugins=/usr/lib/$name/plugins \
	            --disable-nls \
	            --enable-snmp \
	            --enable-gtk2 \
	            --disable-gcry \
	            --without-krb5

	make
	make DESTDIR=$PKG install

	# install some icons
	install -d $PKG/usr/share/$name/pixmaps
	install -m 644 \
		image/{hi,lo}{16,32,48}-app-$name.png \
		$PKG/usr/share/$name/pixmaps

	# Don't remove these files, they are read by wireshark's about box.
	#rm -f $PKG/usr/share/$name/{AUTHORS-SHORT,COPYING}
}