1 #############################################################
5 #############################################################
7 OPENVPN_VERSION
= 2.2.2
8 OPENVPN_SITE
= http
://swupdate.openvpn.net
/community
/releases
9 OPENVPN_CONF_OPT
= --enable-small
--disable-plugins
11 ifeq ($(BR2_PACKAGE_OPENVPN_LZO
),y
)
12 OPENVPN_DEPENDENCIES
+= lzo
14 OPENVPN_CONF_OPT
+= --disable-lzo
17 ifeq ($(BR2_PACKAGE_OPENVPN_OPENSSL
),y
)
18 OPENVPN_DEPENDENCIES
+= openssl
20 OPENVPN_CONF_OPT
+= --disable-crypto
--disable-ssl
23 define OPENVPN_INSTALL_TARGET_CMDS
24 $(INSTALL
) -m
755 $(@D
)/openvpn \
25 $(TARGET_DIR
)/usr
/sbin
/openvpn
26 if
[ ! -f
$(TARGET_DIR
)/etc
/init.d
/openvpn
]; then \
27 $(INSTALL
) -m
755 -D package
/openvpn
/openvpn.init \
28 $(TARGET_DIR
)/etc
/init.d
/openvpn
; \
32 define OPENVPN_UNINSTALL_TARGET_CMDS
33 rm -f
$(TARGET_DIR
)/usr
/sbin
/openvpn
34 rm -f
$(TARGET_DIR
)/etc
/init.d
/openvpn
37 $(eval
$(call AUTOTARGETS
))