ubox: update to latest git HEAD
[openwrt/svn-archive/archive.git] / package / system / ubox / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ubox
4 PKG_VERSION:=2015-03-29
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/luci2/ubox.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=dd338ce30b6158f3f6feda9f01a2f409a8a5832c
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13 PKG_CHECK_FORMAT_SECURITY:=0
14
15 PKG_LICENSE:=GPL-2.0
16 PKG_LICENSE_FILES:=
17
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.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)/etc/init.d/
34
35 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,logd,logread,validate_data} $(1)/sbin/
36 $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
37 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
38
39 ln -s /sbin/kmodloader $(1)/usr/sbin/rmmod
40 ln -s /sbin/kmodloader $(1)/usr/sbin/insmod
41 ln -s /sbin/kmodloader $(1)/usr/sbin/lsmod
42 ln -s /sbin/kmodloader $(1)/usr/sbin/modinfo
43 ln -s /sbin/kmodloader $(1)/usr/sbin/modprobe
44 endef
45
46 $(eval $(call BuildPackage,ubox))