summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco442016-04-07 11:40:36 +0200
committermarco442016-04-07 11:40:36 +0200
commit574487a19d299e8f29704bf9f771723fee77f24c (patch)
treea71da83b84df1d24cb800a31fcbcaa02985e8d0e
downloadaur-574487a19d299e8f29704bf9f771723fee77f24c.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD35
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..53313817b1c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = driftnet-git
+ pkgdesc = get files out of a tcp stream
+ pkgver = v1.1.3.r19.g7602b53
+ pkgrel = 1
+ url = https://github.com/deiv/driftnet
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = libpcap
+ depends = libjpeg
+ depends = libpng12
+ depends = giflib
+ options = !emptydirs
+ options = !libtool
+ source = git://github.com/deiv/driftnet.git
+ md5sums = SKIP
+
+pkgname = driftnet-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e9f3a8ae7ed
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Marco44 <cousinmarc at gmail dot com>
+pkgname=driftnet-git
+_gitname=driftnet
+pkgver=v1.1.3.r19.g7602b53
+pkgrel=1
+pkgdesc="get files out of a tcp stream"
+arch=('i686' 'x86_64')
+url=https://github.com/deiv/driftnet
+license=('GPL3')
+depends=('libpcap' 'libjpeg' 'libpng12' 'giflib')
+builddepends=('autoconf')
+makedepends=(git)
+options=(!emptydirs !libtool)
+source=('git://github.com/deiv/driftnet.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd $_gitname
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ local _gitdir=$srcdir/$_gitname
+ cd $_gitdir
+ git clean -dfx
+ git reset --hard
+ autoreconf -fi
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$_gitname
+ make DESTDIR=$pkgdir install
+}