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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 09:01:08 UTC 2020


    Date: Tuesday, November 10, 2020 @ 09:01:08
  Author: foutrelis
Revision: 749440

archrelease: copy trunk to community-staging-any

Added:
  scapy/repos/community-staging-any/
  scapy/repos/community-staging-any/PKGBUILD
    (from rev 749439, scapy/trunk/PKGBUILD)

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

Copied: scapy/repos/community-staging-any/PKGBUILD (from rev 749439, scapy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 09:01:08 UTC (rev 749440)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Ebubekir KARUL <ebubekirkarul at yandex.com>
+# Contributor: s1gma,shirokuro
+
+pkgbase=scapy
+pkgname=('scapy' 'python-scapy')
+pkgver=2.4.3
+pkgrel=3
+pkgdesc='Powerful interactive packet manipulation program written in Python'
+url='http://www.secdev.org/projects/scapy/'
+arch=('any')
+license=('GPL2')
+makedepends=('tcpdump' 'python-setuptools')
+checkdepends=('python-cryptography' 'python-pyx' 'python-matplotlib'
+              'graphviz' 'sox')
+source=(https://github.com/secdev/scapy/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('7597179ab2cb8c462e426cd8e433d72fbb69d9b30d3c0a9c272a6097cbf24faf')
+sha512sums=('f1ff86187508074337eea35c00619794a4f50ddffcbd580201f6fceedf419ce95e1af17943cd6cd701c99122926ae8420689cc511ef9010f741875a5e90a96b1')
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  # Run only main tests, without network access
+  cd ${pkgbase}-${pkgver}/test
+  ./run_tests_py3 -K netaccess -F
+}
+
+package_scapy() {
+  depends=('python' 'python-scapy')
+  pkgdesc+=' (tools)'
+  cd ${pkgbase}-${pkgver}
+  python setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
+  install -d "${pkgdir}/usr/share/doc"
+  ln -sf /usr/share/doc/python-scapy "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/lib"
+}
+
+package_python-scapy() {
+  pkgdesc+=' (library)'
+  depends=('tcpdump' 'python')
+  optdepends=('python-cryptography: WEP, IPsec and SSL/TLS support'
+              'python-pyx: psdump() and pdfdump() functions'
+              'python-matplotlib: plotting support'
+              'graphviz: conversations() method support'
+              'sox: for VOIP support')
+  cd ${pkgbase}-${pkgver}
+  python setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
+  install -Dm 644 doc/scapy/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}"{/usr/bin,/usr/share/man}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list