python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / stunnel / stunnel.mk
blobf98e7b59eb2ae4e26996e2960c2f8a7da4e81d7f
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 LIBS=$(if $(BR2_STATIC_LIBS),-lz)
16 STUNNEL_LICENSE = GPLv2+
17 STUNNEL_LICENSE_FILES = COPYING COPYRIGHT.GPL
19 ifeq ($(BR2_INIT_SYSTEMD),y)
20 STUNNEL_DEPENDENCIES += systemd
21 else
22 STUNNEL_CONF_OPTS += --disable-systemd
23 endif
25 define STUNNEL_INSTALL_CONF
26 $(INSTALL) -m 0644 -D $(@D)/tools/stunnel.conf \
27 $(TARGET_DIR)/etc/stunnel/stunnel.conf
28 rm -f $(TARGET_DIR)/etc/stunnel/stunnel.conf-sample
29 endef
31 STUNNEL_POST_INSTALL_TARGET_HOOKS += STUNNEL_INSTALL_CONF
33 define STUNNEL_INSTALL_INIT_SYSV
34 $(INSTALL) -m 0755 -D package/stunnel/S50stunnel $(TARGET_DIR)/etc/init.d/S50stunnel
35 endef
37 $(eval $(autotools-package))