rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / package / system / ubox / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ubox
4 PKG_VERSION:=2016-03-07
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL=$(OPENWRT_GIT)/project/ubox.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=fd4bb41ee7ab136d25609c2a917beea5d52b723b
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13
14 PKG_LICENSE:=GPL-2.0
15 PKG_LICENSE_FILES:=
16
17 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
23
24 define Package/ubox
25 SECTION:=base
26 CATEGORY:=Base system
27 DEPENDS:=+libubox +ubusd +ubus +libubus +libuci +USE_GLIBC:librt
28 TITLE:=OpenWrt system helper toolbox
29 endef
30
31 define Package/logd
32 SECTION:=base
33 CATEGORY:=Base system
34 DEPENDS:=+libubox +libubus +libblobmsg-json +USE_GLIBC:librt
35 TITLE:=OpenWrt system log implementation
36 endef
37
38 define Package/ubox/install
39 $(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib/
40
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
42 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
43
44 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/rmmod
45 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/insmod
46 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/lsmod
47 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/modinfo
48 $(LN) ../../sbin/kmodloader $(1)/usr/sbin/modprobe
49 endef
50
51 define Package/logd/install
52 $(INSTALL_DIR) $(1)/sbin $(1)/etc/init.d/
53
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{logd,logread} $(1)/sbin/
55 $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
56 endef
57
58 $(eval $(call BuildPackage,ubox))
59 $(eval $(call BuildPackage,logd))