1
0

Makefile 1.4 KB

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