From e37e7a8f5c1acd05e375eb463be5e2b604cc72d0 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 29 Mar 2016 21:41:33 +0200 Subject: [PATCH] sslh: update to 1.18. --- srcpkgs/sslh/patches/enable-pcre.patch | 104 ------------------------- srcpkgs/sslh/template | 8 +- 2 files changed, 4 insertions(+), 108 deletions(-) delete mode 100644 srcpkgs/sslh/patches/enable-pcre.patch diff --git a/srcpkgs/sslh/patches/enable-pcre.patch b/srcpkgs/sslh/patches/enable-pcre.patch deleted file mode 100644 index 68a1522b91..0000000000 --- a/srcpkgs/sslh/patches/enable-pcre.patch +++ /dev/null @@ -1,104 +0,0 @@ -diff --git Makefile Makefile -index ef77957..4d3857d 100644 ---- Makefile -+++ Makefile -@@ -1,6 +1,8 @@ - # Configuration - - VERSION=$(shell ./genver.sh -r) -+ENABLE_REGEX=1 -+USELIBPCRE=1 - USELIBCONFIG=1 # Use libconfig? (necessary to use configuration files) - USELIBWRAP?= # Use libwrap? - USELIBCAP= # Use libcap? -@@ -22,6 +24,15 @@ CFLAGS ?=-Wall -g $(CFLAGS_COV) - LIBS= - OBJS=common.o sslh-main.o probe.o - -+ifneq ($(strip $(ENABLE_REGEX)),) -+ CPPFLAGS+=-DENABLE_REGEX -+endif -+ -+ifneq ($(strip $(USELIBPCRE)),) -+ LIBS:=$(LIBS) -lpcre -+ CPPFLAGS+=-DLIBPCRE -+endif -+ - ifneq ($(strip $(USELIBWRAP)),) - LIBS:=$(LIBS) -lwrap - CPPFLAGS+=-DLIBWRAP -diff --git probe.c probe.c -index 8cff937..1e8c060 100644 ---- probe.c -+++ probe.c -@@ -21,7 +21,13 @@ - - #define _GNU_SOURCE - #include -+#ifdef ENABLE_REGEX -+#ifdef LIBPCRE -+#include -+#else - #include -+#endif -+#endif - #include - #include "probe.h" - -@@ -226,6 +232,7 @@ static int is_tls_protocol(const char *p, int len, struct proto *proto) - - static int regex_probe(const char *p, int len, struct proto *proto) - { -+#ifdef ENABLE_REGEX - regex_t **probe = proto->data; - regmatch_t pos = { 0, len }; - -@@ -233,6 +240,11 @@ static int regex_probe(const char *p, int len, struct proto *proto) - /* try them all */; - - return (*probe != NULL); -+#else -+ /* Should never happen as we check when loading config file */ -+ fprintf(stderr, "FATAL: regex probe called but not built in\n"); -+ exit(5); -+#endif - } - - /* -diff --git sslh-main.c sslh-main.c -index 9cc8a06..be54698 100644 ---- sslh-main.c -+++ sslh-main.c -@@ -25,7 +25,13 @@ - #ifdef LIBCONFIG - #include - #endif -+#ifdef ENABLE_REGEX -+#ifdef LIBPCRE -+#include -+#else - #include -+#endif -+#endif - - #include "common.h" - #include "probe.h" -@@ -174,6 +180,7 @@ static int config_listen(config_t *config, struct addrinfo **listen) - #ifdef LIBCONFIG - static void setup_regex_probe(struct proto *p, config_setting_t* probes) - { -+#ifdef ENABLE_REGEX - int num_probes, errsize, i, res; - char *err; - const char * expr; -@@ -201,6 +208,10 @@ static void setup_regex_probe(struct proto *p, config_setting_t* probes) - exit(1); - } - } -+#else -+ fprintf(stderr, "line %d: regex probe specified but not compiled in\n", config_setting_source_line(probes)); -+ exit(5); -+#endif - } - #endif - diff --git a/srcpkgs/sslh/template b/srcpkgs/sslh/template index 39e2f4e3b8..91f08a41d3 100644 --- a/srcpkgs/sslh/template +++ b/srcpkgs/sslh/template @@ -1,15 +1,15 @@ # Template file for 'sslh' pkgname=sslh -version=1.17 -revision=3 +version=1.18 +revision=1 hostmakedepends="perl" makedepends="pcre-devel libconfig-devel libcap-devel" short_desc="Applicative Protocol Multiplexer" maintainer="Markus Berger " license="GPL-2" -homepage="http://www.rutschle.net/tech/sslh" +homepage="http://www.rutschle.net/tech/sslh.shtml" distfiles="https://github.com/yrutschle/sslh/archive/v${version}.tar.gz" -checksum=b557c3bf75289d203353c25d92e34549a22f64510c48f7748c1c027748d51ad1 +checksum=f6cabf0e0c575aed20d1de23d3d693f3921c21e270d85fecba1ad2a48f3afcef do_build() { sed -i 's|^MAN=sslh.8.gz|MAN=sslh.8|g' Makefile