You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libradcli
  9. PKG_VERSION:=1.2.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=radcli-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/radcli/radcli/releases/download/radcli_1_2_3/
  13. PKG_MD5SUM:=e283db7db2248cd6499aff69813cb1ed
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/radcli-$(PKG_VERSION)
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libradcli
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=A library for radius clients
  21. URL:=http://radcli.github.io/radcli/
  22. MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
  23. DEPENDS:= +RADCLI_TLS:libgnutls +libnettle
  24. endef
  25. define Package/libradcli/decription
  26. The radcli library is a library for writing RADIUS Clients. The library's
  27. approach is to allow writing RADIUS-aware application in less than 50 lines
  28. of C code. It was based originally on freeradius-client and is source
  29. compatible with it.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --enable-legacy-compat
  33. ifneq ($(CONFIG_RADCLI_TLS),y)
  34. CONFIGURE_ARGS += --without-tls
  35. endif
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/radcli
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/radcli/radcli.h \
  40. $(PKG_INSTALL_DIR)/usr/include/radcli/version.h \
  41. $(1)/usr/include/radcli
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/freeradius-client.h \
  44. $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libradcli.so* \
  48. $(PKG_INSTALL_DIR)/usr/lib/libfreeradius-client.so \
  49. $(1)/usr/lib/
  50. endef
  51. define Package/libradcli/conffiles
  52. /etc/radcli/radiusclient.conf
  53. endef
  54. define Package/libradcli/install
  55. $(INSTALL_DIR) $(1)/etc/radcli
  56. $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/radiusclient.conf $(1)/etc/radcli/
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libradcli.so.* \
  60. $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,libradcli))