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
9 PKG_HASH
:= 1993bbb7b9edb430626eaa24573f881fd3df642f427fcb824b1aed1fca1bcc9b
10 PKG_DESCR
:= vpn solution using ssl
/tls
11 PKG_DEPENDS
:= libressl libcap-ng
12 PKG_BUILDDEP
:= libressl libcap-ng
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
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
39 CONFIGURE_ARGS
+= --disable-lz4
42 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO
),)
43 CONFIGURE_ARGS
+= --enable-lzo
45 CONFIGURE_ARGS
+= --disable-lzo
48 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT
),)
49 CONFIGURE_ARGS
+= --enable-management
51 CONFIGURE_ARGS
+= --disable-management
54 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL
),)
55 CONFIGURE_ARGS
+= --enable-small
59 CONFIGURE_ARGS
+= --enable-debug
61 CONFIGURE_ARGS
+= --disable-debug
64 CONFIGURE_ARGS
+= --disable-plugins \
65 --with-crypto-library
=openssl \
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