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.

54 lines
1.4 KiB

  1. #
  2. # Copyright (C) 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:=oath-toolkit
  9. PKG_VERSION:=2.6.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=oath-toolkit-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
  13. PKG_HASH:=b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0
  14. PKG_MAINTAINER:=Fam Zheng <fam@euphon.net>
  15. PKG_LICENSE:=LGPL-2.0+ GPL-3.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:nongnu:oath_toolkit
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. CONFIGURE_ARGS += \
  22. --disable-xmltest \
  23. --disable-pskc
  24. define Package/oath-toolkit
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. TITLE:=Toolkit for building one-time password authentication
  28. URL:=http://www.nongnu.org/oath-toolkit/index.html
  29. DEPENDS:=
  30. endef
  31. define Package/oath-toolkit/description
  32. The OATH Toolkit provide components for building one-time password
  33. authentication systems. It contains shared libraries, command line
  34. tools and a PAM module. Supported technologies include the event-based
  35. HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
  36. endef
  37. define Package/oath-toolkit/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,oath-toolkit))