Date: Friday, January 15, 2016 @ 22:23:44 Author: anthraxx Revision: 156745
archrelease: copy trunk to community-any Added: scapy/repos/community-any/PKGBUILD (from rev 156744, scapy/trunk/PKGBUILD) Deleted: scapy/repos/community-any/PKGBUILD ----------+ PKGBUILD | 101 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-01-15 21:23:38 UTC (rev 156744) +++ PKGBUILD 2016-01-15 21:23:44 UTC (rev 156745) @@ -1,51 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net> -# Contributor: Ebubekir KARUL <ebubekirka...@yandex.com> -# Contributor: s1gma,shirokuro - -pkgname=scapy -pkgver=2.3.1 -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') -checkdepends=('python2-crypto' 'python2-pyx' 'python2-gnuplot' 'graphviz' 'sox') -arch=('any') -license=('GPL') -source=(https://bitbucket.org/secdev/scapy/downloads/${pkgname}-${pkgver}.zip) -sha256sums=('8972c02e39a826a10c02c2bdd5025f7251dce9589c57befd9bb55c65f02e4934') - -prepare() { - cd ${pkgname}-${pkgver} - sed -e 's/env python$/env python2/g' -i doc/scapy/*.rst scapy/contrib/*.py \ - run_scapy scapy/pipetool.py scapy/tools/check_asdis.py scapy/layers/inet6.py setup.py - sed -e 's/env python $/env python2/' -i scapy/contrib/bgp.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() { - cd ${pkgname}-${pkgver} - 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 --skip-build --prefix="${pkgdir}/usr" - mkdir -p "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm 644 doc/scapy/*.rst "${pkgdir}/usr/share/doc/${pkgname}/" -} - -# vim: ts=2 sw=2 et: Copied: scapy/repos/community-any/PKGBUILD (from rev 156744, scapy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-01-15 21:23:44 UTC (rev 156745) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Ebubekir KARUL <ebubekirka...@yandex.com> +# Contributor: s1gma,shirokuro + +pkgname=scapy +pkgver=2.3.1 +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') +checkdepends=('python2-crypto' 'python2-pyx' 'python2-gnuplot' 'graphviz' 'sox') +arch=('any') +license=('GPL') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/secdev/scapy/archive/v${pkgver}.tar.gz) +sha256sums=('835e29b1098c879c05daced52591ea809d04598ce63761a7db8a9caca8bfd243') + +prepare() { + cd ${pkgname}-${pkgver} + sed -e 's/env python$/env python2/g' -i doc/scapy/*.rst scapy/contrib/*.py \ + run_scapy scapy/pipetool.py scapy/tools/check_asdis.py scapy/layers/inet6.py setup.py + sed -e 's/env python $/env python2/' -i scapy/contrib/bgp.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() { + cd ${pkgname}-${pkgver} + 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 --skip-build --root="${pkgdir}" --prefix=/usr + install -Dm 644 doc/scapy/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +# vim: ts=2 sw=2 et: