package/sslh: add optional libcap dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 5 Apr 2019 21:16:36 +0000 (23:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 11 Apr 2019 13:01:54 +0000 (15:01 +0200)
libcap dependency has been added in version 1.16 with
https://github.com/yrutschle/sslh/commit/009faa64b75801961f88ec5a7a09fd991168d4e9

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/sslh/sslh.mk

index 5c868dfe2f7fee4d010e200b6d1544609b34cfc2..e8eb5e2b6f8fba6cd4475d1fb41d1a8a539ab8d7 100644 (file)
@@ -13,6 +13,13 @@ SSLH_DEPENDENCIES = libconfig
 
 SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
 
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+SSLH_DEPENDENCIES += libcap
+SSLH_MAKE_OPTS += USELIBCAP=1
+else
+SSLH_MAKE_OPTS += USELIBCAP=
+endif
+
 ifeq ($(BR2_PACKAGE_PCRE),y)
 SSLH_DEPENDENCIES += pcre
 SSLH_MAKE_OPTS += USELIBPCRE=1