Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= openvpn
  5. PKG_VERSION:= 2.3.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 547a024ac81acf458edeb19f32cf1088
  8. PKG_DESCR:= VPN solution using SSL/TLS
  9. PKG_SECTION:= net/security
  10. PKG_BUILDDEP:= autotool
  11. PKG_DEPENDS:= kmod-tun ip
  12. PKG_URL:= http://openvpn.net/
  13. PKG_SITES:= http://swupdate.openvpn.org/community/releases/
  14. PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS
  15. PKGFD_WITH_LZO:= enable LZO compression support
  16. PKGFS_WITH_LZO:= liblzo
  17. PKGFB_WITH_LZO:= liblzo
  18. PKGFD_WITH_MANAGEMENT:= enable management server support
  19. PKGFD_WITH_HTTPPROXY:= enable http proxy support
  20. PKGFD_WITH_SOCKS:= enable socks proxy support
  21. PKG_CHOICES_OPENVPN:= WITH_OPENSSL WITH_POLARSSL
  22. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  23. PKGCS_WITH_OPENSSL:= libopenssl
  24. PKGCB_WITH_OPENSSL:= openssl
  25. PKGCD_WITH_POLARSSL:= use PolarSSL for crypto
  26. PKGCS_WITH_POLARSSL:= libpolarssl
  27. PKGCB_WITH_POLARSSL:= polarssl
  28. include $(TOPDIR)/mk/package.mk
  29. $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. AUTOTOOL_STYLE:= autoreconf
  31. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
  32. CONFIGURE_ARGS+= --enable-lzo
  33. else
  34. CONFIGURE_ARGS+= --disable-lzo
  35. endif
  36. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
  37. CONFIGURE_ARGS+= --enable-management
  38. else
  39. CONFIGURE_ARGS+= --disable-management
  40. endif
  41. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY),)
  42. CONFIGURE_ARGS+= --enable-http-proxy
  43. else
  44. CONFIGURE_ARGS+= --disable-http-proxy
  45. endif
  46. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS),)
  47. CONFIGURE_ARGS+= --enable-socks
  48. else
  49. CONFIGURE_ARGS+= --disable-socks
  50. endif
  51. ifeq (${ADK_PACKAGE_OPENVPN_WITH_OPENSSL},y)
  52. CONFIGURE_ARGS+= --with-crypto-library=openssl
  53. endif
  54. ifeq (${ADK_PACKAGE_OPENVPN_WITH_POLARSSL},y)
  55. CONFIGURE_ARGS+= --with-crypto-library=polarssl
  56. endif
  57. CONFIGURE_ARGS+= --disable-plugins \
  58. --enable-small \
  59. --disable-debug \
  60. --enable-iproute2
  61. openvpn-install:
  62. ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
  63. ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
  64. $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
  65. $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
  66. include ${TOPDIR}/mk/pkg-bottom.mk