Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.5.7
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 08340a389905c84196b6cd750add1bc0fa2d46a1afebfd589c24120946c13e68
  8. PKG_DESCR:= vpn solution using ssl/tls
  9. PKG_DEPENDS:= libressl
  10. PKG_BUILDDEP:= libressl
  11. PKG_KDEPENDS:= tun
  12. PKG_SECTION:= net/security
  13. PKG_URL:= http://openvpn.net/
  14. PKG_SITES:= http://swupdate.openvpn.org/community/releases/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_LZ4 WITH_MANAGEMENT WITH_SMALL
  17. PKGFD_WITH_LZO:= enable lzo compression support
  18. PKGFS_WITH_LZO:= liblzo
  19. PKGFB_WITH_LZO:= liblzo
  20. PKGFD_WITH_LZ4:= enable lz4 compression support
  21. PKGFS_WITH_LZ4:= liblz4
  22. PKGFB_WITH_LZ4:= lz4
  23. PKGFD_WITH_MANAGEMENT:= enable management server support
  24. PKGFD_WITH_SMALL:= enable extra small binary
  25. include $(ADK_TOPDIR)/mk/package.mk
  26. $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. CONFIGURE_ENV+= ac_cv_lib_nsl_inet_ntoa=no
  28. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZ4),)
  29. CONFIGURE_ARGS+= --enable-lz4
  30. else
  31. CONFIGURE_ARGS+= --disable-lz4
  32. endif
  33. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
  34. CONFIGURE_ARGS+= --enable-lzo
  35. else
  36. CONFIGURE_ARGS+= --disable-lzo
  37. endif
  38. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
  39. CONFIGURE_ARGS+= --enable-management
  40. else
  41. CONFIGURE_ARGS+= --disable-management
  42. endif
  43. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL),)
  44. CONFIGURE_ARGS+= --enable-small
  45. endif
  46. ifeq ($(ADK_DEBUG),y)
  47. CONFIGURE_ARGS+= --enable-debug
  48. else
  49. CONFIGURE_ARGS+= --disable-debug
  50. endif
  51. CONFIGURE_ARGS+= --disable-plugins \
  52. --with-crypto-library=openssl \
  53. --enable-iproute2
  54. openvpn-install:
  55. ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
  56. ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
  57. $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
  58. $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
  59. include ${ADK_TOPDIR}/mk/pkg-bottom.mk