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

Levente Polyak anthraxx at archlinux.org
Wed Nov 27 23:05:35 UTC 2019


    Date: Wednesday, November 27, 2019 @ 23:05:35
  Author: anthraxx
Revision: 534238

archrelease: copy trunk to community-any

Added:
  impacket/repos/community-any/PKGBUILD
    (from rev 534237, impacket/trunk/PKGBUILD)
Deleted:
  impacket/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   90 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 47 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-27 23:05:30 UTC (rev 534237)
+++ PKGBUILD	2019-11-27 23:05:35 UTC (rev 534238)
@@ -1,43 +0,0 @@
-# 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.19
-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')
-
-prepare() {
-  cd ${pkgname}-${pkgname}_${pkgver//./_}
-  find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \;
-}
-
-package() {
-  cd ${pkgname}-${pkgname}_${pkgver//./_}
-  python2 setup.py build
-}
-
-check() {
-  cd ${pkgname}-${pkgname}_${pkgver//./_}
-  python2 setup.py test
-  PYTHONPATH="./impacket:${PYTHONPATH}" \
-    PYTHONDONTWRITEBYTECODE=1 \
-    py.test2 tests/ImpactPacket
-}
-
-package() {
-  cd ${pkgname}-${pkgname}_${pkgver//./_}
-  python2 setup.py install -O1 --root="${pkgdir}"
-  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))')"
-  ln -s "/usr/lib/python${PYTHONVERSION}/site-packages/impacket/examples" "${pkgdir}/usr/share/doc/${pkgname}/examples"
-}
-
-# vim: ts=2 sw=2 et:

Copied: impacket/repos/community-any/PKGBUILD (from rev 534237, impacket/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-27 23:05:35 UTC (rev 534238)
@@ -0,0 +1,47 @@
+# 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.20
+pkgrel=1
+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)
+sha256sums=('ccb9dc1accd306d86c1949388c8673ceb5304bfc5a2b3f868876b350d103045d')
+sha512sums=('14e97d03352b8a86701f0f6cdd688b8a7b9952eef5bf3ed9b984fbec6ee60b427c7d8f4200ddc0ae44279c78db30b6a2a48330243da80de25f7d9541a202e731')
+
+prepare() {
+  cd ${pkgname}-${pkgname}_${pkgver//./_}
+  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