[packages] glib2: fix autoreconf
[openwrt/svn-archive/archive.git] / net / stunnel / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=stunnel
11 PKG_VERSION:=4.33
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://www.stunnel.org/download/stunnel/src/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=559a864066d8cc4afd8a97682c90d41c
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/stunnel
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl +libwrap
27 TITLE:=SSL TCP Wrapper
28 URL:=http://www.stunnel.org/
29 endef
30
31 define Package/stunnel/description
32 Stunnel is a program that allows you to encrypt arbitrary TCP
33 connections inside SSL (Secure Sockets Layer) available on both Unix
34 and Windows. Stunnel can allow you to secure non-SSL aware daemons and
35 protocols (like POP, IMAP, LDAP, etc) by having Stunnel provide the
36 encryption, requiring no changes to the daemon's code.
37 endef
38
39 define Package/stunnel/conffiles
40 /etc/stunnel/stunnel.conf
41 endef
42
43 CONFIGURE_ARGS+= \
44 --with-random=/dev/urandom \
45 --with-threads=fork \
46 --with-ssl=$(STAGING_DIR)/usr \
47
48 define Build/Compile
49 mkdir -p $(PKG_INSTALL_DIR)/etc/stunnel
50 echo '#dummy' > $(PKG_INSTALL_DIR)/etc/stunnel/stunnel.pem
51 $(call Build/Compile/Default)
52 endef
53
54 define Package/stunnel/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stunnel $(1)/usr/bin/
57 $(INSTALL_DIR) $(1)/usr/lib/stunnel
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/stunnel/libstunnel.so $(1)/usr/lib/stunnel/
59 $(INSTALL_DIR) $(1)/etc/stunnel
60 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/stunnel/stunnel.conf-sample $(1)/etc/stunnel/stunnel.conf
61 $(INSTALL_DIR) $(1)/etc/init.d
62 $(INSTALL_BIN) ./files/stunnel.init $(1)/etc/init.d/stunnel
63 endef
64
65 $(eval $(call BuildPackage,stunnel))