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
:= 6f23ba49a1dbeb658f49c7ae17d9ea979de6d92c7357de3d55cd4525e1b2f87e
10 PKG_DESCR
:= vpn solution using ssl
/tls
11 PKG_DEPENDS
:= libressl
12 PKG_BUILDDEP
:= libressl
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
36 CONFIGURE_ARGS
+= --disable-lzo
39 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT
),)
40 CONFIGURE_ARGS
+= --enable-management
42 CONFIGURE_ARGS
+= --disable-management
45 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY
),)
46 CONFIGURE_ARGS
+= --enable-http-proxy
48 CONFIGURE_ARGS
+= --disable-http-proxy
51 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS
),)
52 CONFIGURE_ARGS
+= --enable-socks
54 CONFIGURE_ARGS
+= --disable-socks
57 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL
),)
58 CONFIGURE_ARGS
+= --enable-small
62 CONFIGURE_ARGS
+= --enable-debug
64 CONFIGURE_ARGS
+= --disable-debug
67 CONFIGURE_ARGS
+= --disable-plugins \
68 --with-crypto-library
=openssl \
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