[arch-commits] Commit in impacket/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Wed Nov 27 23:05:31 UTC 2019
Date: Wednesday, November 27, 2019 @ 23:05:30
Author: anthraxx
Revision: 534237
upgpkg: impacket 0.9.20-1: switch to python3
Modified:
impacket/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-27 22:26:31 UTC (rev 534236)
+++ PKGBUILD 2019-11-27 23:05:30 UTC (rev 534237)
@@ -3,40 +3,44 @@
# Contributor: Paolo Giangrandi <peoro.noob at gmail.com>
pkgname=impacket
-pkgver=0.9.19
+pkgver=0.9.20
pkgrel=1
pkgdesc='Collection of classes for working with network protocols'
url='https://github.com/CoreSecurity/impacket'
arch=('any')
license=('Apache')
-depends=('python2-crypto' 'python2-pyasn1' 'python2-pcapy' 'python2-pyopenssl' 'python2-six' 'python2-ldap3' 'python2-flask')
-checkdepends=('python2-pytest' 'python2-pytest-runner')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/CoreSecurity/impacket/archive/impacket_${pkgver//./_}.tar.gz)
-sha512sums=('92866065e8d30fc0c586cbb073836cbdaa9e685b386588570f74d1f59aa8e6182b67b1ba11d77465a52063baa8f0da76080030bfc71ce2d67dc3bb03abe3e352')
+depends=('python' 'python-pycryptodome' 'python-pycryptodomex' 'python-pyasn1' 'python-pcapy' 'python-pyopenssl'
+ 'python-six' 'python-ldap3' 'python-flask')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-cryptography')
+source=(https://github.com/CoreSecurity/impacket/archive/impacket_${pkgver//./_}.tar.gz)
+sha256sums=('ccb9dc1accd306d86c1949388c8673ceb5304bfc5a2b3f868876b350d103045d')
+sha512sums=('14e97d03352b8a86701f0f6cdd688b8a7b9952eef5bf3ed9b984fbec6ee60b427c7d8f4200ddc0ae44279c78db30b6a2a48330243da80de25f7d9541a202e731')
prepare() {
cd ${pkgname}-${pkgname}_${pkgver//./_}
- find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \;
+ sed -e '/test_smb.py/d' \
+ -e '/test_nmb.py/d' \
+ -e '/test_ntlm.py/d' \
+ -e '/test_ldap.py/d' \
+ -e '/rundce.sh/d' \
+ -i tests/runall.sh
}
-package() {
+build() {
cd ${pkgname}-${pkgname}_${pkgver//./_}
- python2 setup.py build
+ python setup.py build
}
check() {
- cd ${pkgname}-${pkgname}_${pkgver//./_}
- python2 setup.py test
- PYTHONPATH="./impacket:${PYTHONPATH}" \
- PYTHONDONTWRITEBYTECODE=1 \
- py.test2 tests/ImpactPacket
+ cd ${pkgname}-${pkgname}_${pkgver//./_}/tests
+ ./runall.sh
}
package() {
cd ${pkgname}-${pkgname}_${pkgver//./_}
- python2 setup.py install -O1 --root="${pkgdir}"
+ python setup.py install -O1 --root="${pkgdir}" --skip-build
install -Dm 644 ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
- local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+ local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
ln -s "/usr/lib/python${PYTHONVERSION}/site-packages/impacket/examples" "${pkgdir}/usr/share/doc/${pkgname}/examples"
}
More information about the arch-commits
mailing list