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.

54 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ykpers
  3. PKG_VERSION:=1.19.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=ykpers-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://developers.yubico.com/yubikey-personalization/Releases
  7. PKG_HASH:=2bc8afa16d495a486582bad916d16de1f67c0cce9bb0a35c3123376c2d609480
  8. PKG_MAINTAINER:=Stuart B. Wilkins <stuwilkins@mac.com>
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/ykpers-$(PKG_VERSION)
  12. PKG_BUILD_DEPENDS:=libyubikey
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/ykpers
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=The Yuibco personalization package
  18. URL:=https://developers.yubico.com/yubikey-personalization/
  19. DEPENDS:=+curl +libyubikey +libjson-c +libusb-1.0
  20. endef
  21. define Package/ykpers/description
  22. The YubiKey Personalization package contains a library and command
  23. line tool used to personalize (i.e., set a AES key) YubiKeys.
  24. endef
  25. CONFIGURE_ARGS += \
  26. --enable-shared \
  27. --disable-static
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  30. $(CP) $(PKG_BUILD_DIR)/ykcore/*.h $(STAGING_DIR)/usr/include
  31. $(CP) $(PKG_BUILD_DIR)/*.h $(STAGING_DIR)/usr/include
  32. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  33. $(CP) $(PKG_BUILD_DIR)/.libs/libykpers-1.so* $(STAGING_DIR)/usr/lib
  34. endef
  35. define Package/ykpers/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykchalresp $(1)/usr/bin/
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykinfo $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykpersonalize $(1)/usr/bin/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_BUILD_DIR)/.libs/libykpers-1.so* $(1)/usr/lib
  42. endef
  43. $(eval $(call BuildPackage,ykpers))