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.

75 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2014 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:=stoken
  9. PKG_VERSION:=0.92
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/stoken
  13. PKG_HASH:=aa2b481b058e4caf068f7e747a2dcf5772bcbf278a4f89bc9efcbf82bcc9ef5a
  14. PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/stoken/Default
  20. TITLE:=tokencode generator compatible with RSA SecurID 128-bit (AES)
  21. URL:=https://sourceforge.net/p/stoken/wiki/Home/
  22. DEPENDS:= +libxml2 +libnettle
  23. endef
  24. define Package/stoken
  25. $(call Package/stoken/Default)
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. SUBMENU:=Encryption
  29. DEPENDS:=+libstoken
  30. MENU:=1
  31. endef
  32. define Package/stoken/description
  33. stoken is a tokencode generator compatible with RSA SecurID 128-bit (AES). This package contains the cli
  34. endef
  35. define Package/libstoken
  36. $(call Package/stoken/Default)
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. endef
  40. TARGET_LDFLAGS += -lz
  41. CONFIGURE_ARGS += \
  42. --with-nettle
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.{la,a,so*} $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/stoken.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/stoken/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stoken $(1)/usr/bin/
  53. endef
  54. define Package/libstoken/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.so* $(1)/usr/lib
  57. endef
  58. $(eval $(call BuildPackage,stoken))
  59. $(eval $(call BuildPackage,libstoken))