Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=procd
  3. PKG_VERSION:=2013-03-14
  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:=9fcc900e301e0c304488b6b83f10c8db5b8f4ce0
  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_CONFIG_DEPENDS:=CONFIG_PROCD_INIT
  14. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/procd
  18. SECTION:=base
  19. CATEGORY:=Base system
  20. DEPENDS:=+ubusd +ubus +libjson-script
  21. TITLE:=OpenWrt system process manager
  22. endef
  23. ifneq ($(CONFIG_PROCD_INIT),)
  24. define Package/procd/install
  25. $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc
  26. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{procd,askfirst,udevtrigger,logread} $(1)/sbin/
  27. $(INSTALL_DATA) ./files/hotplug*.json $(1)/etc/
  28. $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
  29. ln -s /sbin/procd $(1)/sbin/init
  30. endef
  31. else
  32. define Package/procd/install
  33. $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc/init.d
  34. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/procd $(1)/sbin/
  35. $(INSTALL_BIN) ./files/procd.init $(1)/etc/init.d/procd
  36. $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
  37. endef
  38. endif
  39. $(eval $(call BuildPackage,procd))