2014-06-20 17:46:29 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=p11-kit
|
2021-10-05 06:40:19 +02:00
|
|
|
PKG_VERSION:=0.24.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=2
|
2014-06-20 17:46:29 +02:00
|
|
|
|
2020-04-19 05:33:26 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2019-02-10 07:41:32 +01:00
|
|
|
PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
|
2021-10-05 06:40:19 +02:00
|
|
|
PKG_HASH:=d8be783efd5cd4ae534cee4132338e3f40f182c3205d23b200094ec85faaaef8
|
2019-02-10 07:41:32 +01:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
|
2019-07-01 20:13:31 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2019-02-10 07:41:32 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2024-02-02 18:37:33 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:p11-kit_project:p11-kit
|
2014-06-20 17:46:29 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-08 00:24:45 +02:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2014-06-20 17:46:29 +02:00
|
|
|
|
|
|
|
define Package/p11-kit
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
|
2018-03-26 03:05:08 +02:00
|
|
|
URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
|
2014-06-20 17:46:29 +02:00
|
|
|
DEPENDS:=+libtasn1 +libpthread
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/p11-kit/description
|
|
|
|
Provides a way to load and enumerate PKCS11 modules. Provides a
|
|
|
|
standard configuration setup for installing PKCS11 modules in such a
|
|
|
|
way that they are discoverable.
|
|
|
|
endef
|
|
|
|
|
2020-04-26 04:57:19 +02:00
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
2019-02-10 07:41:32 +01:00
|
|
|
|
2020-04-19 05:33:26 +02:00
|
|
|
MESON_ARGS += \
|
|
|
|
-Dhash_impl=internal \
|
|
|
|
-Dlibffi=disabled \
|
|
|
|
-Dtrust_module=disabled \
|
|
|
|
-Dstrict=false \
|
|
|
|
-Dsystemd=disabled \
|
|
|
|
-Dgtk_doc=false \
|
2021-10-05 06:40:19 +02:00
|
|
|
-Dman=false \
|
|
|
|
-Dnls=false
|
2019-12-02 01:42:04 +01:00
|
|
|
|
2014-06-20 17:46:29 +02:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/p11-kit/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
|
2020-05-22 10:43:50 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/pkcs11/modules/
|
2014-06-20 20:26:14 +02:00
|
|
|
ifneq ($(CONFIG_PACKAGE_libopensc),)
|
2020-05-22 10:43:50 +02:00
|
|
|
$(CP) ./files/opensc.module $(1)/etc/pkcs11/modules/
|
2014-06-20 20:26:14 +02:00
|
|
|
endif
|
2014-06-20 17:46:29 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,p11-kit))
|