summaryrefslogtreecommitdiff
path: root/community/sniffit/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/sniffit/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/sniffit/PKGBUILD')
-rw-r--r--community/sniffit/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/sniffit/PKGBUILD b/community/sniffit/PKGBUILD
new file mode 100644
index 000000000..de69794b6
--- /dev/null
+++ b/community/sniffit/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 91957 2013-05-30 09:44:15Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
+
+pkgname=sniffit
+pkgver=0.3.7.beta
+pkgrel=13
+pkgdesc="Very good packet sniffer for unix with ncurses interactive mode"
+arch=('i686' 'x86_64')
+url="http://packages.ubuntu.com/source/sniffit"
+#seems the website are out, ubuntu have all sources
+#url=http://reptile.rug.ac.be/~coder/sniffit/sniffit.html"
+license=('GPL')
+depends=('ncurses' 'libpcap')
+makedepends=('libtool')
+source=("http://archive.ubuntu.com/ubuntu/pool/universe/s/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz"
+ 'sniffit-fix.patch')
+md5sums=('2697cc18878480199fe6db1e61134d5a'
+ 'e66e45dac8fd088accd62160cf8b569f')
+
+build() {
+ cd "${srcdir}"
+ patch -Np0 < ${srcdir}/sniffit-fix.patch
+
+ cd "${srcdir}/${pkgname}.${pkgver}"
+
+ rm -f config.sub config.guess
+ cp /usr/share/libtool/config/config.{guess,sub} .
+
+ ./configure --prefix=/usr --no-recursion --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}.${pkgver}"
+ install -d -m0755 -g root -o root ${pkgdir}/usr/{bin,share/licenses/${pkgname}}
+ install -D -m0744 -g root -o root sniffit ${pkgdir}/usr/bin/sniffit
+ install -D -m0644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
+}