[arch-commits] Commit in scapy3k/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 27 07:58:32 UTC 2016


    Date: Tuesday, December 27, 2016 @ 07:58:31
  Author: felixonmars
Revision: 203002

archrelease: copy trunk to community-staging-any

Added:
  scapy3k/repos/community-staging-any/
  scapy3k/repos/community-staging-any/PKGBUILD
    (from rev 203001, scapy3k/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: scapy3k/repos/community-staging-any/PKGBUILD (from rev 203001, scapy3k/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-27 07:58:31 UTC (rev 203002)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=scapy3k
+_pkgname=scapy
+pkgver=0.19
+pkgrel=2
+pkgdesc='Powerful interactive packet manipulation program written in Python 3'
+url='https://github.com/phaethon/scapy'
+depends=('tcpdump' 'python' )
+optdepends=('python-crypto: WEP decryption support'
+            'python-pyx: psdump() and pdfdump() functions'
+            'python-matplotlib: plotting support'
+            'python-netifaces: network interface information support'
+            'graphviz: conversations() method support'
+            'sox: for VOIP support')
+checkdepends=('python-crypto' 'python-pyx' 'python-matplotlib' 'python-netifaces' 'graphviz' 'sox')
+arch=('any')
+license=('GPL2')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/phaethon/scapy/archive/${pkgver}.tar.gz)
+sha512sums=('94b7d4356858ddf36eb065a31e69e4c29170e212c3a77ca064511fbb111e412a70a3b31a229a4430c79b9de13f98c676ab3176efb1b8935da20ed599fdce3c64')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  sed -r 's|((bin\|doc)/(UT)?scapy)|\13k|g' -i setup.py
+  mv doc/scapy.1.gz doc/scapy3k.1.gz
+  mv bin/scapy{,3k}
+  mv bin/UTscapy{,3k}
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}/test
+  # Disabled tests as they currently hang
+  #./run_tests
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python 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:



More information about the arch-commits mailing list