Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=procd
  3. PKG_VERSION:=2014-06-19
  4. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=git://nbd.name/luci2/procd.git
  7. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  8. PKG_SOURCE_VERSION:=8e12022c3d00f8acca4471016d71794988113c34
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  10. CMAKE_INSTALL:=1
  11. PKG_LICENSE:=GPLv2
  12. PKG_LICENSE_FILES:=
  13. PKG_MAINTAINER:=John Crispin <[email protected]>
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
  17. define Package/procd
  18. SECTION:=base
  19. CATEGORY:=Base system
  20. DEPENDS:=+ubusd +ubus +libjson-script +ubox +USE_EGLIBC:librt +libubox +libubus +NAND_SUPPORT:procd-nand
  21. TITLE:=OpenWrt system process manager
  22. endef
  23. define Package/procd-nand
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. DEPENDS:=@NAND_SUPPORT +ubi-utils
  27. TITLE:=OpenWrt sysupgrade nand helper
  28. endef
  29. define Package/procd/install
  30. $(INSTALL_DIR) $(1)/sbin $(1)/etc $(1)/lib/functions
  31. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{init,procd,askfirst,udevtrigger} $(1)/sbin/
  32. $(INSTALL_BIN) ./files/reload_config $(1)/sbin/
  33. $(INSTALL_DATA) ./files/hotplug*.json $(1)/etc/
  34. $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
  35. endef
  36. define Package/procd-nand/install
  37. $(INSTALL_DIR) $(1)/sbin $(1)/lib/upgrade
  38. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/upgraded $(1)/sbin/
  39. $(INSTALL_DATA) ./files/nand.sh $(1)/lib/upgrade/
  40. endef
  41. $(eval $(call BuildPackage,procd))
  42. $(eval $(call BuildPackage,procd-nand))