kumquat-buildroot/package/openvpn/openvpn.mk
Gustavo Zacarias 5635902e88 openvpn: bump to version 2.1.4
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-01-17 22:27:41 +01:00

44 lines
1.0 KiB
Makefile

#############################################################
#
# openvpn
#
#############################################################
OPENVPN_VERSION = 2.1.4
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
OPENVPN_CONF_OPT = --enable-small
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
OPENVPN_CONF_OPT += --enable-pthread
else
OPENVPN_CONF_OPT += --disable-pthread
endif
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
define OPENVPN_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/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
endef
define OPENVPN_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/sbin/openvpn
rm -f $(TARGET_DIR)/etc/init.d/openvpn
endef
$(eval $(call AUTOTARGETS,package,openvpn))