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.

61 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:=1
  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_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/radsecproxy
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:=+libopenssl +libpthread +libnettle
  23. TITLE:=radsecproxy
  24. URL:=https://radsecproxy.github.io/
  25. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  26. endef
  27. define Package/radsecproxy/description
  28. A generic radius proxy for UDP/TLS (RadSec)
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --with-ssl="$(STAGING_DIR)/usr"
  32. #TARGET_CFLAGS += -ansi
  33. #TARGET_CFLAGS += -std=c99
  34. TARGET_CFLAGS += -Wno-long-long
  35. define Package/radsecproxy/install
  36. $(INSTALL_DIR) $(1)/usr/sbin/
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radsecproxy $(1)/usr/sbin/
  38. $(INSTALL_DIR) $(1)/etc/config/
  39. $(INSTALL_DATA) ./files/radsecproxy.conf $(1)/etc/config/radsecproxy
  40. $(INSTALL_DIR) $(1)/etc/init.d/
  41. $(INSTALL_BIN) ./files/radsecproxy.init $(1)/etc/init.d/radsecproxy
  42. endef
  43. define Package/radsecproxy/conffiles
  44. /etc/config/radsecproxy
  45. endef
  46. $(eval $(call BuildPackage,radsecproxy))