lol

tlspool: 20170123 -> 20180227 and fix

authored by

Silvan Mosberger and committed by
Robin Gloster
7ffbbd33 a26a68da

+24 -101
-36
pkgs/tools/networking/tlspool/configvar-fix.patch
··· 1 - From 8561789ba70ae5d741992b143ee288b8e11a5e2b Mon Sep 17 00:00:00 2001 2 - From: joachim schiele <js@lastlog.de> 3 - Date: Wed, 1 Mar 2017 15:15:22 +0100 4 - Subject: [PATCH] fix to 5 - https://github.com/arpa2/tlspool/issues/58#issuecomment-283333738 6 - 7 - --- 8 - tool/Makefile | 5 ++--- 9 - 1 file changed, 2 insertions(+), 3 deletions(-) 10 - 11 - diff --git a/tool/Makefile b/tool/Makefile 12 - index 9a15012..0f655e9 100644 13 - --- a/tool/Makefile 14 - +++ b/tool/Makefile 15 - @@ -38,7 +38,6 @@ pgp11genkey_LIBS = $(P11KIT_LIBS) -lcrypto 16 - 17 - configvar_CFLAGS = $(tlspool_CFLAGS) 18 - configvar_LDFLAGS = $(tlspool_LDFLAGS) 19 - -configvar_LIBS = $(tlspool_LIBS) 20 - 21 - P11KIT_CFLAGS = $(shell pkg-config --cflags p11-kit-1) 22 - P11KIT_LIBS = $(shell pkg-config --libs p11-kit-1) 23 - @@ -96,8 +95,8 @@ have_db: have_db.c 24 - pgp11_genkey: pgp11_genkey.c 25 - gcc -std=gnu11 $(CFLAGS) $(pgp11genkey_CFLAGS) -o "$@" "$<" $(pgp11genkey_LIBS) 26 - 27 - -configvar: configvar.c $(configvar_LIBS) 28 - - gcc -std=gnu11 $(CFLAGS) $(configvar_CFLAGS) $(configvar_LDFLAGS) $(configvar_CFLAGS) -o "$@" "$<" $(configvar_LIBS) 29 - +configvar: configvar.c 30 - + gcc -std=gnu11 $(CFLAGS) $(configvar_CFLAGS) $(configvar_LDFLAGS) $(configvar_CFLAGS) -o "$@" "$<" 31 - 32 - $(tlspool_LIBS): 33 - $(MAKE) -C ../lib `basename $(tlspool_LIBS)` 34 - -- 35 - 2.12.0 36 -
+24 -29
pkgs/tools/networking/tlspool/default.nix
··· 1 - { pkgs, stdenv, fetchFromGitHub, unzip, libtool, pkgconfig, git, p11-kit, 2 - libtasn1, db, openldap, libmemcached, cyrus_sasl, openssl, softhsm, bash, 3 - python, libkrb5, quickder, unbound, ldns, gnupg, gnutls-kdh, 4 - useSystemd ? true, systemd, swig 1 + { stdenv, fetchFromGitHub 2 + , cmake, pkgconfig, arpa2cm 3 + , openldap, p11-kit, unbound, libtasn1, db, openssl, quickder, libkrb5, ldns, gnutls-kdh 4 + , softhsm 5 5 }: 6 6 7 7 let 8 8 pname = "tlspool"; 9 - version = "20170123"; 9 + version = "20180227"; 10 10 in 11 11 12 12 stdenv.mkDerivation rec { 13 13 name = "${pname}-${version}"; 14 - src = fetchFromGitHub { 14 + src = fetchFromGitHub { 15 15 owner = "arpa2"; 16 16 repo = "tlspool"; 17 - rev = "90cfa0758b02849114ba6373f280a4f2d3e534bf"; 18 - sha256 = "1qyq6da5bsgb8y9f3jhfrnhbvjns4k80lpkrydkvfx83bg494370"; 17 + rev = "b4459637d71c7602e94d455e23c74f3973b9cf30"; 18 + sha256 = "0x78f2bdsiglwicwn3injm5ysfjlfa0yzdpnc0r3iw4z0n89rj2r"; 19 19 }; 20 20 21 - propagatedBuildInputs = [ python softhsm openldap p11-kit.dev p11-kit.out gnupg ]; 22 - nativeBuildInputs = [ pkgconfig ]; 23 - buildInputs = [ unbound unzip git libtasn1 db libmemcached cyrus_sasl openssl bash quickder 24 - libkrb5 ldns libtool swig pkgs.pythonPackages.pip gnutls-kdh ] 25 - ++ stdenv.lib.optional useSystemd systemd; 21 + nativeBuildInputs = [ 22 + cmake pkgconfig arpa2cm 23 + ]; 26 24 27 - patches = [ ./fixing-rpath.patch ./configvar-fix.patch ]; 25 + buildInputs = [ 26 + openldap p11-kit unbound libtasn1 db openssl quickder libkrb5 ldns gnutls-kdh 27 + ]; 28 28 29 29 postPatch = '' 30 + # CMake is probably confused because the current version isn't 1.2.6, but 1.2-6 31 + substituteInPlace CMakeLists.txt \ 32 + --replace "Quick-DER 1.2.4" "Quick-DER 1.2" 30 33 substituteInPlace etc/tlspool.conf \ 31 34 --replace "dnssec_rootkey ../etc/root.key" "dnssec_rootkey $out/etc/root.key" \ 32 35 --replace "pkcs11_path /usr/local/lib/softhsm/libsofthsm2.so" "pkcs11_path ${softhsm}/lib/softhsm/libsofthsm2.so" 33 - substituteInPlace lib/Makefile \ 34 - --replace "DESTDIR=\$(DESTDIR) PREFIX=\$(PREFIX)" "DESTDIR=\$(DESTDIR) PREFIX=\$(PREFIX) SWIG=${swig}/bin/swig" 35 36 ''; 36 37 37 - buildPhase = '' 38 - make clean 39 - make DESTDIR=$out PREFIX=/ all 40 - ''; 41 - 42 - installPhase = '' 43 - mkdir -p $out/bin $out/lib $out/sbin $out/etc/tlspool/ $out/include/${pname}/pulleyback 44 - make DESTDIR=$out PREFIX=/ install 45 - cp -R etc/* $out/etc/tlspool/ 46 - cp include/tlspool/*.h $out/include/${pname} 47 - cp pulleyback/*.h $out/include/${pname}/pulleyback/ 48 - cp src/*.h $out/include/${pname} 38 + postInstall = '' 39 + mkdir -p $out/include/${pname}/pulleyback $out/etc/tlspool 40 + cp -R $src/etc/* $out/etc/tlspool/ 41 + cp $src/include/tlspool/*.h $out/include/${pname} 42 + cp $src/pulleyback/*.h $out/include/${pname}/pulleyback/ 43 + cp $src/src/*.h $out/include/${pname} 49 44 ''; 50 45 51 46 meta = with stdenv.lib; { 52 47 description = "A supercharged TLS daemon that allows for easy, strong and consistent deployment"; 53 - license = licenses.bsd2; 48 + license = licenses.gpl3; 54 49 homepage = http://www.tlspool.org; 55 50 maintainers = with maintainers; [ leenaars qknight ]; 56 51 };
-36
pkgs/tools/networking/tlspool/fixing-rpath.patch
··· 1 - From 8082f050794f771d1afb8e5c3d08862fc633922b Mon Sep 17 00:00:00 2001 2 - From: joachim schiele <js@lastlog.de> 3 - Date: Wed, 1 Mar 2017 13:12:19 +0100 4 - Subject: [PATCH] RPATH is back 5 - https://github.com/arpa2/tlspool/issues/58#issuecomment-283318767 6 - 7 - --- 8 - tool/Makefile | 10 +++++++++- 9 - 1 file changed, 9 insertions(+), 1 deletion(-) 10 - 11 - diff --git a/tool/Makefile b/tool/Makefile 12 - index c1e6ce9..9a15012 100644 13 - --- a/tool/Makefile 14 - +++ b/tool/Makefile 15 - @@ -18,9 +18,17 @@ LIBS = 16 - 17 - PREFIX = /usr/local 18 - 19 - +DIR := ${CURDIR} 20 - +LIBDIR := "" 21 - +ifndef DESTDIR 22 - + LIBDIR=$(DIR)/../lib/ 23 - +else 24 - + LIBDIR=$(DESTDIR)/lib 25 - +endif 26 - + 27 - tlspool_CFLAGS = 28 - tlspool_LIBS = ../lib/libtlspool.so 29 - -tlspool_LDFLAGS = -L ../lib -ltlspool 30 - +tlspool_LDFLAGS = -L ../lib -ltlspool -Wl,-rpath,$(LIBDIR) 31 - 32 - donai_CFLAGS = -DDONAI_ONLY_TEXTPROC 33 - donai_SRC = ../src/donai.c 34 - -- 35 - 2.11.1 36 -