Revert mirror hash fixes
[openwrt/openwrt.git] / package / system / ubox / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ubox
4 PKG_VERSION:=2016-09-26
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL=$(LEDE_GIT)/project/ubox.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=5649c028c426060616e2bd4e7ea83271cd333d21
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
12 PKG_MIRROR_HASH:=44d45a90b55146479b8a949e5498de675054200e1f6c48459d73b0ea70fcdcff
13 CMAKE_INSTALL:=1
14
15 PKG_LICENSE:=GPL-2.0
16 PKG_LICENSE_FILES:=
17
18 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
24
25 define Package/ubox
26 SECTION:=base
27 CATEGORY:=Base system
28 DEPENDS:=+libubox +ubusd +ubus +libubus +libuci +USE_GLIBC:librt
29 TITLE:=OpenWrt system helper toolbox
30 endef
31
32 define Package/ubox/install
33 $(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin $(1)/etc/init.d
34
35 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
36 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getrandom $(1)/usr/bin/
37 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
38
39 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/rmmod
40 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/insmod
41 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/lsmod
42 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/modinfo
43 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/modprobe
44
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{logd,logread} $(1)/sbin/
46 $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
47 endef
48
49 $(eval $(call BuildPackage,ubox))