procd: add initial implementation
[openwrt/svn-archive/archive.git] / package / procd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=procd
4 PKG_VERSION:=2012-12-20
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/luci2/procd.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=d343dd9e9a64d4ae7d225ea29169e97fa8d116a1
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13
14 PKG_LICENSE:=GPLv2
15 PKG_LICENSE_FILES:=
16
17 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
18
19 include $(INCLUDE_DIR)/package.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 define Package/procd
23 SECTION:=base
24 CATEGORY:=Base system
25 DEPENDS:=+ubusd +ubus
26 TITLE:=OpenWrt system process manager
27 endef
28
29 define Package/procd/install
30 $(INSTALL_DIR) $(1)/sbin $(1)/lib/functions $(1)/etc/init.d
31
32 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/procd $(1)/sbin/
33 $(INSTALL_BIN) ./files/procd.init $(1)/etc/init.d/procd
34 $(INSTALL_DATA) ./files/procd.sh $(1)/lib/functions/
35 endef
36
37 $(eval $(call BuildPackage,procd))