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.

51 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=tac_plus
  3. PKG_VERSION:=4.0.4.28
  4. PKG_REV:=259251e6f1c2d5c98081a43c6f66d9eb2989cfd8
  5. PKG_RELEASE:=1
  6. PKG_SOURCE_VERSION:=$(PKG_REV)
  7. PKG_SOURCE_DATE:=2019.02.11
  8. PKG_SOURCE_URL:=https://codeload.github.com/facebook/tac_plus/tar.gz/$(PKG_SOURCE_VERSION)?
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_DATE)-$(PKG_SOURCE_VERSION).tar.gz
  10. PKG_HASH:=3c37d6a8acf66cac4a95558bf3e29686ef3be505a1638e2ef788a7ece41d1b01
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  12. PKG_BUILD_SUBDIR:=tacacs-F$(PKG_VERSION)
  13. include $(INCLUDE_DIR)/package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. MAKE_PATH:=$(PKG_BUILD_SUBDIR)
  16. CONFIGURE_PATH:=$(PKG_BUILD_SUBDIR)
  17. CONFIGURE_ARGS += \
  18. --disable-shared \
  19. --without-libwrap
  20. define Package/tac_plus
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=TACACS+ daemon
  24. URL:=https://github.com/facebook/tac_plus/
  25. endef
  26. define Package/tac_plus/description
  27. TACACS+ is a protocol (not TACACS or XTACACS) for authentication,
  28. authorization and accounting (AAA) services for routers and network devices.
  29. endef
  30. define Package/tac_plus/conffiles
  31. /etc/tac_plus.conf
  32. endef
  33. define Package/tac_plus/install
  34. $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/sbin
  35. $(INSTALL_CONF) ./files/tac_plus.conf $(1)/etc/tac_plus.conf
  36. $(INSTALL_BIN) ./files/tac_plus.init $(1)/etc/init.d/tac_plus
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_BUILD_SUBDIR)/tac_plus $(1)/usr/sbin/
  38. endef
  39. $(eval $(call BuildPackage,tac_plus))