2015-04-06 19:38:07 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=usign
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-04-06 19:38:07 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-01-05 09:46:06 +00:00
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/usign.git
|
2020-05-23 11:38:12 +00:00
|
|
|
PKG_SOURCE_DATE:=2020-05-23
|
|
|
|
PKG_SOURCE_VERSION:=f1f65026a94137c91b5466b149ef3ea3f20091e9
|
|
|
|
PKG_MIRROR_HASH:=3f6569a5e63fdfd032976ac0f79d736d3935101ac1b97fb370514b013c5e6bb6
|
2015-04-06 19:38:07 +00:00
|
|
|
CMAKE_INSTALL:=1
|
2015-11-22 14:56:17 +00:00
|
|
|
PKG_CHECK_FORMAT_SECURITY:=1
|
2015-04-06 19:38:07 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
|
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
2016-06-07 06:58:31 +00:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2015-04-06 19:38:07 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
2016-01-25 23:05:49 +00:00
|
|
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
|
|
|
|
2015-04-06 19:38:07 +00:00
|
|
|
define Package/usign
|
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
2015-05-08 12:37:26 +00:00
|
|
|
DEPENDS:=+libubox
|
2015-04-06 19:38:07 +00:00
|
|
|
TITLE:=OpenWrt signature verification utility
|
|
|
|
endef
|
|
|
|
|
2019-10-27 21:38:53 +00:00
|
|
|
TARGET_CFLAGS += -flto
|
|
|
|
TARGET_LDFLAGS += -flto=jobserver
|
|
|
|
|
2015-05-08 12:37:26 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DUSE_LIBUBOX=on
|
|
|
|
|
2015-04-06 19:38:07 +00:00
|
|
|
define Package/usign/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usign $(1)/usr/bin
|
|
|
|
ln -s usign $(1)/usr/bin/signify
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,usign))
|
|
|
|
$(eval $(call HostBuild))
|