diff options
author | Chris Severance | 2015-09-15 07:29:45 -0400 |
---|---|---|
committer | Chris Severance | 2015-09-15 07:29:45 -0400 |
commit | 5af67a4aa7ff808459c728a549e0246eb44d7260 (patch) | |
tree | 6ad2b8148347fc3c71115b91e133037a28b0b42c | |
download | aur-5af67a4aa7ff808459c728a549e0246eb44d7260.tar.gz |
Initial Import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e7b7b193bef3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = justniffer + pkgdesc = TCP sniffer. It reassembles and reorders packets and displays the tcp flow in a customizable way. + pkgver = 0.5.12 + pkgrel = 1 + url = http://justniffer.sourceforge.net + arch = i686 + arch = x86_64 + license = GPL + depends = python2>=2.4 + depends = libpcap + depends = boost + source = http://sourceforge.net/projects/justniffer/files/justniffer/justniffer%200.5.12/justniffer_0.5.12.tar.gz + sha256sums = e5bb7a1c3cfc72314b8686cbb121d2c4fbf2dd0484a7e564e67d6bb880ee3329 + +pkgname = justniffer + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..61628233afa2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Rafal Michalski <plum.michalski@gmail.com>, Thomas Laroche <tho.laroche@gmail.com> + +# https sites display mostly garbage, as they should. Try http sites. +# The XFCE Terminal is more tolerant of the control characters than PuTTY. + +set -u +pkgname='justniffer' +pkgver='0.5.12' +pkgrel='1' +pkgdesc='TCP sniffer. It reassembles and reorders packets and displays the tcp flow in a customizable way.' +arch=('i686' 'x86_64') +url='http://justniffer.sourceforge.net' +license=('GPL') +depends=('python2>=2.4' 'libpcap' 'boost') # 'libnids' the package includes its own custom version of libnids +# I suspect python2 is a makedepends. No python code goes into the package. +_verwatch=('http://sourceforge.net/projects/justniffer/files/justniffer/' "\s\+${pkgname} \([^<]\+\).*" 'f') +source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}%200.5.12/${pkgname}_0.5.12.tar.gz") +sha256sums=('e5bb7a1c3cfc72314b8686cbb121d2c4fbf2dd0484a7e564e67d6bb880ee3329') + +prepare() { + set -u + cd "${pkgname}-${pkgver}" + + rm -rf '.svn' + #Use python 2.x instead of 3.x + sed -i -e 's/python/python2/' python/*.py + sed -i -e 's/python/python2/' 'python/justniffer-grab-http-traffic.in' + sed -i -e 's/do_subst = python/do_subst = python2/' python/Makefile.* + + # The behaviour of inline is no longer compatible with the included libnids so we take them out + sed -i -e 's/^inline int/int/g' 'lib/libnids-1.21_patched/src/'{util.c,util.h} + # This fixes the i686 version + sed -i -e 's/^inline / /g' 'lib/libnids-1.21_patched/src/checksum.c' + + autoreconf --force --install + CPPFLAGS='-P' CXXFLAGS='-O2' CFLAGS='-O2' LDFLAGS='-Wl,-z,defs' \ + ./configure --enable-dependency-tracking --enable-python --prefix='/usr' --sbindir='/usr/bin' PYTHON='python2' + set +u +} + +build() { + set -u + cd "${pkgname}-${pkgver}" + make -s -j "$(nproc)" + set +u +} + +package() { + set -u + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + set +u +} +set +u + +# vim:set ts=2 sw=2 et: |