This sets paths to ifconfig, route, netstat and ip in the target root filesystem. Otherwise the paths leak from the host and may not match those on the target. Signed-off-by: Valentine Barshak <gvaxon@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
#############################################################
|
|
#
|
|
# openvpn
|
|
#
|
|
#############################################################
|
|
|
|
OPENVPN_VERSION = 2.2.2
|
|
OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
|
|
OPENVPN_CONF_OPT = --enable-small --disable-plugins \
|
|
--with-ifconfig-path=/sbin/ifconfig \
|
|
--with-route-path=/sbin/route \
|
|
--with-netstat-path=/bin/netstat
|
|
|
|
ifeq ($(BR2_PACKAGE_IPROUTE2),y)
|
|
OPENVPN_CONF_OPT += --with-iproute-path=/sbin/ip
|
|
else
|
|
OPENVPN_CONF_OPT += --with-iproute-path=/bin/ip
|
|
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 $(autotools-package))
|