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.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2011-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:=engine_pkcs11
  9. PKG_VERSION:=0.2.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_SOURCE_URL:=https://github.com/OpenSC/engine_pkcs11/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_CONFIG_DEPENDS:=CONFIG_OPENSSL_ENGINE
  16. include $(INCLUDE_DIR)/package.mk
  17. PKG_FIXUP:=libtool
  18. PKG_INSTALL:=1
  19. CONFIGURE_ARGS += --with-enginesdir=/usr/lib/engines
  20. define Package/engine_pkcs11
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=PKCS#11 OpenSSL engine
  24. URL:=https://www.opensc-project.org/opensc/wiki/
  25. DEPENDS:=+libopenssl +libp11
  26. endef
  27. define Package/engine_pkcs11/description
  28. engine_pkcs11 is an implementation of OpenSSL engine interface.
  29. endef
  30. define Package/engine_pkcs11/install
  31. $(INSTALL_DIR) $(1)/usr/lib/engines
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/engines/libpkcs11.so $(1)/usr/lib/engines/
  33. endef
  34. $(eval $(call BuildPackage,engine_pkcs11))