binutils: update to 2.43.1
[openadk.git] / package / openvpn / Makefile
blob8001a51ca8f5d6f1e3a7dc1385334a154feccd22
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.6.10
8 PKG_RELEASE:= 1
9 PKG_HASH:= 1993bbb7b9edb430626eaa24573f881fd3df642f427fcb824b1aed1fca1bcc9b
10 PKG_DESCR:= vpn solution using ssl/tls
11 PKG_DEPENDS:= libressl libcap-ng
12 PKG_BUILDDEP:= libressl libcap-ng
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 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
20 PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_LZ4 WITH_MANAGEMENT WITH_SMALL
21 PKGFD_WITH_LZO:= enable lzo compression support
22 PKGFS_WITH_LZO:= liblzo
23 PKGFB_WITH_LZO:= liblzo
24 PKGFD_WITH_LZ4:= enable lz4 compression support
25 PKGFS_WITH_LZ4:= liblz4
26 PKGFB_WITH_LZ4:= lz4
27 PKGFD_WITH_MANAGEMENT:= enable management server 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_SMALL),)
55 CONFIGURE_ARGS+= --enable-small
56 endif
58 ifeq ($(ADK_DEBUG),y)
59 CONFIGURE_ARGS+= --enable-debug
60 else
61 CONFIGURE_ARGS+= --disable-debug
62 endif
64 CONFIGURE_ARGS+= --disable-plugins \
65 --with-crypto-library=openssl \
66 --enable-iproute2
68 openvpn-install:
69 ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
70 ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
71 $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
72 $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
74 include ${ADK_TOPDIR}/mk/pkg-bottom.mk