procd: update to latest git head
[openwrt/svn-archive/archive.git] / package / system / procd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=procd
4 PKG_VERSION:=2013-09-17
5
6 PKG_RELEASE=$(PKG_SOURCE_VERSION)-1
7
8 PKG_SOURCE_PROTO:=git
9 PKG_SOURCE_URL:=git://nbd.name/luci2/procd.git
10 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
11 PKG_SOURCE_VERSION:=f51f9cc5738d340423e44e678829402b367cf866
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
13 CMAKE_INSTALL:=1
14
15 PKG_LICENSE:=GPLv2
16 PKG_LICENSE_FILES:=
17
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 TARGET_LDFLAGS += $(if $(CONFIG_USE_EGLIBC),-lrt)
24
25 define Package/procd
26 SECTION:=base
27 CATEGORY:=Base system
28 DEPENDS:=+ubusd +ubus +libjson-script +ubox +USE_EGLIBC:librt
29 TITLE:=OpenWrt system process manager
30 endef
31
32 define Package/procd/install
33 $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc/init.d
34
35 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{procd,askfirst,udevtrigger,logread} $(1)/sbin/
36 $(INSTALL_BIN) ./files/reload_config $(1)/sbin/
37 $(INSTALL_BIN) ./files/log.init $(1)/etc/init.d/log
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
41 endef
42
43 $(eval $(call BuildPackage,procd))