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.

55 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ykpers
  3. PKG_VERSION:=1.20.0
  4. PKG_RELEASE:=3
  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. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  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/ykpers-1
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/ykpers-1/*.h $(STAGING_DIR)/usr/include/ykpers-1
  31. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libykpers-1.so* $(STAGING_DIR)/usr/lib
  33. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/pkgconfig
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ykpers-1.pc $(STAGING_DIR)/usr/lib/pkgconfig
  35. endef
  36. define Package/ykpers/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ykchalresp $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ykinfo $(1)/usr/bin/
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ykpersonalize $(1)/usr/bin/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libykpers-1.so* $(1)/usr/lib
  43. endef
  44. $(eval $(call BuildPackage,ykpers))