[arch-commits] Commit in sslsplit/trunk (PKGBUILD fix-tests.patch)

Evangelos Foutras foutrelis at archlinux.org
Tue Aug 6 04:55:37 UTC 2019


    Date: Tuesday, August 6, 2019 @ 04:55:37
  Author: foutrelis
Revision: 497578

Fix tests

Added:
  sslsplit/trunk/fix-tests.patch
Modified:
  sslsplit/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++++--
 fix-tests.patch |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-06 04:51:57 UTC (rev 497577)
+++ PKGBUILD	2019-08-06 04:55:37 UTC (rev 497578)
@@ -9,11 +9,18 @@
 license=('BSD')
 depends=('libevent' 'openssl')
 checkdepends=('check')
-source=(https://mirror.roe.ch/rel/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.asc})
+source=(https://mirror.roe.ch/rel/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.asc}
+        fix-tests.patch)
 sha512sums=('6c8a679c8016255e11adabb4f2a2e94cc23386ce33bc128e5bab2e5187f042e8daf8c720eef0f4fd3e7e94250deaf33b3c9253ffe05f1e4bdbd9a31f77785cc2'
-            'SKIP')
+            'SKIP'
+            '092ad2dc4dba64ff17c3401053218231ad9890b40d999a9b74b837c8f42a60fb33f2cc41de40aa5ef291ed69c7c90c47760c2148406bbae6b5dbba8a1f84f0fe')
 validpgpkeys=('BFF9C7D7EA0EAC7F1AA55B3EFABE3324B5D3397E') # Daniel Roethlisberger <daniel at roe.ch>
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i ../fix-tests.patch
+}
+
 build() {
   cd ${pkgname}-${pkgver}
   make

Added: fix-tests.patch
===================================================================
--- fix-tests.patch	                        (rev 0)
+++ fix-tests.patch	2019-08-06 04:55:37 UTC (rev 497578)
@@ -0,0 +1,32 @@
+From 209ef11bb0e63681e54a9d74ea635bc6048450a3 Mon Sep 17 00:00:00 2001
+From: Daniel Roethlisberger <daniel at roe.ch>
+Date: Sat, 27 Oct 2018 00:24:01 +0200
+Subject: [PATCH] Add session to testreqs and make server.pem order-only
+ dependency
+
+---
+ extra/pki/GNUmakefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/extra/pki/GNUmakefile b/extra/pki/GNUmakefile
+index 8053809..c23ae23 100644
+--- a/extra/pki/GNUmakefile
++++ b/extra/pki/GNUmakefile
+@@ -17,7 +17,7 @@ NO_SSL2:=	$(shell $(OPENSSL) s_server -h 2>&1|awk '/-no_ssl2/ {print $$1}')
+ 
+ all: rsa dsa ec targets server pwd
+ 
+-testreqs: rsa targets server
++testreqs: rsa targets server session
+ 
+ session: session.pem
+ 
+@@ -112,7 +112,7 @@ targets/wildcard.roe.ch.pem: rsa.crt
+ 		targets/wildcard.roe.ch.crt
+ 
+ # localhost network connectivity is required
+-session.pem: server.pem
++session.pem: | server.pem
+ 	$(OPENSSL) s_server -accept 46143 -cert server.pem -quiet $(NO_SSL2) & \
+ 		pid=$$! ; \
+ 		sleep 1 ; \



More information about the arch-commits mailing list