[arch-commits] Commit in python-pwntools/repos/community-any (3 files)

Kpcyrd kpcyrd at archlinux.org
Tue Mar 24 21:32:23 UTC 2020


    Date: Tuesday, March 24, 2020 @ 21:32:22
  Author: kpcyrd
Revision: 603934

archrelease: copy trunk to community-any

Added:
  python-pwntools/repos/community-any/PKGBUILD
    (from rev 603933, python-pwntools/trunk/PKGBUILD)
  python-pwntools/repos/community-any/pwn.conf
    (from rev 603933, python-pwntools/trunk/pwn.conf)
Deleted:
  python-pwntools/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  125 ++++++++++++++++++++++++++++++++++---------------------------
 pwn.conf |    2 
 2 files changed, 72 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-24 21:32:09 UTC (rev 603933)
+++ PKGBUILD	2020-03-24 21:32:22 UTC (rev 603934)
@@ -1,55 +0,0 @@
-# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Ding Xiao <tinocodfcdsa10 at mails.tsinghua.edu.cn>
-# Contributor: Firmy <firmianay at gmail.com>
-
-pkgname=python-pwntools
-_pyname=pwntools
-pkgver=4.0.1
-pkgrel=2
-pkgdesc='CTF framework and exploit development library'
-url='https://github.com/Gallopsled/pwntools'
-arch=('any')
-license=('MIT' 'GPL2' 'BSD')
-depends=('python'
-         'python-mako'
-         'python-pyelftools'
-         'python-capstone'
-         'ropgadget'
-         'python-pyserial'
-         'python-requests'
-         'python-pip'
-         'python-pygments'
-         'python-pysocks'
-         'python-dateutil'
-         'python-packaging'
-         'python-psutil'
-         'python-intervaltree'
-         'python-sortedcontainers'
-         'python-unicorn'
-         'python-tox'
-         'python-paramiko'
-         'ropgadget'
-         'python-setuptools')
-source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('5598bf8ebb96264dab3663d296be3dfe783451cf3535ad611d094a7c550d467f')
-b2sums=('9003e0ef0ceaa3e1a089de68f94c854e65c12ce4e21d3b3aadfa0c777f7aa168f02869b34ccdede04b17d53a5ad8ea8b0d91a20ea0d73496b814847a3ce4b423')
-
-prepare() {
-  cd ${_pyname}-${pkgver}
-  sed 's|>=1.0.2rc1||' -i setup.py
-}
-
-build() {
-  cd ${_pyname}-${pkgver}
-  python setup.py build
-}
-
-package() {
-  cd ${_pyname}-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}" --skip-build --only-use-pwn-command
-  install -Dm 644 LICENSE-pwntools.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.{txt,md}
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pwntools/repos/community-any/PKGBUILD (from rev 603933, python-pwntools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-24 21:32:22 UTC (rev 603934)
@@ -0,0 +1,70 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Ding Xiao <tinocodfcdsa10 at mails.tsinghua.edu.cn>
+# Contributor: Firmy <firmianay at gmail.com>
+
+pkgname=python-pwntools
+_pyname=pwntools
+pkgver=4.0.1
+pkgrel=3
+pkgdesc='CTF framework and exploit development library'
+url='https://github.com/Gallopsled/pwntools'
+arch=('any')
+license=('MIT' 'GPL2' 'BSD')
+depends=('python'
+         'python-mako'
+         'python-pyelftools'
+         'python-capstone'
+         'ropgadget'
+         'python-pyserial'
+         'python-requests'
+         'python-pip'
+         'python-pygments'
+         'python-pysocks'
+         'python-dateutil'
+         'python-packaging'
+         'python-psutil'
+         'python-intervaltree'
+         'python-sortedcontainers'
+         'python-unicorn'
+         'python-tox'
+         'python-paramiko'
+         'ropgadget'
+         'python-setuptools')
+source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        pwn.conf
+        # cherry-pick patch for [update] config section
+        https://github.com/Gallopsled/pwntools/commit/433d92619b98b916bee21865df066e005f28dc80.patch)
+sha256sums=('5598bf8ebb96264dab3663d296be3dfe783451cf3535ad611d094a7c550d467f'
+            '50916e4e45d026422cd6bfe8de50e7246c61b0b1e0007571e7c04a994282fe89'
+            '25a4bd5edc81e3f31200b8104392330cb4f5f30868c474ac55b99b5e4fdc73a0')
+b2sums=('9003e0ef0ceaa3e1a089de68f94c854e65c12ce4e21d3b3aadfa0c777f7aa168f02869b34ccdede04b17d53a5ad8ea8b0d91a20ea0d73496b814847a3ce4b423'
+        'cac0a12eea8abd3d2ee21632e7f2281e7e35c2d7839cfbcba83ae5d0e8f427e9cc2462a6d17d187252b99d9dbbb14393b9d5a63996c42043f553e9b66bfe9e07'
+        'b41a77d6e3a799ff937c1b04713919d5357fa371a0f730ddc83ff8253d463cb86b89bcf705724fd68a9c4fb8567821cfbc85be6723d6b43d916cff9385413363')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed 's|>=1.0.2rc1||' -i setup.py
+
+  patch --forward --strip=1 --input="${srcdir}/433d92619b98b916bee21865df066e005f28dc80.patch"
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd "${_pyname}-${pkgver}"
+  PYTHONPATH=. PWNLIB_NOTERM=true python -c 'import pwn'
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build --only-use-pwn-command
+  install -Dm 644 "${srcdir}/pwn.conf" -t "${pkgdir}/etc"
+  install -Dm 644 LICENSE-pwntools.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.{txt,md}
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-pwntools/repos/community-any/pwn.conf (from rev 603933, python-pwntools/trunk/pwn.conf)
===================================================================
--- pwn.conf	                        (rev 0)
+++ pwn.conf	2020-03-24 21:32:22 UTC (rev 603934)
@@ -0,0 +1,2 @@
+[update]
+interval=never



More information about the arch-commits mailing list