Date: Monday, September 3, 2018 @ 19:07:27 Author: anthraxx Revision: 376449
archrelease: copy trunk to community-any Added: impacket/repos/community-any/PKGBUILD (from rev 376448, impacket/trunk/PKGBUILD) Deleted: impacket/repos/community-any/PKGBUILD ----------+ PKGBUILD | 80 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 43 insertions(+), 37 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-09-03 19:07:20 UTC (rev 376448) +++ PKGBUILD 2018-09-03 19:07:27 UTC (rev 376449) @@ -1,37 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: Sirat18 <a...@sirat18.de> -# Contributor: Paolo Giangrandi <peoro.n...@gmail.com> - -pkgname=impacket -pkgver=0.9.15 -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') -checkdepends=('python2-pytest') -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/CoreSecurity/impacket/archive/impacket_${pkgver//./_}.tar.gz) -sha512sums=('31b1b059d01071319bccfc9a57b23eed175bfba61961ec425553916e7d1940ff6ef53d79ef5e43963e1b4f6037f50489ad22cd6935a53f2cd82bc5b2c6d741ce') - -prepare() { - cd ${pkgname}-${pkgname}_${pkgver//./_} - find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \; -} - -check() { - cd ${pkgname}-${pkgname}_${pkgver//./_} - PYTHONPATH="./impacket:${PYTHONPATH}" \ - PYTHONDONTWRITEBYTECODE=1 \ - py.test2 impacket/testcases/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 376448, impacket/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-09-03 19:07:27 UTC (rev 376449) @@ -0,0 +1,43 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Sirat18 <a...@sirat18.de> +# Contributor: Paolo Giangrandi <peoro.n...@gmail.com> + +pkgname=impacket +pkgver=0.9.17 +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=('c6a84b5f3e0e08bc44c6648c0c65048c5b9ee63ce7706896f4f9a3c061b3bf64e5e68ca87794162cfc730144eff60c392eea2548edeaba61e04350c857e69c9b') + +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: