You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ubox
  3. PKG_VERSION:=2015-02-25.1
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=git://nbd.name/luci2/ubox.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=31f0ff358b360ee461d845c1b3b5e5d38fa27925
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. CMAKE_INSTALL:=1
  11. PKG_CHECK_FORMAT_SECURITY:=0
  12. PKG_LICENSE:=GPLv2
  13. PKG_LICENSE_FILES:=
  14. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
  18. define Package/ubox
  19. SECTION:=base
  20. CATEGORY:=Base system
  21. DEPENDS:=+libubox +ubusd +ubus +libubus +libuci +USE_EGLIBC:librt
  22. TITLE:=OpenWrt system helper toolbox
  23. endef
  24. define Package/ubox/install
  25. $(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib/ $(1)/etc/init.d/
  26. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,logd,logread,validate_data} $(1)/sbin/
  27. $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
  28. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
  29. ln -s /sbin/kmodloader $(1)/usr/sbin/rmmod
  30. ln -s /sbin/kmodloader $(1)/usr/sbin/insmod
  31. ln -s /sbin/kmodloader $(1)/usr/sbin/lsmod
  32. ln -s /sbin/kmodloader $(1)/usr/sbin/modinfo
  33. ln -s /sbin/kmodloader $(1)/usr/sbin/modprobe
  34. endef
  35. $(eval $(call BuildPackage,ubox))