2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-12-28 23:06:25 +01:00
|
|
|
#
|
|
|
|
# openvpn
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-12-28 23:06:25 +01:00
|
|
|
|
2018-05-04 06:16:35 +02:00
|
|
|
OPENVPN_VERSION = 2.4.6
|
2013-09-06 08:14:15 +02:00
|
|
|
OPENVPN_SOURCE = openvpn-$(OPENVPN_VERSION).tar.xz
|
2011-01-14 15:28:26 +01:00
|
|
|
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
|
2016-05-14 15:33:47 +02:00
|
|
|
OPENVPN_DEPENDENCIES = host-pkgconf openssl
|
2017-03-30 15:43:32 +02:00
|
|
|
OPENVPN_LICENSE = GPL-2.0
|
2013-06-28 15:41:16 +02:00
|
|
|
OPENVPN_LICENSE_FILES = COPYRIGHT.GPL
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENVPN_CONF_OPTS = \
|
|
|
|
--disable-plugin-auth-pam \
|
|
|
|
--enable-iproute2 \
|
2016-05-14 15:33:47 +02:00
|
|
|
--with-crypto-library=openssl \
|
2014-12-03 22:41:29 +01:00
|
|
|
$(if $(BR2_STATIC_LIBS),--disable-plugins)
|
2013-01-15 07:26:06 +01:00
|
|
|
OPENVPN_CONF_ENV = IFCONFIG=/sbin/ifconfig \
|
|
|
|
NETSTAT=/bin/netstat \
|
2018-05-04 06:16:35 +02:00
|
|
|
ROUTE=/sbin/route \
|
|
|
|
IPROUTE=/sbin/ip
|
2013-01-15 07:26:06 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_SMALL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENVPN_CONF_OPTS += \
|
|
|
|
--enable-small \
|
2017-03-23 18:37:50 +01:00
|
|
|
--disable-plugins
|
2013-01-15 07:26:06 +01:00
|
|
|
endif
|
2012-09-30 12:43:58 +02:00
|
|
|
|
2017-03-24 08:12:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_LZ4),y)
|
|
|
|
OPENVPN_DEPENDENCIES += lz4
|
|
|
|
else
|
|
|
|
OPENVPN_CONF_OPTS += --disable-lz4
|
|
|
|
endif
|
|
|
|
|
2010-01-19 20:54:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENVPN_DEPENDENCIES += lzo
|
2010-01-19 20:54:45 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
OPENVPN_CONF_OPTS += --disable-lzo
|
2010-01-19 20:54:45 +01:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:53:35 +02:00
|
|
|
define OPENVPN_INSTALL_TARGET_CMDS
|
2013-01-15 07:26:06 +01:00
|
|
|
$(INSTALL) -m 755 $(@D)/src/openvpn/openvpn \
|
2009-07-02 14:55:51 +02:00
|
|
|
$(TARGET_DIR)/usr/sbin/openvpn
|
2014-11-30 15:18:12 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define OPENVPN_INSTALL_INIT_SYSV
|
2013-01-15 21:30:14 +01:00
|
|
|
$(INSTALL) -m 755 -D package/openvpn/S60openvpn \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S60openvpn
|
2010-09-01 23:53:35 +02:00
|
|
|
endef
|
2009-07-02 14:55:51 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|