2006-10-07 15:56:04 +00:00
|
|
|
#
|
2009-04-21 11:38:28 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-10-07 15:56:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=openvpn
|
2010-03-12 14:57:07 +00:00
|
|
|
PKG_VERSION:=2.1.1
|
2010-09-11 18:38:47 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-10-07 15:56:04 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://openvpn.net/release @SF/openvpn
|
2010-03-12 14:57:07 +00:00
|
|
|
PKG_MD5SUM:=b273ed2b5ec8616fb9834cde8634bce7
|
2006-10-07 15:56:04 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-10-07 15:56:04 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/openvpn
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+kmod-tun +libopenssl +liblzo
|
|
|
|
TITLE:=Open source VPN solution using SSL
|
|
|
|
URL:=http://openvpn.net
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-28 23:15:56 +00:00
|
|
|
define Package/openvpn/conffiles
|
|
|
|
/etc/config/openvpn
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/openvpn/description
|
|
|
|
Open source VPN solution using SSL
|
|
|
|
endef
|
|
|
|
|
2006-10-07 15:56:04 +00:00
|
|
|
define Package/openvpn-easy-rsa
|
|
|
|
$(call Package/openvpn)
|
|
|
|
DEPENDS:=openvpn +openssl-util
|
|
|
|
TITLE:=Simple shell scripts to manage a Certificate Authority
|
|
|
|
endef
|
|
|
|
|
2008-09-28 23:15:56 +00:00
|
|
|
define Package/openvpn-easy-rsa/conffiles
|
|
|
|
/etc/easy-rsa/keys/serial
|
|
|
|
/etc/easy-rsa/keys/index.txt
|
|
|
|
/etc/easy-rsa/vars
|
|
|
|
endef
|
|
|
|
|
2010-09-11 18:38:45 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-pthread \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-plugins \
|
|
|
|
--enable-management \
|
|
|
|
--disable-socks \
|
2010-09-11 18:38:47 +00:00
|
|
|
--enable-password-save \
|
|
|
|
--enable-small
|
2010-09-11 18:38:45 +00:00
|
|
|
|
2006-10-07 15:56:04 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2010-09-11 18:38:45 +00:00
|
|
|
$(CONFIGURE_ARGS) \
|
2008-07-02 10:28:52 +00:00
|
|
|
,\
|
|
|
|
ac_cv_func_epoll_create=no \
|
2006-10-30 13:51:50 +00:00
|
|
|
)
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-26 09:18:06 +00:00
|
|
|
define Package/openvpn/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
|
2007-06-20 12:23:02 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
2008-09-28 23:15:56 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
2009-07-15 09:26:52 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/openvpn
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
2009-09-26 09:18:06 +00:00
|
|
|
define Package/openvpn-easy-rsa/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-06-17 23:25:05 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req,whichopensslcnf} $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa
|
2008-09-28 23:15:56 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl.cnf $(1)/etc/easy-rsa/openssl.cnf
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(1)/etc/easy-rsa/vars
|
|
|
|
$(INSTALL_DIR) $(1)/etc/easy-rsa/keys
|
|
|
|
$(INSTALL_DATA) files/easy-rsa.index $(1)/etc/easy-rsa/keys/index.txt
|
|
|
|
$(INSTALL_DATA) files/easy-rsa.serial $(1)/etc/easy-rsa/keys/serial
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,openvpn))
|
|
|
|
$(eval $(call BuildPackage,openvpn-easy-rsa))
|