sslh-1.18-systemd-generator.patch 603 B

123456789101112131415161718192021222324252627
  1. https://patch-diff.githubusercontent.com/raw/yrutschle/sslh/pull/98
  2. --- a/Makefile
  3. +++ b/Makefile
  4. @@ -27,6 +27,8 @@ CFLAGS ?=-Wall -g $(CFLAGS_COV)
  5. LIBS=
  6. OBJS=common.o sslh-main.o probe.o tls.o
  7. +CONDITIONAL_TARGETS=
  8. +
  9. ifneq ($(strip $(USELIBWRAP)),)
  10. LIBS:=$(LIBS) -lwrap
  11. CPPFLAGS+=-DLIBWRAP
  12. @@ -54,10 +56,11 @@ endif
  13. ifneq ($(strip $(USESYSTEMD)),)
  14. LIBS:=$(LIBS) -lsystemd
  15. CPPFLAGS+=-DSYSTEMD
  16. + CONDITIONAL_TARGETS+=systemd-sslh-generator
  17. endif
  18. -all: sslh $(MAN) echosrv
  19. +all: sslh $(MAN) echosrv $(CONDITIONAL_TARGETS)
  20. .c.o: *.h
  21. $(CC) $(CFLAGS) $(CPPFLAGS) -c $<