No Description

Makefile 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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:=1
  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. DEPENDS:=+libstoken
  33. MENU:=1
  34. endef
  35. define Package/stoken/description
  36. stoken is a tokencode generator compatible with RSA SecurID 128-bit (AES). This package contains the cli
  37. endef
  38. define Package/libstoken
  39. $(call Package/stoken/Default)
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. endef
  43. CONFIGURE_ARGS += \
  44. --with-nettle
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.{la,a,so*} $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/stoken.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/stoken/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_BUILD_DIR)/stoken $(1)/usr/bin/
  55. endef
  56. define Package/libstoken/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.so* $(1)/usr/lib
  59. endef
  60. $(eval $(call BuildPackage,stoken))
  61. $(eval $(call BuildPackage,libstoken))