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.

62 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2008-2016 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:=radsecproxy
  9. PKG_VERSION:=1.7.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/
  13. PKG_HASH:=2cf23e618ab9275221350acf5a97bce4ff18aee472045f8a3b4c7673491079d2
  14. PKG_LICENSE:=BSD-3-CLAUSE
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:uninett:radsecproxy
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/radsecproxy
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libopenssl +libpthread +libnettle
  24. TITLE:=radsecproxy
  25. URL:=https://radsecproxy.github.io/
  26. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  27. endef
  28. define Package/radsecproxy/description
  29. A generic radius proxy for UDP/TLS (RadSec)
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --with-ssl="$(STAGING_DIR)/usr"
  33. #TARGET_CFLAGS += -ansi
  34. #TARGET_CFLAGS += -std=c99
  35. TARGET_CFLAGS += -Wno-long-long
  36. define Package/radsecproxy/install
  37. $(INSTALL_DIR) $(1)/usr/sbin/
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
  39. $(INSTALL_DIR) $(1)/etc/config/
  40. $(INSTALL_DATA) ./files/radsecproxy.conf $(1)/etc/config/radsecproxy
  41. $(INSTALL_DIR) $(1)/etc/init.d/
  42. $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
  43. endef
  44. define Package/radsecproxy/conffiles
  45. /etc/config/radsecproxy
  46. endef
  47. $(eval $(call BuildPackage,radsecproxy))