[arch-commits] Commit in scapy/repos/community-any (PKGBUILD PKGBUILD)
Kpcyrd
kpcyrd at archlinux.org
Sun May 16 22:54:47 UTC 2021
Date: Sunday, May 16, 2021 @ 22:54:47
Author: kpcyrd
Revision: 935971
archrelease: copy trunk to community-any
Added:
scapy/repos/community-any/PKGBUILD
(from rev 935970, scapy/trunk/PKGBUILD)
Deleted:
scapy/repos/community-any/PKGBUILD
----------+
PKGBUILD | 113 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 57 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-16 22:54:36 UTC (rev 935970)
+++ PKGBUILD 2021-05-16 22:54:47 UTC (rev 935971)
@@ -1,56 +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')
-pkgver=2.4.5
-pkgrel=1
-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=('cd2aadf020f60102c0fc1c54a2542985adc9371572d3088376c613e1b71f8c53')
-sha512sums=('b5ccd689f7bd4fbbb86921a35360b94ec7a738b494f16e4764828689835296016bc476825add798406e4d32761d8df90b41ce7e38049afdabf98397b1bf5982a')
-
-build() {
- cd ${pkgbase}-${pkgver}
- python setup.py build
-}
-
-check() {
- # Run only main tests, without network access
- cd ${pkgbase}-${pkgver}/test
- ./run_tests -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:
Copied: scapy/repos/community-any/PKGBUILD (from rev 935970, scapy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-05-16 22:54:47 UTC (rev 935971)
@@ -0,0 +1,57 @@
+# 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.5
+pkgrel=2
+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=('cd2aadf020f60102c0fc1c54a2542985adc9371572d3088376c613e1b71f8c53')
+sha512sums=('b5ccd689f7bd4fbbb86921a35360b94ec7a738b494f16e4764828689835296016bc476825add798406e4d32761d8df90b41ce7e38049afdabf98397b1bf5982a')
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ export PYTHONHASHSEED=0
+ python setup.py build
+}
+
+check() {
+ # Run only main tests, without network access
+ cd ${pkgbase}-${pkgver}/test
+ ./run_tests -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