Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= openvpn
  5. PKG_VERSION:= 2.3.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9b70be9fb45e407117c3c9b118e4ba22
  8. PKG_DESCR:= vpn solution using ssl/tls
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip
  11. PKG_URL:= http://openvpn.net/
  12. PKG_SITES:= http://swupdate.openvpn.org/community/releases/
  13. PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS
  14. PKGFD_WITH_LZO:= enable lzo compression support
  15. PKGFS_WITH_LZO:= liblzo
  16. PKGFB_WITH_LZO:= liblzo
  17. PKGFD_WITH_MANAGEMENT:= enable management server support
  18. PKGFD_WITH_HTTPPROXY:= enable http proxy support
  19. PKGFD_WITH_SOCKS:= enable socks proxy support
  20. PKG_CHOICES_OPENVPN:= WITH_OPENSSL WITH_POLARSSL
  21. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  22. PKGCS_WITH_OPENSSL:= libopenssl
  23. PKGCB_WITH_OPENSSL:= openssl
  24. PKGCD_WITH_POLARSSL:= use PolarSSL for crypto
  25. PKGCS_WITH_POLARSSL:= libpolarssl
  26. PKGCB_WITH_POLARSSL:= polarssl
  27. include $(ADK_TOPDIR)/mk/package.mk
  28. $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. AUTOTOOL_STYLE:= autoreconf
  30. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
  31. CONFIGURE_ARGS+= --enable-lzo
  32. else
  33. CONFIGURE_ARGS+= --disable-lzo
  34. endif
  35. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
  36. CONFIGURE_ARGS+= --enable-management
  37. else
  38. CONFIGURE_ARGS+= --disable-management
  39. endif
  40. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY),)
  41. CONFIGURE_ARGS+= --enable-http-proxy
  42. else
  43. CONFIGURE_ARGS+= --disable-http-proxy
  44. endif
  45. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS),)
  46. CONFIGURE_ARGS+= --enable-socks
  47. else
  48. CONFIGURE_ARGS+= --disable-socks
  49. endif
  50. ifeq (${ADK_PACKAGE_OPENVPN_WITH_OPENSSL},y)
  51. CONFIGURE_ARGS+= --with-crypto-library=openssl
  52. endif
  53. ifeq (${ADK_PACKAGE_OPENVPN_WITH_POLARSSL},y)
  54. CONFIGURE_ARGS+= --with-crypto-library=polarssl
  55. endif
  56. CONFIGURE_ARGS+= --disable-plugins \
  57. --enable-small \
  58. --disable-debug \
  59. --enable-iproute2
  60. openvpn-install:
  61. ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
  62. ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
  63. $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
  64. $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
  65. include ${ADK_TOPDIR}/mk/pkg-bottom.mk