[arch-commits] Commit in python-pwntools/trunk (PKGBUILD pwn.conf)

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


    Date: Tuesday, March 24, 2020 @ 21:32:09
  Author: kpcyrd
Revision: 603933

Disable auto update check

Added:
  python-pwntools/trunk/pwn.conf
Modified:
  python-pwntools/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++++----
 pwn.conf |    2 ++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-24 21:28:49 UTC (rev 603932)
+++ PKGBUILD	2020-03-24 21:32:09 UTC (rev 603933)
@@ -6,7 +6,7 @@
 pkgname=python-pwntools
 _pyname=pwntools
 pkgver=4.0.1
-pkgrel=2
+pkgrel=3
 pkgdesc='CTF framework and exploit development library'
 url='https://github.com/Gallopsled/pwntools'
 arch=('any')
@@ -31,13 +31,22 @@
          'python-paramiko'
          'ropgadget'
          'python-setuptools')
-source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('5598bf8ebb96264dab3663d296be3dfe783451cf3535ad611d094a7c550d467f')
-b2sums=('9003e0ef0ceaa3e1a089de68f94c854e65c12ce4e21d3b3aadfa0c777f7aa168f02869b34ccdede04b17d53a5ad8ea8b0d91a20ea0d73496b814847a3ce4b423')
+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() {
@@ -45,9 +54,15 @@
   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}
 }

Added: pwn.conf
===================================================================
--- pwn.conf	                        (rev 0)
+++ pwn.conf	2020-03-24 21:32:09 UTC (rev 603933)
@@ -0,0 +1,2 @@
+[update]
+interval=never



More information about the arch-commits mailing list