usign: update to the latest version, use libubox base64 code
[openwrt.git] / package / system / usign / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=usign
4 PKG_VERSION:=2015-05-08
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://git.openwrt.org/project/usign.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13 PKG_CHECK_FORMAT_SECURITY:=1
14 PKG_USE_MIPS16:=0
15
16 PKG_LICENSE:=ISC
17 PKG_LICENSE_FILES:=
18
19 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/host-build.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/usign
26   SECTION:=base
27   CATEGORY:=Base system
28   DEPENDS:=+libubox
29   TITLE:=OpenWrt signature verification utility
30 endef
31
32 CMAKE_OPTIONS += \
33         -DUSE_LIBUBOX=on
34
35 define Package/usign/install
36         $(INSTALL_DIR) $(1)/usr/bin
37
38         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usign $(1)/usr/bin
39         ln -s usign $(1)/usr/bin/signify
40 endef
41
42 $(eval $(call BuildPackage,usign))
43 $(eval $(call HostBuild))