diff options
author | Paul Kilar <pkilar@gmail.com> | 2013-08-28 11:54:10 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-28 18:22:39 +0000 |
commit | 5df815a4992c60cd0496e46c0b391cb2b5aca47a (patch) | |
tree | d9488fc2a5b7f338746557b1fcb68f0b1bd83fe0 /testing/scapy | |
parent | f2fbff6ef653ee27fc8451c438b3363a89ee7132 (diff) | |
download | aports-5df815a4992c60cd0496e46c0b391cb2b5aca47a.tar.bz2 aports-5df815a4992c60cd0496e46c0b391cb2b5aca47a.tar.xz |
testing/scapy: new aport
http://www.secdev.org/projects/scapy/
Scapy is a powerful interactive packet manipulation program written in Python.
Diffstat (limited to 'testing/scapy')
-rw-r--r-- | testing/scapy/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/scapy/APKBUILD b/testing/scapy/APKBUILD new file mode 100644 index 000000000..3eea19a5a --- /dev/null +++ b/testing/scapy/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Paul Kilar <pkilar@gmail.com> +# Maintainer: Paul Kilar <pkilar@gmail.com> +pkgname=scapy +pkgver='2.1.0' +pkgrel=0 +pkgdesc="Powerful interactive packet manipulation" +url="http://www.secdev.org/projects/scapy/" +arch="noarch" +license="GPL3+" +depends="python" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://www.secdev.org/projects/scapy/files/scapy-$pkgver.tar.gz" +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} +md5sums="357b5b21ea3b4f289a326c0905b715c1 scapy-2.1.0.tar.gz" +sha256sums="43ca233b0cfc950401193e2702ea32ee1dd83d4bab671371e322a7b6c52275ba scapy-2.1.0.tar.gz" +sha512sums="51153b922ea34f818523ecb679f4598404b692fc135e7cdbd356b3878c276d93229530107b47cbe59df25ef637e628eee1f48069b9d3128eb402dfe5871ecc2a scapy-2.1.0.tar.gz" |