dot

packages and services management
Log | Files | Refs | README

commit fd6dded67b4e922cc38d1dff138afb318b686d34
parent 59e20702638528147a76ada1ba0ba765409ee9d7
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat,  2 Dec 2017 00:38:44 +0100

enable TLS for retawq (requires a patch)

Diffstat:
Mdaemon/ssh-agent | 4++--
Mpackage/retawq/build | 8+++++---
Apackage/retawq/resource.c.patch | 20++++++++++++++++++++
3 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/daemon/ssh-agent b/daemon/ssh-agent @@ -1,6 +1,6 @@ #!/bin/sh -mkdir -p "$HOME/var/run" -pgrep -qx ssh-agent && rm -f "$SSH_AUTH_SOCK" +mkdir -p "$(dirname "$SSH_AUTH_SOCK")" +pgrep -qx ssh-agent || rm -f "$SSH_AUTH_SOCK" exec ssh-agent -a "$SSH_AUTH_SOCK" diff --git a/package/retawq/build b/package/retawq/build @@ -1,3 +1,5 @@ -./configure -make -cp retawq "$OPT/bin/" +patch -p1 < "$PKG/resource.c.patch" +./configure --set-tls=2 --program-prefix="$OPT" --path-prefix="$OPT" +make LDFLAGS="-L$SYSROOT/lib" CFLAGS="-I$SYSROOT/include" +mkdir -p "$OPT/bin" +cp retawq "$OPT/bin" diff --git a/package/retawq/resource.c.patch b/package/retawq/resource.c.patch @@ -0,0 +1,20 @@ +$OpenBSD: patch-resource_c,v 1.2 2014/04/19 15:42:06 sthen Exp $ +--- resource.c.orig Sun Mar 19 07:21:20 2006 ++++ resource.c Sat Apr 19 16:41:46 2014 +@@ -9,6 +9,8 @@ + #include "stuff.h" + #include "resource.h" + #include "parser.h" ++#include <netinet/in.h> ++#include <sys/socket.h> + + #if CAN_HANDLE_SIGNALS + #include <signal.h> +@@ -2271,7 +2273,6 @@ static one_caller tBoolean tls_initialize(void) + my_spf_cleanup(debugstrbuf, spfbuf); + } + #endif +- if (RAND_egd(seedfilename) >= 0) goto rand_finish; + debugmsg("TLS: random D\n"); + (void) RAND_load_file(seedfilename, -1); + /* ("-1" is allowed for OpenSSL >= 0.9.5) */