[arch-commits] Commit in scapy/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Aug 7 21:25:29 UTC 2019


    Date: Wednesday, August 7, 2019 @ 21:25:28
  Author: anthraxx
Revision: 498255

archrelease: copy trunk to community-any

Added:
  scapy/repos/community-any/PKGBUILD
    (from rev 498254, scapy/trunk/PKGBUILD)
Deleted:
  scapy/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  170 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 85 insertions(+), 85 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-07 21:25:23 UTC (rev 498254)
+++ PKGBUILD	2019-08-07 21:25:28 UTC (rev 498255)
@@ -1,85 +0,0 @@
-# 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' 'python2-scapy')
-pkgver=2.4.2
-pkgrel=1
-pkgdesc='Powerful interactive packet manipulation program written in Python'
-url='http://www.secdev.org/projects/scapy/'
-makedepends=('tcpdump' 'python2' 'python')
-checkdepends=('python2-cryptography' 'python2-pyx' 'python2-matplotlib'
-              'python-cryptography' 'python-pyx' 'python-matplotlib'
-              'graphviz' 'sox')
-arch=('any')
-license=('GPL2')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/secdev/scapy/archive/v${pkgver}.tar.gz)
-sha512sums=('980f708a849ae26edca3eb6618a41668818c5883bca699f347f47a8964b3ee44a6ceefe4a12cb7d5fe6c13f5cbe2b7547938e53139f4ec9e6ef384e30c9bb6db')
-
-prepare() {
-  cp -a ${pkgbase}-${pkgver}{,-py2}
-  cd ${pkgbase}-${pkgver}-py2
-  sed -e 's|env python|env python2|g' -i doc/scapy/*.rst scapy/contrib/*.py setup.py \
-    run_scapy scapy/pipetool.py scapy/tools/check_asdis.py scapy/layers/*.py bin/*
-}
-
-build() {
-  (cd ${pkgbase}-${pkgver}-py2
-    python2 setup.py build
-  )
-  (cd ${pkgbase}-${pkgver}
-    python setup.py build
-  )
-}
-
-check() {
-  # Run only main tests, without network access
-  (cd ${pkgbase}-${pkgver}-py2/test
-    ./run_tests_py2 -K netaccess -F
-  )
-  (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}
-}
-
-package_python2-scapy() {
-  pkgdesc+=' (library)'
-  depends=('tcpdump' 'python2')
-  optdepends=('python2-cryptography: WEP, IPsec and SSL/TLS support'
-              'python2-pyx: psdump() and pdfdump() functions'
-              'python2-matplotlib: plotting support'
-              'graphviz: conversations() method support'
-              'sox: for VOIP support')
-  cd ${pkgbase}-${pkgver}-py2
-  python2 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:

Copied: scapy/repos/community-any/PKGBUILD (from rev 498254, scapy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-07 21:25:28 UTC (rev 498255)
@@ -0,0 +1,85 @@
+# 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' 'python2-scapy')
+pkgver=2.4.3
+pkgrel=1
+pkgdesc='Powerful interactive packet manipulation program written in Python'
+url='http://www.secdev.org/projects/scapy/'
+arch=('any')
+license=('GPL2')
+makedepends=('tcpdump' 'python2' 'python')
+checkdepends=('python2-cryptography' 'python2-pyx' 'python2-matplotlib'
+              'python-cryptography' 'python-pyx' 'python-matplotlib'
+              'graphviz' 'sox')
+source=(https://github.com/secdev/scapy/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('40a44ec7924dab19c6d0954fee409b9bea68df405ef9074741f34bee18038923')
+sha512sums=('579e3f326f90e10b2839aee805949e14ecab9431f360ef75e60080a971653e1f48a240d812b8ace77754b01b07a2ddb8533d1e6b18ee8804280bf9b2c237cede')
+
+prepare() {
+  cp -a ${pkgbase}-${pkgver}{,-py2}
+  cd ${pkgbase}-${pkgver}-py2
+  sed -e 's|env python|env python2|g' -i doc/scapy/*.rst run_scapy $(find . -name '*.py')
+}
+
+build() {
+  (cd ${pkgbase}-${pkgver}-py2
+    python2 setup.py build
+  )
+  (cd ${pkgbase}-${pkgver}
+    python setup.py build
+  )
+}
+
+check() {
+  # Run only main tests, without network access
+  (cd ${pkgbase}-${pkgver}-py2/test
+    ./run_tests_py2 -K netaccess -F
+  )
+  (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}
+}
+
+package_python2-scapy() {
+  pkgdesc+=' (library)'
+  depends=('tcpdump' 'python2')
+  optdepends=('python2-cryptography: WEP, IPsec and SSL/TLS support'
+              'python2-pyx: psdump() and pdfdump() functions'
+              'python2-matplotlib: plotting support'
+              'graphviz: conversations() method support'
+              'sox: for VOIP support')
+  cd ${pkgbase}-${pkgver}-py2
+  python2 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