Update tinyproxy to 1.6.4 (#4007)
[openwrt/svn-archive/archive.git] / net / openvpn / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=openvpn
12 PKG_VERSION:=2.0.9
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://openvpn.net/release @SF/openvpn
17 PKG_MD5SUM:=60745008b90b7dbe25fe8337c550fec6
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/openvpn
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+kmod-tun +libopenssl +liblzo
25 TITLE:=Open source VPN solution using SSL
26 URL:=http://openvpn.net
27 SUBMENU:=VPN
28 endef
29
30 define Package/openvpn/description
31 Open source VPN solution using SSL
32 endef
33
34 define Package/openvpn-easy-rsa
35 $(call Package/openvpn)
36 DEPENDS:=openvpn +openssl-util
37 TITLE:=Simple shell scripts to manage a Certificate Authority
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --disable-pthread \
43 --disable-debug \
44 --disable-plugins \
45 --enable-management \
46 --disable-socks \
47 --enable-password-save \
48 ,\
49 ac_cv_func_epoll_create=no \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Package/openvpn/install
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/init.d/
63 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
64 $(INSTALL_DIR) $(1)/etc/default
65 $(INSTALL_BIN) files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
66 endef
67
68 define Package/openvpn-easy-rsa/install
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} $(1)/usr/sbin/
71 $(INSTALL_DIR) $(1)/etc/easy-rsa
72 install -m 0644 $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl.cnf $(1)/etc/easy-rsa/openssl.cnf
73 install -m 0644 $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(1)/etc/easy-rsa/vars
74 endef
75
76 $(eval $(call BuildPackage,openvpn))
77 $(eval $(call BuildPackage,openvpn-easy-rsa))