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.

51 lines
1.5 KiB

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