[arch-commits] Commit in scapy/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Dec 19 13:57:50 UTC 2014
Date: Friday, December 19, 2014 @ 14:57:50
Author: fyan
Revision: 124103
upgpkg: scapy 2.3.0-1
upstream new release
Modified:
scapy/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-12-19 13:43:17 UTC (rev 124102)
+++ PKGBUILD 2014-12-19 13:57:50 UTC (rev 124103)
@@ -1,12 +1,12 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Ebubekir KARUL <ebubekirkarul at 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' )
@@ -13,17 +13,20 @@
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() {
@@ -31,9 +34,15 @@
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}/"
}
More information about the arch-commits
mailing list