diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-01-17 17:04:15 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-01-17 17:04:15 +0100 |
commit | 9b41a9f296d33aca74d3ad0e5e411e23b91b729b (patch) | |
tree | 78a8b6d24e799481ce896112af54378b39f53c44 | |
parent | ca2d44a6820a66e074d753b32fdc7c3d86e58a3d (diff) | |
download | aur-packages-9b41a9f296d33aca74d3ad0e5e411e23b91b729b.tar.gz aur-packages-9b41a9f296d33aca74d3ad0e5e411e23b91b729b.tar.xz |
add wireshark-cli
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rw-r--r-- | wireshark-cli/PKGBUILD | 33 | ||||
-rw-r--r-- | wireshark-cli/wireshark-1.1.2--as-needed.patch | 20 |
2 files changed, 53 insertions, 0 deletions
diff --git a/wireshark-cli/PKGBUILD b/wireshark-cli/PKGBUILD new file mode 100644 index 0000000..24736e9 --- /dev/null +++ b/wireshark-cli/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Hugo Doria <hugo@archlinux.org> +# Maintainer: Florian "Bluewind" Pritz <flo@xssn.at> + +pkgname=wireshark-cli +pkgver=1.2.5 +pkgrel=1 +pkgdesc="A free network protocol analyzer for Unix/Linux and Windows - no GUI" +arch=('i686' 'x86_64') +license=('GPL2') +depends=('heimdal>=1.3.1' 'libpcap>=1.0.0' 'bash' 'gnutls>=2.4.1' 'libcap>=2.16') +makedepends=('bison' 'flex') +url="http://www.wireshark.org/" +replaces=('ethereal') +conflicts=('wireshark') +options=(!libtool) +source=(http://www.wireshark.org/download/src/wireshark-${pkgver}.tar.gz wireshark-1.1.2--as-needed.patch) + +build() { + cd ${srcdir}/wireshark-${pkgver} + export CFLAGS="-fno-unit-at-a-time ${CFLAGS}" + + patch -Np1 -i $srcdir/wireshark-1.1.2--as-needed.patch || return 1 + autoreconf -f -i || return 1 + + ./configure --prefix=/usr --with-ssl --disable-wireshark --disable-gtktest || return 1 + make all || return 1 + make DESTDIR=${pkgdir} install || return 1 +} + +md5sums=('fdc1bc9815ee7ba067094edf60f7b9ff' + 'cc87d7eb31f256df751b3371b1c426e9') +sha1sums=('525b9062674a2951f790a2621ddf14e5cea5be48' + '7a743a42542fa59423870a0205e8ed7aa6bde70e') diff --git a/wireshark-cli/wireshark-1.1.2--as-needed.patch b/wireshark-cli/wireshark-1.1.2--as-needed.patch new file mode 100644 index 0000000..7da659c --- /dev/null +++ b/wireshark-cli/wireshark-1.1.2--as-needed.patch @@ -0,0 +1,20 @@ +diff --git a/epan/Makefile.am b/epan/Makefile.am +index b2a569d..717e233 100644 +--- a/epan/Makefile.am ++++ b/epan/Makefile.am +@@ -130,6 +130,7 @@ libwireshark_la_LIBADD = \ + dissectors/libdirtydissectors.la $(wslua_lib) @SOCKET_LIBS@ @NSL_LIBS@ \ + @C_ARES_LIBS@ @ADNS_LIBS@ @LIBGCRYPT_LIBS@ @LIBGNUTLS_LIBS@ \ + @KRB5_LIBS@ @SSL_LIBS@ @LIBSMI_LDFLAGS@ @GEOIP_LIBS@ \ ++ ${top_builddir}/wiretap/libwiretap.la \ + ${top_builddir}/wsutil/libwsutil.la -lm + + libwireshark_la_DEPENDENCIES = \ +@@ -137,6 +138,7 @@ libwireshark_la_DEPENDENCIES = \ + libwireshark_asmopt.la crypt/libairpdcap.la ftypes/libftypes.la \ + dfilter/libdfilter.la dissectors/libdissectors.la \ + dissectors/libdirtydissectors.la $(wslua_lib) \ ++ ${top_builddir}/wiretap/libwiretap.la \ + ${top_builddir}/wsutil/libwsutil.la + + #EXTRA_PROGRAMS = reassemble_test |