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.

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