mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
gost_engine: adapt to new openssl UCI config
OpenSSL now uses UCI to enable and disable engines, and engine packages need to adapt. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
committed by
Rosen Penev
parent
fb11f2fb0e
commit
f78548f7d7
@@ -13,29 +13,27 @@ PKG_LICENSE:=OpenSSL
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
include $(INCLUDE_DIR)/openssl-engine.mk
|
||||
|
||||
PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
|
||||
PKG_INSTALL:=
|
||||
|
||||
ENGINES_DIR:=engines-1.1
|
||||
|
||||
define Package/gost_engine/Default
|
||||
$(call Package/openssl/engine/Default)
|
||||
TITLE:=GOST engine for OpenSSL
|
||||
URL:=http://www.openssl.org/
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
endef
|
||||
|
||||
define Package/gost_engine/Default/description
|
||||
Russian GOST crypto algorithms for OpenSSL.
|
||||
endef
|
||||
|
||||
$(eval $(call Package/openssl/add-engine,gost,libopenssl-gost_engine))
|
||||
define Package/libopenssl-gost_engine
|
||||
$(call Package/gost_engine/Default)
|
||||
SUBMENU:=SSL
|
||||
$(call Package/openssl/engine/Default)
|
||||
TITLE+= (library)
|
||||
URL:=https://github.com/gost-engine/engine/
|
||||
DEPENDS:=libopenssl @OPENSSL_ENGINE +libopenssl-conf
|
||||
endef
|
||||
|
||||
define Package/libopenssl-gost_engine/description
|
||||
@@ -63,9 +61,10 @@ endef
|
||||
CMAKE_OPTIONS += -DOPENSSL_ENGINES_DIR=/usr/lib/$(ENGINES_DIR)
|
||||
|
||||
define Package/libopenssl-gost_engine/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/$(ENGINES_DIR)
|
||||
$(INSTALL_DIR) $(1)/usr/lib/$(ENGINES_DIR) $(1)/etc/ssl/engines.cnf.d
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/bin/gost.so \
|
||||
$(1)/usr/lib/$(ENGINES_DIR)/
|
||||
$(INSTALL_DATA) ./files/gost.cnf $(1)/etc/ssl/engines.cnf.d/
|
||||
endef
|
||||
|
||||
define Package/gost_engine-util/install
|
||||
|
||||
Reference in New Issue
Block a user