1 ################################################################################
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 \
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
22 STUNNEL_CONF_OPTS
+= --disable-systemd
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
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
37 $(eval
$(autotools-package
))