2003-12-28 23:06:25 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# openvpn
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-08-03 11:18:19 +02:00
|
|
|
OPENVPN_VERSION = 2.2.1
|
2011-01-14 15:28:26 +01:00
|
|
|
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
|
2011-04-27 20:05:10 +02:00
|
|
|
OPENVPN_CONF_OPT = --enable-small --disable-plugins
|
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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENVPN_OPENSSL),y)
|
|
|
|
OPENVPN_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
OPENVPN_CONF_OPT += --disable-crypto --disable-ssl
|
|
|
|
endif
|
|
|
|
|
2010-09-01 23:53:35 +02:00
|
|
|
define OPENVPN_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 755 $(@D)/openvpn \
|
2009-07-02 14:55:51 +02:00
|
|
|
$(TARGET_DIR)/usr/sbin/openvpn
|
|
|
|
if [ ! -f $(TARGET_DIR)/etc/init.d/openvpn ]; then \
|
|
|
|
$(INSTALL) -m 755 -D package/openvpn/openvpn.init \
|
|
|
|
$(TARGET_DIR)/etc/init.d/openvpn; \
|
|
|
|
fi
|
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
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/openvpn
|
2010-09-01 23:53:35 +02:00
|
|
|
endef
|
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|