2017-01-26 10:40:36 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sslh
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-10-12 22:18:49 +02:00
|
|
|
SSLH_VERSION = 1.21c
|
2019-09-11 19:46:30 +02:00
|
|
|
SSLH_SOURCE = sslh-v$(SSLH_VERSION).tar.gz
|
2017-01-26 10:40:36 +01:00
|
|
|
SSLH_SITE = http://www.rutschle.net/tech/sslh
|
2017-03-30 15:43:32 +02:00
|
|
|
SSLH_LICENSE = GPL-2.0+
|
2017-01-26 10:40:36 +01:00
|
|
|
SSLH_LICENSE_FILES = COPYING
|
|
|
|
|
2019-04-05 23:16:35 +02:00
|
|
|
SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
|
2020-10-12 22:18:49 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBSD),y)
|
|
|
|
SSLH_DEPENDENCIES += libbsd
|
|
|
|
SSLH_MAKE_OPTS += USELIBBSD=1
|
|
|
|
else
|
|
|
|
SSLH_MAKE_OPTS += USELIBBSD=
|
|
|
|
endif
|
|
|
|
|
2019-04-05 23:16:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
SSLH_DEPENDENCIES += libcap
|
|
|
|
SSLH_MAKE_OPTS += USELIBCAP=1
|
|
|
|
else
|
|
|
|
SSLH_MAKE_OPTS += USELIBCAP=
|
|
|
|
endif
|
|
|
|
|
2020-10-12 22:18:49 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCONFIG),y)
|
|
|
|
SSLH_DEPENDENCIES += libconfig
|
|
|
|
SSLH_MAKE_OPTS += USELIBCONFIG=1
|
|
|
|
else
|
|
|
|
SSLH_MAKE_OPTS += USELIBCONFIG=
|
|
|
|
endif
|
|
|
|
|
2019-04-05 23:16:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
SSLH_DEPENDENCIES += pcre
|
|
|
|
SSLH_MAKE_OPTS += USELIBPCRE=1
|
|
|
|
else
|
|
|
|
SSLH_MAKE_OPTS += USELIBPCRE=
|
|
|
|
endif
|
|
|
|
|
2019-05-24 17:11:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
SSLH_DEPENDENCIES += systemd
|
|
|
|
SSLH_MAKE_OPTS += USESYSTEMD=1
|
|
|
|
else
|
|
|
|
SSLH_MAKE_OPTS += USESYSTEMD=
|
|
|
|
endif
|
|
|
|
|
2017-01-26 10:40:36 +01:00
|
|
|
define SSLH_BUILD_CMDS
|
2019-04-11 20:10:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(SSLH_MAKE_OPTS) -C $(@D)
|
2017-01-26 10:40:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SSLH_INSTALL_TARGET_CMDS
|
2019-04-05 23:16:35 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(SSLH_MAKE_OPTS) -C $(@D) \
|
|
|
|
DESTDIR=$(TARGET_DIR) install
|
2017-01-26 10:40:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SSLH_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 755 -D package/sslh/S35sslh $(TARGET_DIR)/etc/init.d/S35sslh
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|