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
|
|
|
|
2013-06-12 16:14:26 +02:00
|
|
|
OPENVPN_VERSION = 2.3.2
|
2011-01-14 15:28:26 +01:00
|
|
|
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
|
2013-01-15 07:26:06 +01:00
|
|
|
OPENVPN_DEPENDENCIES = host-pkgconf
|
|
|
|
OPENVPN_CONF_OPT = --disable-plugin-auth-pam --enable-iproute2
|
|
|
|
OPENVPN_CONF_ENV = IFCONFIG=/sbin/ifconfig \
|
|
|
|
NETSTAT=/bin/netstat \
|
|
|
|
ROUTE=/sbin/route
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_SMALL),y)
|
|
|
|
OPENVPN_CONF_OPT += --enable-small --disable-plugins \
|
|
|
|
--disable-debug --disable-eurephia
|
|
|
|
endif
|
2012-09-30 12:43:58 +02:00
|
|
|
|
2013-04-04 13:32:53 +02:00
|
|
|
# Busybox 1.21+ places the ip applet in the "correct" place
|
|
|
|
# but previous versions didn't.
|
2012-09-30 12:43:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_IPROUTE2),y)
|
2013-01-15 07:26:06 +01:00
|
|
|
OPENVPN_CONF_ENV += IPROUTE=/sbin/ip
|
2013-04-04 13:32:53 +02:00
|
|
|
else ifeq ($(BR2_BUSYBOX_VERSION_1_19_X)$(BR2_BUSYBOX_VERSION_1_20_X),y)
|
2013-01-15 07:26:06 +01:00
|
|
|
OPENVPN_CONF_ENV += IPROUTE=/bin/ip
|
2013-04-04 13:32:53 +02:00
|
|
|
else
|
|
|
|
OPENVPN_CONF_ENV += IPROUTE=/sbin/ip
|
2012-09-30 12:43:58 +02:00
|
|
|
endif
|
2005-08-19 01:08:19 +02:00
|
|
|
|
2010-01-19 20:54:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
|
|
|
|
OPENVPN_DEPENDENCIES += lzo
|
|
|
|
else
|
|
|
|
OPENVPN_CONF_OPT += --disable-lzo
|
|
|
|
endif
|
|
|
|
|
2013-01-15 07:26:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_OPENSSL),y)
|
|
|
|
OPENVPN_CONF_OPT += --with-crypto-library=openssl
|
2010-01-19 20:54:45 +01:00
|
|
|
OPENVPN_DEPENDENCIES += openssl
|
2013-01-15 07:26:06 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_CRYPTO_POLARSSL),y)
|
|
|
|
OPENVPN_CONF_OPT += --with-crypto-library=polarssl
|
|
|
|
OPENVPN_DEPENDENCIES += polarssl
|
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
|
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
|
|
|
|
2010-09-01 23:53:35 +02:00
|
|
|
define OPENVPN_UNINSTALL_TARGET_CMDS
|
2009-07-02 14:55:51 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/openvpn
|
2013-01-15 21:30:14 +01:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S60openvpn
|
2010-09-01 23:53:35 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|