bea42678c9
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6500 3c298f89-4303-0410-b956-a3cf2f4a3e73
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=stunnel
|
|
PKG_VERSION:=4.20
|
|
PKG_RELEASE:=1
|
|
PKG_MD5SUM:=cf9940395d3503018f721c962528d2ec
|
|
PKG_SOURCE_URL:=http://www.stunnel.org/download/stunnel/src/
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_CAT:=zcat
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/stunnel
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libopenssl +libwrap
|
|
TITLE:=SSL TCP Wrapper
|
|
DESCRIPTION:=\
|
|
Open source SSL TCP Wrapper
|
|
URL:=http://stunnel.org
|
|
endef
|
|
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default, \
|
|
--with-random=/dev/urandom \
|
|
--with-threads=fork \
|
|
--with-ssl=$(STAGING_DIR)/usr \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
mkdir -p $(PKG_INSTALL_DIR)/etc/stunnel
|
|
echo '#dummy' > $(PKG_INSTALL_DIR)/etc/stunnel/stunnel.pem
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
all install
|
|
endef
|
|
|
|
define Package/stunnel/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/lib $(1)/usr/stunnel
|
|
$(INSTALL_DIR) $(1)/etc/stunnel $(1)/etc/init.d
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/stunnel $(1)/usr/sbin/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstunnel.so $(1)/usr/sbin/
|
|
$(CP) ./files/stunnel.conf $(1)/etc/stunnel/stunnel.conf
|
|
$(CP) ./files/stunnel.init $(1)/etc/init.d/S90stunnel
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,stunnel))
|