2010-07-31 22:33:26 +00:00
|
|
|
#
|
2011-05-15 08:26:18 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2010-07-31 22:33:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=openvpn-devel
|
2011-05-15 08:26:18 +00:00
|
|
|
PKG_VERSION:=201120
|
2010-07-31 22:33:26 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=openvpn-$(PKG_VERSION).tar.gz
|
2011-05-15 08:26:18 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.secure-computing.net/pub/FreeBSD/ports/openvpn-devel \
|
|
|
|
ftp://ftp2.secure-computing.net/pub/FreeBSD/ports/openvpn-devel
|
|
|
|
PKG_MD5SUM:=58d219359d5e086cc7749f23428c0bb0
|
2010-07-31 22:33:26 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-11-21 22:01:19 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-07-31 22:33:26 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/openvpn-devel
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/openvpn-devel
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+kmod-tun +kmod-ipv6 +libopenssl +liblzo +ip
|
|
|
|
TITLE:=Open source VPN solution using SSL (devel version)
|
|
|
|
URL:=http://openvpn.net
|
|
|
|
SUBMENU:=VPN
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openvpn-devel/conffiles
|
|
|
|
/etc/config/openvpn
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/openvpn-devel/description
|
|
|
|
Open source VPN solution using SSL - DEVEL VERSION, Week $(PKG_VERSION)
|
|
|
|
endef
|
|
|
|
|
2011-05-15 08:26:18 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-plugins \
|
|
|
|
--enable-management \
|
|
|
|
--enable-small \
|
|
|
|
--disable-socks \
|
|
|
|
--enable-password-save \
|
|
|
|
--enable-iproute2 \
|
|
|
|
--with-iproute-path=/usr/sbin/ip
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_func_epoll_create=no
|
2010-07-31 22:33:26 +00:00
|
|
|
|
|
|
|
define Package/openvpn-devel/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) files/openvpn.init $(1)/etc/init.d/openvpn
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/openvpn.config $(1)/etc/config/openvpn
|
|
|
|
$(INSTALL_DIR) $(1)/etc/openvpn
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,openvpn-devel))
|