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.

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