2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-06-29 15:46:17 +02:00
|
|
|
#
|
|
|
|
# stunnel
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-06-29 15:46:17 +02:00
|
|
|
|
2015-06-06 09:15:21 +02:00
|
|
|
STUNNEL_VERSION_MAJOR = 5
|
2016-01-21 18:31:54 +01:00
|
|
|
STUNNEL_VERSION = $(STUNNEL_VERSION_MAJOR).29
|
2015-06-06 09:15:21 +02:00
|
|
|
STUNNEL_SITE = http://www.usenix.org.uk/mirrors/stunnel/archive/$(STUNNEL_VERSION_MAJOR).x
|
2011-06-29 15:46:17 +02:00
|
|
|
STUNNEL_DEPENDENCIES = openssl
|
2014-11-05 17:01:59 +01:00
|
|
|
STUNNEL_CONF_OPTS = --with-ssl=$(STAGING_DIR)/usr --with-threads=fork \
|
|
|
|
--disable-libwrap
|
2015-04-23 16:19:44 +02:00
|
|
|
STUNNEL_CONF_ENV = \
|
2015-12-27 14:29:24 +01:00
|
|
|
ax_cv_check_cflags___fstack_protector=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
|
2013-03-19 07:58:46 +01:00
|
|
|
STUNNEL_LICENSE = GPLv2+
|
|
|
|
STUNNEL_LICENSE_FILES = COPYING COPYRIGHT.GPL
|
2011-06-29 15:46:17 +02:00
|
|
|
|
2014-11-05 17:01:59 +01:00
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
|
STUNNEL_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
STUNNEL_CONF_OPTS += --disable-systemd
|
|
|
|
endif
|
|
|
|
|
2014-11-30 15:17:58 +01:00
|
|
|
define STUNNEL_INSTALL_CONF
|
2014-11-30 15:18:48 +01:00
|
|
|
$(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
|
|
|
|
$(TARGET_DIR)/etc/stunnel/stunnel.conf
|
2011-06-29 15:46:17 +02:00
|
|
|
rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
|
|
|
|
endef
|
|
|
|
|
2014-11-30 15:17:58 +01:00
|
|
|
STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF
|
|
|
|
|
|
|
|
define STUNNEL_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
|
|
|
|
endef
|
2011-06-29 15:46:17 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|