binutils: fix default
[openadk.git] / package / openvpn / Makefile
blobc5c6d984996925df370a5c84f15c42cdbd86290c
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.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= 15e15fc97f189b52aee7c90ec8355aa77469c773125110b4c2f089abecde36fb
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_LZ4 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_LZ4:= enable lz4 compression support
23 PKGFS_WITH_LZ4:= liblz4
24 PKGFB_WITH_LZ4:= lz4
25 PKGFD_WITH_MANAGEMENT:= enable management server support
26 PKGFD_WITH_HTTPPROXY:= enable http proxy support
27 PKGFD_WITH_SOCKS:= enable socks proxy support
28 PKGFD_WITH_SMALL:= enable extra small binary
30 include $(ADK_TOPDIR)/mk/package.mk
32 $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
34 CONFIGURE_ENV+= ac_cv_lib_nsl_inet_ntoa=no
36 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZ4),)
37 CONFIGURE_ARGS+= --enable-lz4
38 else
39 CONFIGURE_ARGS+= --disable-lz4
40 endif
42 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
43 CONFIGURE_ARGS+= --enable-lzo
44 else
45 CONFIGURE_ARGS+= --disable-lzo
46 endif
48 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
49 CONFIGURE_ARGS+= --enable-management
50 else
51 CONFIGURE_ARGS+= --disable-management
52 endif
54 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY),)
55 CONFIGURE_ARGS+= --enable-http-proxy
56 else
57 CONFIGURE_ARGS+= --disable-http-proxy
58 endif
60 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS),)
61 CONFIGURE_ARGS+= --enable-socks
62 else
63 CONFIGURE_ARGS+= --disable-socks
64 endif
66 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL),)
67 CONFIGURE_ARGS+= --enable-small
68 endif
70 ifeq ($(ADK_DEBUG),y)
71 CONFIGURE_ARGS+= --enable-debug
72 else
73 CONFIGURE_ARGS+= --disable-debug
74 endif
76 CONFIGURE_ARGS+= --disable-plugins \
77 --with-crypto-library=openssl \
78 --enable-iproute2
80 openvpn-install:
81 ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
82 ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
83 $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
84 $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
86 include ${ADK_TOPDIR}/mk/pkg-bottom.mk