2013-05-01 04:42:17 +08:00
|
|
|
# maintainer: AlmAck
|
2013-04-30 05:33:23 +08:00
|
|
|
|
|
|
|
pkgname=wireshark
|
2013-05-25 20:19:15 +08:00
|
|
|
pkgver=1.8.7
|
|
|
|
pkgrel=1
|
2013-04-30 05:33:23 +08:00
|
|
|
pkgdesc='A free network protocol analyzer for Unix/Linux and Windows'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL2')
|
2013-05-25 20:19:15 +08:00
|
|
|
depends=('libpcap' 'libcap' 'krb5' 'glib2' 'desktop-file-utils' 'hicolor-icon-theme' 'lua' 'libgcrypt' 'gtk2' 'filesystem-extra')
|
2013-05-12 22:33:30 +08:00
|
|
|
makedepends=('bison' 'flex' 'bash' 'gnutls' 'python' 'portaudio')
|
2013-04-30 05:33:23 +08:00
|
|
|
url='http://www.wireshark.org/'
|
|
|
|
install=wireshark.install
|
|
|
|
options=(!libtool)
|
2013-05-12 22:33:30 +08:00
|
|
|
source=(http://www.wireshark.org/download/src/${pkgname}-${pkgver}.tar.bz2)
|
2013-05-25 20:19:15 +08:00
|
|
|
sha1sums=('c131ce10555e608e691aa36190c8d5a1b271c955')
|
2013-04-30 05:33:23 +08:00
|
|
|
|
|
|
|
build() {
|
2013-05-12 22:33:30 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-04-30 05:33:23 +08:00
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
./configure \
|
|
|
|
--prefix=/extra/usr \
|
|
|
|
--with-ssl \
|
2013-05-12 22:33:30 +08:00
|
|
|
--with-pcap \
|
|
|
|
--with-libcap \
|
|
|
|
--with-zlib \
|
2013-04-30 05:33:23 +08:00
|
|
|
--with-lua \
|
2013-05-15 03:25:19 +08:00
|
|
|
--with-krb5 \
|
|
|
|
--without-portaudio
|
2013-04-30 05:33:23 +08:00
|
|
|
make all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
|
|
|
### GTK cli ###
|
2013-05-12 22:33:30 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2013-04-30 05:33:23 +08:00
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
#wireshark uid group is 150
|
|
|
|
chgrp 150 "${pkgdir}/extra/usr/bin/dumpcap"
|
|
|
|
chmod 754 "${pkgdir}/extra/usr/bin/dumpcap"
|
|
|
|
#rm "${pkgdir}/extra/usr/bin/wireshark"
|
|
|
|
|
|
|
|
# Headers
|
2013-05-12 22:33:30 +08:00
|
|
|
install -dm755 ${pkgdir}/extra/usr/include/${pkgname}/{epan/{crypt,dfilter,dissectors,ftypes},wiretap,wsutil}
|
2013-04-30 05:33:23 +08:00
|
|
|
|
2013-05-12 22:33:30 +08:00
|
|
|
install -m644 color.h config.h register.h "${pkgdir}/extra/usr/include/${pkgname}"
|
2013-04-30 05:33:23 +08:00
|
|
|
for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes wiretap wsutil; do
|
2013-05-12 22:33:30 +08:00
|
|
|
install -m644 ${d}/*.h ${pkgdir}/extra/usr/include/${pkgname}/${d}
|
2013-04-30 05:33:23 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
### GTK GUI ###
|
|
|
|
#install -Dm755 .libs/wireshark "${pkgdir}/usr/bin/wireshark"
|
|
|
|
for d in 16 32 48; do
|
|
|
|
install -Dm644 image/hi${d}-app-wireshark.png \
|
|
|
|
"${pkgdir}/extra/usr/share/icons/hicolor/${d}x${d}/apps/wireshark.png"
|
|
|
|
done
|
|
|
|
|
|
|
|
for d in 16 24 32 48 64 128 256 ; do
|
|
|
|
install -Dm644 image/WiresharkDoc-${d}.png \
|
|
|
|
"${pkgdir}/extra/usr/share/icons/hicolor/${d}x${d}/mimetypes/application-vnd.tcpdump.pcap.png"
|
|
|
|
done
|
|
|
|
install -Dm644 wireshark.desktop "${pkgdir}/extra/usr/share/applications/wireshark.desktop"
|
|
|
|
}
|