Skip to content
Snippets Groups Projects
Commit b5bb631d authored by Felix Yan's avatar Felix Yan
Browse files

upstream new release

parent 5e178306
No related branches found
No related tags found
No related merge requests found
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Ebubekir KARUL <ebubekirkarul@yandex.com>
# Contributor: s1gma,shirokuro
pkgname=scapy
pkgver=2.2.0
pkgrel=9
pkgver=2.3.0
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')
'graphviz: conversations() method support'
'sox: for VOIP support')
checkdepends=('python2-crypto' 'python2-pyx' 'python2-gnuplot' 'graphviz' 'sox')
arch=('any')
license=('GPL')
source=(http://www.secdev.org/projects/scapy/files/${pkgname}-${pkgver}.tar.gz)
sha256sums=('c5363b224df0efbd78d7dc4d8a518e5518b2e7affc2e5f1fcecd4efa3ab815af')
source=(https://bitbucket.org/secdev/scapy/downloads/${pkgname}-${pkgver}.zip)
sha256sums=('1e63e845ff7a86d4915122945cad2a3b5c60b6914b23713bcbdbab7b24fd47c8')
prepare() {
cd ${pkgname}-${pkgver}
sed -e 's/env python$/env python2/g' -i doc/scapy/*.rst \
run_scapy scapy/tools/check_asdis.py scapy/layers/inet6.py setup.py
sed -e 's/exec python$/exec python2/g' -i run_scapy setup.py
sed -e 's/exec python$/exec python2/g' -i run_scapy setup.py
sed -e 's/exec python /exec python2 /' -i test/run_tests
}
build() {
......@@ -30,9 +33,15 @@ build() {
python2 setup.py build
}
check() {
cd ${pkgname}-${pkgver}/test
# Disabled tests as they currently hang
# ./run_tests
}
package() {
cd ${pkgname}-${pkgver}
python2 setup.py install -O1 --prefix="${pkgdir}/usr"
python2 setup.py install -O1 --skip-build --prefix="${pkgdir}/usr"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 doc/scapy/*.rst "${pkgdir}/usr/share/doc/${pkgname}/"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment