2006-10-07 15:56:04 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-10-30 13:51:50 +00:00
|
|
|
# $Id$
|
2006-10-07 15:56:04 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=openvpn
|
|
|
|
PKG_VERSION:=2.0.9
|
2009-01-29 11:22:03 +00:00
|
|
|
PKG_RELEASE:=5
|
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
|
|
|
|
PKG_MD5SUM:=60745008b90b7dbe25fe8337c550fec6
|
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
|
|
|
|
|
2006-10-07 15:56:04 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-pthread \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-plugins \
|
|
|
|
--enable-management \
|
|
|
|
--disable-socks \
|
|
|
|
--enable-password-save \
|
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
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-30 13:51:50 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
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)
|
2006-10-07 15:56:04 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
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))
|