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

Felix Yan felixonmars at archlinux.org
Fri Nov 20 16:59:55 UTC 2020


    Date: Friday, November 20, 2020 @ 16:59:54
  Author: felixonmars
Revision: 757914

archrelease: copy trunk to community-staging-any

Added:
  impacket/repos/community-staging-any/
  impacket/repos/community-staging-any/PKGBUILD
    (from rev 757913, impacket/trunk/PKGBUILD)

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

Copied: impacket/repos/community-staging-any/PKGBUILD (from rev 757913, impacket/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-20 16:59:54 UTC (rev 757914)
@@ -0,0 +1,51 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sirat18 <aur at sirat18.de>
+# Contributor: Paolo Giangrandi <peoro.noob at gmail.com>
+
+pkgname=impacket
+pkgver=0.9.21
+pkgrel=2
+pkgdesc='Collection of classes for working with network protocols'
+url='https://github.com/CoreSecurity/impacket'
+arch=('any')
+license=('Apache')
+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
+        impacket-python3.9.patch::https://github.com/SecureAuthCorp/impacket/pull/946.patch)
+sha256sums=('838b0152ce7e725150e2e6b012a99624282eba8d77fda54282845f3c96a39a54'
+            '61948a2dfe4e37fd33c3efa4459ec975ed32ff55d16992957b0de07c90901ca8')
+sha512sums=('9602019461cc07c2fc1e1a7baf40da0558a6cea4f6086e3c4ee16562cf0298c099c88f32ff7842ba403fc1560ccf29c1b3e9671cddcacb3ff6473d95dc11df2a'
+            'dcfafdfc3576011c9104d0dd7215934145c301d69acd971431d2e9c49c24ec5258648d8d8d02844805534299f1ee2e8bcab16245c7035ccfe16381f87e368f9c')
+
+prepare() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  patch -p1 -i ../impacket-python3.9.patch
+  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
+}
+
+build() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}/tests
+  ./runall.sh
+}
+
+package() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+  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"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list