1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00
openwrt-packages/utils/pservice/Makefile
Yousong Zhou 2b469232e6 pservice: shorten code
- use uci_load_validate()
 - remove stop_service()
 - fix validation of "args" option

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-08-12 08:23:03 +00:00

29 lines
616 B
Makefile

# Copyright (C) 2017 Yousong Zhou
include $(TOPDIR)/rules.mk
PKG_NAME:=pservice
PKG_VERSION:=2017-08-29
PKG_RELEASE=2
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/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))