summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2016-01-18 02:32:46 +0100
committeranthraxx2016-01-18 02:32:46 +0100
commit3d0d8c971df4724c1b6eb6102af85eb055a1d3ab (patch)
tree79e247388af92903f4457ae02bf82a2efe1bcb62
downloadaur-3d0d8c971df4724c1b6eb6102af85eb055a1d3ab.tar.gz
addpkg: scapy-git 2.3.2.1634.94953c1-1
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD56
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..71dc83c387ee
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Mon Jan 18 01:32:46 UTC 2016
+pkgbase = scapy-git
+ pkgdesc = A powerful interactive packet manipulation program written in Python
+ pkgver = 2.3.2.1634.94953c1
+ pkgrel = 1
+ url = http://www.secdev.org/projects/scapy/
+ arch = any
+ license = GPL2
+ checkdepends = python2-crypto
+ checkdepends = python2-pyx
+ checkdepends = python2-gnuplot
+ checkdepends = graphviz
+ checkdepends = sox
+ makedepends = git
+ depends = tcpdump
+ depends = python2
+ optdepends = python2-crypto: WEP decryption support
+ optdepends = python2-pyx: psdump() and pdfdump() functions
+ optdepends = python2-gnuplot: plotting support
+ optdepends = graphviz: conversations() method support
+ optdepends = sox: for VOIP support
+ provides = scapy
+ conflicts = scapy
+ source = scapy-git::git+https://github.com/secdev/scapy
+ sha256sums = SKIP
+
+pkgname = scapy-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9869b2f1279c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Ebubekir KARUL <ebubekirkarul@yandex.com>
+# Contributor: s1gma,shirokuro
+
+pkgname=scapy-git
+pkgver=2.3.2.1634.94953c1
+pkgrel=1
+pkgdesc="A powerful interactive packet manipulation program written in Python"
+url="http://www.secdev.org/projects/scapy/"
+depends=('tcpdump' 'python2' )
+optdepends=('python2-crypto: WEP decryption support'
+ 'python2-pyx: psdump() and pdfdump() functions'
+ 'python2-gnuplot: plotting support'
+ 'graphviz: conversations() method support'
+ 'sox: for VOIP support')
+makedepends=('git')
+checkdepends=('python2-crypto' 'python2-pyx' 'python2-gnuplot' 'graphviz' 'sox')
+arch=('any')
+license=('GPL2')
+provides=('scapy')
+conflicts=('scapy')
+source=(${pkgname}::git+https://github.com/secdev/scapy)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf "%s.%s.%s" "$(git describe --tags --abbrev=0|sed -r 's|v?([^-]+).*|\1|')" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd ${pkgname}
+ sed -e 's|env python|env python2|g' -i doc/scapy/*.rst scapy/contrib/*.py setup.py \
+ run_scapy scapy/pipetool.py scapy/tools/check_asdis.py scapy/layers/inet6.py
+ sed -e 's/exec python/exec python2/g' -i run_scapy setup.py test/run_tests
+}
+
+build() {
+ cd ${pkgname}
+ python2 setup.py build
+}
+
+check() {
+ cd ${pkgname}/test
+ # Disabled tests as they currently hang
+ #./run_tests
+}
+
+package() {
+ cd ${pkgname}
+ python2 setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
+ install -Dm 644 doc/scapy/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: