aboutsummaryrefslogtreecommitdiff
path: root/utils/pservice/Makefile
blob: 01d0399d34333c752b48bfbab4b24d75d1e47eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (C) 2017 Yousong Zhou

include $(TOPDIR)/rules.mk

PKG_NAME:=pservice
PKG_VERSION:=2017-08-29
PKG_RELEASE=3

PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>

include $(INCLUDE_DIR)/package.mk

define Package/pservice
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Wrap commands as procd services
endef

define Build/Compile
endef

define Package/pservice/conffiles
/etc/config/pservice
endef

define Package/pservice/install
	$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config
	$(INSTALL_BIN) ./files/pservice.init $(1)/etc/init.d/pservice
	$(INSTALL_DATA) ./files/pservice.config $(1)/etc/config/pservice
endef

$(eval $(call BuildPackage,pservice))