0001-Makefile-add-USE_LIBEV.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From 3e93c1d43de8a662e402127462f28ef0bebf8997 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 1 Oct 2023 18:45:53 +0200
  4. Subject: [PATCH] Makefile: add USE_LIBEV
  5. Add USE_LIBEV to avoid the following build failure without libev raised
  6. since version 2.0 and
  7. https://github.com/yrutschle/sslh/commit/711c11c820f8be4f1399024bcaa1d7072de33217:
  8. sslh-ev.c:24:10: fatal error: ev.h: Aucun fichier ou dossier de ce type
  9. 24 | #include <ev.h>
  10. | ^~~~~~
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. Upstream: https://github.com/yrutschle/sslh/commit/3e93c1d43de8a662e402127462f28ef0bebf8997
  13. ---
  14. Makefile | 8 ++++++--
  15. 1 file changed, 6 insertions(+), 2 deletions(-)
  16. diff --git a/Makefile b/Makefile
  17. index a4425c3..aa2689e 100644
  18. --- a/Makefile
  19. +++ b/Makefile
  20. @@ -6,6 +6,7 @@ VERSION=$(shell ./genver.sh -r)
  21. ENABLE_SANITIZER= # Enable ASAN/LSAN/UBSAN
  22. ENABLE_REGEX=1 # Enable regex probes
  23. USELIBCONFIG=1 # Use libconfig? (necessary to use configuration files)
  24. +USELIBEV=1 # Use libev?
  25. USELIBWRAP?= # Use libwrap?
  26. USELIBCAP= # Use libcap?
  27. USESYSTEMD= # Make use of systemd socket activation
  28. @@ -72,6 +73,9 @@ ifneq ($(strip $(USELIBBSD)),)
  29. CPPFLAGS+=-DLIBBSD
  30. endif
  31. +ifneq ($(strip $(USELIBEV)),)
  32. + CONDITIONAL_TARGETS+=sslh-ev
  33. +endif
  34. all: sslh $(MAN) echosrv $(CONDITIONAL_TARGETS)
  35. @@ -84,7 +88,7 @@ $(OBJS_A): $(OBJS)
  36. version.h:
  37. ./genver.sh >version.h
  38. -sslh: sslh-fork sslh-select sslh-ev
  39. +sslh: sslh-fork sslh-select
  40. $(OBJS) $(FORK_OBJS) $(SELECT_OBJS) $(EV_OBJS): argtable3.h collection.h common.h gap.h hash.h log.h probe.h processes.h sslh-conf.h tcp-listener.h tcp-probe.h tls.h udp-listener.h version.h
  41. @@ -153,7 +157,7 @@ distclean: clean
  42. rm -f tags sslh-conf.[ch] echosrv-conf.[ch] cscope.*
  43. clean:
  44. - rm -f sslh-fork sslh-select sslh-ev echosrv version.h $(MAN) systemd-sslh-generator *.o *.gcov *.gcno *.gcda *.png *.html *.css *.info
  45. + rm -f sslh-fork sslh-select $(CONDITIONAL_TARGETS) echosrv version.h $(MAN) systemd-sslh-generator *.o *.gcov *.gcno *.gcda *.png *.html *.css *.info
  46. tags:
  47. ctags --globals -T *.[ch]