3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=7f00799f43910c0362df0e69c65965aa
9 PKG_SOURCE_URL
:=http
://www.stunnel.org
/download
/stunnel
/src
/
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 include $(INCLUDE_DIR
)/package.mk
14 define Package
/stunnel
17 DEPENDS
:=+libopenssl
+libwrap
18 TITLE
:=SSL TCP Wrapper
19 URL
:=http
://stunnel.org
22 define Package
/stunnel
/description
23 Stunnel is a program that allows you to encrypt arbitrary TCP
24 connections inside SSL
(Secure Sockets Layer
) available on both Unix
25 and Windows. Stunnel can allow you to secure non-SSL aware daemons and
26 protocols
(like POP
, IMAP
, LDAP
, etc
) by having Stunnel provide the
27 encryption
, requiring no changes to the daemon
's code.
31 define Build/Configure
32 $(call Build/Configure/Default, \
33 --with-random=/dev/urandom \
35 --with-ssl=$(STAGING_DIR)/usr \
40 mkdir -p $(PKG_INSTALL_DIR)/etc/stunnel
41 echo '#dummy' > $(PKG_INSTALL_DIR)/etc/stunnel/stunnel.pem
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 DESTDIR
="$(PKG_INSTALL_DIR)" \
47 define Package
/stunnel
/install
48 $(INSTALL_DIR
) $(1)/usr
/bin
49 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/stunnel
$(1)/usr
/bin
/
50 $(INSTALL_DIR
) $(1)/usr
/lib
/stunnel
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/stunnel
/libstunnel.so
$(1)/usr
/lib
/stunnel
/
52 $(INSTALL_DIR
) $(1)/etc
/stunnel
53 $(INSTALL_CONF
) .
/files
/stunnel.conf
$(1)/etc
/stunnel
/stunnel.conf
54 $(INSTALL_DIR
) $(1)/etc
/init.d
55 $(INSTALL_BIN
) .
/files
/stunnel.init
$(1)/etc
/init.d
/stunnel
58 $(eval
$(call BuildPackage
,stunnel
))