2003-12-28 23:06:25 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# openvpn
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-01-19 20:54:45 +01:00
|
|
|
OPENVPN_VERSION = 2.1.1
|
2009-07-02 14:55:51 +02:00
|
|
|
OPENVPN_SITE = http://openvpn.net/release
|
2009-07-02 14:58:39 +02:00
|
|
|
OPENVPN_CONF_OPT = --enable-small
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PTHREADS_NATIVE),y)
|
2009-07-02 14:58:39 +02:00
|
|
|
OPENVPN_CONF_OPT += --enable-threads=posix
|
2005-08-19 01:08:19 +02:00
|
|
|
else
|
2009-07-02 14:58:39 +02:00
|
|
|
OPENVPN_CONF_OPT += --enable-pthread
|
2005-08-19 01:08:19 +02:00
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2009-07-02 14:55:51 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,openvpn))
|
|
|
|
|
|
|
|
$(OPENVPN_TARGET_INSTALL_TARGET):
|
|
|
|
$(call MESSAGE,"Installing")
|
|
|
|
$(INSTALL) -m 755 $(OPENVPN_DIR)/openvpn \
|
|
|
|
$(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
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(OPENVPN_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/openvpn
|
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/openvpn
|
|
|
|
rm -f $(OPENVPN_TARGET_INSTALL_TARGET) $(OPENVPN_HOOK_POST_INSTALL)
|