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
:= 15e15fc97f189b52aee7c90ec8355aa77469c773125110b4c2f089abecde36fb
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_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
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
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_HTTPPROXY
),)
55 CONFIGURE_ARGS
+= --enable-http-proxy
57 CONFIGURE_ARGS
+= --disable-http-proxy
60 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS
),)
61 CONFIGURE_ARGS
+= --enable-socks
63 CONFIGURE_ARGS
+= --disable-socks
66 ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL
),)
67 CONFIGURE_ARGS
+= --enable-small
71 CONFIGURE_ARGS
+= --enable-debug
73 CONFIGURE_ARGS
+= --disable-debug
76 CONFIGURE_ARGS
+= --disable-plugins \
77 --with-crypto-library
=openssl \
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