mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
2544cb1ba3
14a279411cff fix certificate blob parsing vulnerability by using blob_parse_untrusted 19a7225ac018 fix leaking memory in cert_dump_blob 9dba44ddd4f5 fix possibly garbage value returned in cert_process_revoker 4462ff9dedfa add cram based unit tests 5fe64b5606aa cmake: split usign bits into static library 5d7626a2b6d8 cmake: reindent the file e284ed941972 cmake: enable hardening compiler flags and fix the reported issues 7e5390666347 add initial GitLab CI support fa0bf4ef45b1 cmake: add proper include and library dependencies Signed-off-by: Petr Štetiar <ynezz@true.cz>
72 lines
1.6 KiB
Makefile
72 lines
1.6 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ucert
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ucert.git
|
|
PKG_SOURCE_DATE:=2019-12-19
|
|
PKG_SOURCE_VERSION:=14a279411cff06f9b1363711df4ec3b5db73f042
|
|
PKG_MIRROR_HASH:=797f35138c6e1099a839e768d9e01db022223884d9e0a6d09965e625caf0ae79
|
|
|
|
CMAKE_INSTALL:=1
|
|
PKG_CHECK_FORMAT_SECURITY:=1
|
|
|
|
PKG_LICENSE:=GPL-3.0+
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
-DUCERT_FULL=1 \
|
|
-DUCERT_HOST_BUILD=1 \
|
|
-DCMAKE_SKIP_RPATH=FALSE \
|
|
-DUSE_RPATH="${STAGING_DIR_HOST}/lib"
|
|
|
|
HOST_BUILD_DEPENDS:=libubox/host libjson-c/host usign/host
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
PKG_BUILD_DEPENDS:=ucert/host
|
|
|
|
define Package/ucert-full
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+usign +libubox +libjson-c +libblobmsg-json
|
|
TITLE:=OpenWrt certificate generation and verification utility
|
|
PROVIDES:=ucert
|
|
VARIANT:=full
|
|
endef
|
|
|
|
define Package/ucert
|
|
SECTION:=base
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+usign +libubox
|
|
TITLE:=OpenWrt certificate verification utility
|
|
PROVIDES:=ucert
|
|
CONFLICTS:=ucert-full
|
|
VARIANT:=tiny
|
|
endef
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
CMAKE_OPTIONS += -DUCERT_FULL=1
|
|
endif
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(call Build/Prepare/Default)
|
|
endef
|
|
|
|
define Package/ucert/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ucert $(1)/usr/bin
|
|
endef
|
|
|
|
Package/ucert-full/install = $(Package/ucert/install)
|
|
|
|
$(eval $(call BuildPackage,ucert))
|
|
$(eval $(call BuildPackage,ucert-full))
|
|
$(eval $(call HostBuild))
|