Makefile 1.9 KB

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