2018-06-14 17:39:25 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ucert
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ucert.git
|
2020-05-24 15:01:36 +00:00
|
|
|
PKG_SOURCE_DATE:=2020-05-24
|
|
|
|
PKG_SOURCE_VERSION:=00b921d80ac0dc47339305d803f865ff43c56d63
|
2024-03-17 17:43:10 +00:00
|
|
|
PKG_MIRROR_HASH:=e6e9024777c36c43a8aa5f0f91927d822d1e08943adfee9bc0a34d86a00dde4c
|
2018-06-14 17:39:25 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-08-06 16:00:45 +00:00
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
|
|
-DUCERT_FULL=1 \
|
|
|
|
-DUCERT_HOST_BUILD=1 \
|
|
|
|
-DCMAKE_SKIP_RPATH=FALSE \
|
|
|
|
-DUSE_RPATH="${STAGING_DIR_HOST}/lib"
|
|
|
|
|
2018-06-14 17:39:25 +00:00
|
|
|
HOST_BUILD_DEPENDS:=libubox/host libjson-c/host usign/host
|
2018-08-06 16:00:45 +00:00
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
2018-06-14 17:39:25 +00:00
|
|
|
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
|
2019-03-07 10:46:51 +00:00
|
|
|
PROVIDES:=ucert
|
2018-06-14 17:39:25 +00:00
|
|
|
CONFLICTS:=ucert-full
|
|
|
|
VARIANT:=tiny
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),full)
|
|
|
|
CMAKE_OPTIONS += -DUCERT_FULL=1
|
|
|
|
endif
|
|
|
|
|
2018-06-15 06:57:44 +00:00
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(call Build/Prepare/Default)
|
|
|
|
endef
|
|
|
|
|
2018-06-14 17:39:25 +00:00
|
|
|
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))
|