1 include $(TOPDIR)/rules.mk
4 PKG_VERSION:=2013-04-25
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
8 PKG_SOURCE_URL:=git://nbd.name/luci2/procd.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=c28ba8c1947e1b31874bf5888742d1607ed7ae61
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
17 PKG_CONFIG_DEPENDS:=CONFIG_PROCD_INIT
19 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
24 TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
29 DEPENDS:=+ubusd +ubus +libjson-script +USE_EGLIBC:librt +PROCD_INIT:ubox
30 TITLE:=OpenWrt system process manager
33 ifneq ($(CONFIG_PROCD_INIT),)
34 define Package/procd/install
35 $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc
37 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{procd,askfirst,udevtrigger,logread} $(1)/sbin/
38 $(INSTALL_DATA) ./files/hotplug*.json $(1)/etc/
39 $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
40 ln -s /sbin/procd $(1)/sbin/init
43 define Package/procd/install
44 $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc/init.d
46 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/procd $(1)/sbin/
47 $(INSTALL_BIN) ./files/procd.init $(1)/etc/init.d/procd
48 $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
52 $(eval $(call BuildPackage,procd))