ncftp: bump version to 3.2.6
[buildroot-gz.git] / package / stunnel / stunnel.mk
blob5e35d672683bc45e3bf5d9e95ded1477ed1fe697
1 ################################################################################
3 # stunnel
5 ################################################################################
7 STUNNEL_VERSION_MAJOR = 5
8 STUNNEL_VERSION = $(STUNNEL_VERSION_MAJOR).36
9 STUNNEL_SITE = http://www.usenix.org.uk/mirrors/stunnel/archive/$(STUNNEL_VERSION_MAJOR).x
10 STUNNEL_DEPENDENCIES = openssl
11 STUNNEL_CONF_OPTS = --with-ssl=$(STAGING_DIR)/usr --with-threads=fork \
12 --disable-libwrap
13 STUNNEL_CONF_ENV = \
14 ax_cv_check_cflags___fstack_protector=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
15 STUNNEL_LICENSE = GPLv2+
16 STUNNEL_LICENSE_FILES = COPYING COPYRIGHT.GPL
18 ifeq ($(BR2_INIT_SYSTEMD),y)
19 STUNNEL_DEPENDENCIES += systemd
20 else
21 STUNNEL_CONF_OPTS += --disable-systemd
22 endif
24 define STUNNEL_INSTALL_CONF
25 $(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
26 $(TARGET_DIR)/etc/stunnel/stunnel.conf
27 rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
28 endef
30 STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF
32 define STUNNEL_INSTALL_INIT_SYSV
33 $(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
34 endef
36 $(eval $(autotools-package))