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