-# From http://www.stunnel.org/pipermail/stunnel-announce/2014-October/000084.html
-sha256 098c2b6db0793ea4fa5b6767ce6ef1853e9f6cc2f32133024be55f6a460b1a40 stunnel-5.06.tar.gz
+# From http://www.stunnel.org/pipermail/stunnel-announce/2014-November/000085.html
+sha256 505c6c63c4a20fc0cce8c35ef1ab7626c7b01071e3fca4ac6ea417afe8065309 stunnel-5.07.tar.gz
#
################################################################################
-STUNNEL_VERSION = 5.06
+STUNNEL_VERSION = 5.07
STUNNEL_SITE = http://ftp.nluug.nl/pub/networking/stunnel/archive/5.x
STUNNEL_DEPENDENCIES = openssl
-STUNNEL_CONF_OPTS = --with-ssl=$(STAGING_DIR)/usr --with-threads=fork
+STUNNEL_CONF_OPTS = --with-ssl=$(STAGING_DIR)/usr --with-threads=fork \
+ --disable-libwrap
STUNNEL_LICENSE = GPLv2+
STUNNEL_LICENSE_FILES = COPYING COPYRIGHT.GPL
+ifeq ($(BR2_INIT_SYSTEMD),y)
+STUNNEL_DEPENDENCIES += systemd
+else
+STUNNEL_CONF_OPTS += --disable-systemd
+endif
+
define STUNNEL_INSTALL_CONF_SCRIPT
$(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
[ -f $(TARGET_DIR)/etc/stunnel/stunnel.conf ] || \