busybox: use C library crypt functions by default
[openadk.git] / package / openvpn / Makefile
blobc7efaf1f57b4b2087d741286bf7b22afffcc8149
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= openvpn
7 PKG_VERSION:= 2.4.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= 6f23ba49a1dbeb658f49c7ae17d9ea979de6d92c7357de3d55cd4525e1b2f87e
10 PKG_DESCR:= vpn solution using ssl/tls
11 PKG_DEPENDS:= libressl
12 PKG_BUILDDEP:= libressl
13 PKG_KDEPENDS:= tun
14 PKG_SECTION:= net/security
15 PKG_URL:= http://openvpn.net/
16 PKG_SITES:= http://swupdate.openvpn.org/community/releases/
18 PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS WITH_SMALL
19 PKGFD_WITH_LZO:= enable lzo compression support
20 PKGFS_WITH_LZO:= liblzo
21 PKGFB_WITH_LZO:= liblzo
22 PKGFD_WITH_MANAGEMENT:= enable management server support
23 PKGFD_WITH_HTTPPROXY:= enable http proxy support
24 PKGFD_WITH_SOCKS:= enable socks proxy support
25 PKGFD_WITH_SMALL:= enable extra small binary
27 include $(ADK_TOPDIR)/mk/package.mk
29 $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
31 CONFIGURE_ENV+= ac_cv_lib_nsl_inet_ntoa=no
33 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
34 CONFIGURE_ARGS+= --enable-lzo
35 else
36 CONFIGURE_ARGS+= --disable-lzo
37 endif
39 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
40 CONFIGURE_ARGS+= --enable-management
41 else
42 CONFIGURE_ARGS+= --disable-management
43 endif
45 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY),)
46 CONFIGURE_ARGS+= --enable-http-proxy
47 else
48 CONFIGURE_ARGS+= --disable-http-proxy
49 endif
51 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS),)
52 CONFIGURE_ARGS+= --enable-socks
53 else
54 CONFIGURE_ARGS+= --disable-socks
55 endif
57 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL),)
58 CONFIGURE_ARGS+= --enable-small
59 endif
61 ifeq ($(ADK_DEBUG),y)
62 CONFIGURE_ARGS+= --enable-debug
63 else
64 CONFIGURE_ARGS+= --disable-debug
65 endif
67 CONFIGURE_ARGS+= --disable-plugins \
68 --with-crypto-library=openssl \
69 --enable-iproute2
71 openvpn-install:
72 ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
73 ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
74 $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
75 $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
77 include ${ADK_TOPDIR}/mk/pkg-bottom.mk