1
0

Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.5
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 7ac286f09ed4981358ce01907993dc29f69b34d3652de2b70ca9b8b2a056b684
  8. PKG_DESCR:= vpn solution using ssl/tls
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip
  11. PKG_BUILDDEP:= openssl
  12. PKG_URL:= http://openvpn.net/
  13. PKG_SITES:= http://swupdate.openvpn.org/community/releases/
  14. PKG_CFLINE_OPENVPN:= select ADK_KERNEL_TUN m
  15. PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS
  16. PKGFD_WITH_LZO:= enable lzo compression support
  17. PKGFS_WITH_LZO:= liblzo
  18. PKGFB_WITH_LZO:= liblzo
  19. PKGFD_WITH_MANAGEMENT:= enable management server support
  20. PKGFD_WITH_HTTPPROXY:= enable http proxy support
  21. PKGFD_WITH_SOCKS:= enable socks proxy support
  22. include $(ADK_TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_LZO),)
  25. CONFIGURE_ARGS+= --enable-lzo
  26. else
  27. CONFIGURE_ARGS+= --disable-lzo
  28. endif
  29. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_MANAGEMENT),)
  30. CONFIGURE_ARGS+= --enable-management
  31. else
  32. CONFIGURE_ARGS+= --disable-management
  33. endif
  34. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_HTTPPROXY),)
  35. CONFIGURE_ARGS+= --enable-http-proxy
  36. else
  37. CONFIGURE_ARGS+= --disable-http-proxy
  38. endif
  39. ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SOCKS),)
  40. CONFIGURE_ARGS+= --enable-socks
  41. else
  42. CONFIGURE_ARGS+= --disable-socks
  43. endif
  44. CONFIGURE_ARGS+= --disable-plugins \
  45. --enable-small \
  46. --disable-debug \
  47. --with-crypto-library=openssl \
  48. --enable-iproute2
  49. openvpn-install:
  50. ${INSTALL_DIR} $(IDIR_OPENVPN)/usr/sbin $(IDIR_OPENVPN)/etc/openvpn
  51. ${INSTALL_BIN} $(WRKINST)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/
  52. $(CP) ./files/server.conf $(IDIR_OPENVPN)/etc/openvpn/server.conf.example
  53. $(CP) ./files/client.conf $(IDIR_OPENVPN)/etc/openvpn/client.conf.example
  54. include ${ADK_TOPDIR}/mk/pkg-bottom.mk