1 # $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=8ea5cae3eeaacc0271b766506b4b9d4a
9 PKG_SOURCE_URL
:=http
://www.stunnel.org
/download
/stunnel
/src
/
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/stunnel
21 DEPENDS
:=+libopenssl
+libwrap
22 TITLE
:=SSL TCP Wrapper
24 Open source SSL TCP Wrapper
25 URL
:=http
://stunnel.org
29 define Build
/Configure
30 $(call Build
/Configure
/Default
, \
31 --with-random
=/dev
/urandom \
37 mkdir
-p
$(PKG_INSTALL_DIR
)/etc
/stunnel
38 echo
'#dummy' > $(PKG_INSTALL_DIR
)/etc
/stunnel
/stunnel.pem
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 define Package
/stunnel
/install
45 install -d
-m0755
$(1)/usr
/sbin
$(1)/usr
/lib
$(1)/usr
/stunnel
46 install -d
-m0755
$(1)/etc
/stunnel
$(1)/etc
/init.d
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/stunnel
$(1)/usr
/sbin
/
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libstunnel.so
$(1)/usr
/sbin
/
49 $(CP
) .
/files
/stunnel.conf
$(1)/etc
/stunnel
/stunnel.conf
50 $(CP
) .
/files
/stunnel.init
$(1)/etc
/init.d
/S90stunnel
53 $(eval
$(call BuildPackage
,stunnel
))