2017-05-07 02:12:06 +02:00
|
|
|
#
|
|
|
|
# Author: Tibor Dudlák
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jose
|
2021-06-01 18:42:23 -07:00
|
|
|
PKG_VERSION:=11
|
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 16:32:27 +00:00
|
|
|
PKG_RELEASE:=6
|
2017-05-07 02:12:06 +02:00
|
|
|
|
2021-06-01 18:42:23 -07:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2017-05-07 02:12:06 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
|
2021-06-01 18:42:23 -07:00
|
|
|
PKG_HASH:=e272afe7717e22790c383f3164480627a567c714ccb80c1ee96f62c9929d8225
|
2017-05-07 02:12:06 +02:00
|
|
|
|
2021-06-01 18:42:23 -07:00
|
|
|
PKG_MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2017-05-07 02:12:06 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-07 15:24:45 -07:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2017-05-07 02:12:06 +02:00
|
|
|
|
2022-09-22 16:02:24 -07:00
|
|
|
define Package/libjose
|
|
|
|
SECTION:=libs
|
|
|
|
TITLE:=Provides a full crypto stack including key generation, signing and encryption.
|
|
|
|
DEPENDS:=+zlib +jansson +libopenssl +libpthread
|
|
|
|
URL:=https://github.com/latchset/jose
|
|
|
|
endef
|
|
|
|
|
2017-05-07 02:12:06 +02:00
|
|
|
define Package/jose
|
|
|
|
SECTION:=utils
|
|
|
|
TITLE:=Provides a full crypto stack including key generation, signing and encryption.
|
2022-09-22 16:02:24 -07:00
|
|
|
DEPENDS:=+libjose
|
2017-05-07 02:12:06 +02:00
|
|
|
URL:=https://github.com/latchset/jose
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/jose/description
|
|
|
|
jose is a command line utility for performing various tasks on JSON
|
|
|
|
Object Signing and Encryption (JOSE) objects. José provides a full
|
|
|
|
crypto stack including key generation, signing and encryption.
|
|
|
|
endef
|
|
|
|
|
2022-09-22 16:02:24 -07:00
|
|
|
define Package/libjose/description
|
|
|
|
libjose is a library for performing various tasks on JSON
|
|
|
|
Object Signing and Encryption (JOSE) objects. José provides a full
|
|
|
|
crypto stack including key generation, signing and encryption.
|
|
|
|
endef
|
2017-05-07 02:12:06 +02:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2022-09-22 16:02:24 -07:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
|
2017-05-07 02:12:06 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
|
2021-06-01 18:42:23 -07:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
|
2017-05-07 02:12:06 +02:00
|
|
|
endef
|
|
|
|
|
2022-09-22 16:02:24 -07:00
|
|
|
define Package/libjose/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2017-05-07 02:12:06 +02:00
|
|
|
define Package/jose/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2022-09-22 16:02:24 -07:00
|
|
|
$(eval $(call BuildPackage,libjose))
|
2017-05-07 02:12:06 +02:00
|
|
|
$(eval $(call BuildPackage,jose))
|