1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2013-11-13
6 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)-1
9 PKG_SOURCE_URL
:=git
://nbd.name
/luci2
/procd.git
10 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
11 PKG_SOURCE_VERSION
:=f9d31edb8938341b9217ee4c14eb58111414eb97
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
18 PKG_MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/cmake.mk
23 TARGET_LDFLAGS
+= $(if
$(CONFIG_USE_EGLIBC
),-lrt
)
28 DEPENDS
:=+ubusd
+ubus
+libjson-script
+ubox
+USE_EGLIBC
:librt
29 TITLE
:=OpenWrt system process manager
32 define Package
/procd
/install
33 $(INSTALL_DIR
) $(1)/sbin
$(1)/lib
/functions
$(1)/etc
/init.d
$(1)/lib
35 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{procd
,askfirst
,udevtrigger
,logread
,validate_data
} $(1)/sbin
/
36 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libvalidate.so
$(1)/lib
/
37 $(INSTALL_BIN
) .
/files
/reload_config
$(1)/sbin
/
38 $(INSTALL_BIN
) .
/files
/log.init
$(1)/etc
/init.d
/log
39 $(INSTALL_DATA
) .
/files
/hotplug
*.json
$(1)/etc
/
40 $(INSTALL_DATA
) .
/files
/procd.sh .
/files
/procd-validate.sh
$(1)/lib
/functions
/
41 ln
-s
/sbin
/procd
$(1)/sbin
/init
44 $(eval
$(call BuildPackage
,procd
))