1################################################################################ 2# 3# sslh 4# 5################################################################################ 6 7SSLH_VERSION = 1.21c 8SSLH_SOURCE = sslh-v$(SSLH_VERSION).tar.gz 9SSLH_SITE = http://www.rutschle.net/tech/sslh 10SSLH_LICENSE = GPL-2.0+ 11SSLH_LICENSE_FILES = COPYING 12 13SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) 14 15ifeq ($(BR2_PACKAGE_LIBBSD),y) 16SSLH_DEPENDENCIES += libbsd 17SSLH_MAKE_OPTS += USELIBBSD=1 18else 19SSLH_MAKE_OPTS += USELIBBSD= 20endif 21 22ifeq ($(BR2_PACKAGE_LIBCAP),y) 23SSLH_DEPENDENCIES += libcap 24SSLH_MAKE_OPTS += USELIBCAP=1 25else 26SSLH_MAKE_OPTS += USELIBCAP= 27endif 28 29ifeq ($(BR2_PACKAGE_LIBCONFIG),y) 30SSLH_DEPENDENCIES += libconfig 31SSLH_MAKE_OPTS += USELIBCONFIG=1 32else 33SSLH_MAKE_OPTS += USELIBCONFIG= 34endif 35 36ifeq ($(BR2_PACKAGE_PCRE),y) 37SSLH_DEPENDENCIES += pcre 38SSLH_MAKE_OPTS += USELIBPCRE=1 39else 40SSLH_MAKE_OPTS += USELIBPCRE= 41endif 42 43ifeq ($(BR2_PACKAGE_SYSTEMD),y) 44SSLH_DEPENDENCIES += systemd 45SSLH_MAKE_OPTS += USESYSTEMD=1 46else 47SSLH_MAKE_OPTS += USESYSTEMD= 48endif 49 50define SSLH_BUILD_CMDS 51 $(TARGET_MAKE_ENV) $(MAKE) $(SSLH_MAKE_OPTS) -C $(@D) 52endef 53 54define SSLH_INSTALL_TARGET_CMDS 55 $(TARGET_MAKE_ENV) $(MAKE) $(SSLH_MAKE_OPTS) -C $(@D) \ 56 DESTDIR=$(TARGET_DIR) install 57endef 58 59define SSLH_INSTALL_INIT_SYSV 60 $(INSTALL) -m 755 -D package/sslh/S35sslh $(TARGET_DIR)/etc/init.d/S35sslh 61endef 62 63$(eval $(generic-package)) 64