xinetd: add support for UCI configuration

Signed-off-by: Helge Mader <ma@dev.tdt.de>
This commit is contained in:
Helge Mader
2020-06-02 14:57:45 +02:00
committed by Florian Eckert
parent 4a1618f91f
commit be55bce946
4 changed files with 125 additions and 16 deletions
+5 -5
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xinetd
PKG_VERSION:=2.3.15
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive
@@ -39,7 +39,7 @@ define Package/xinetd/description
endef
define Package/xinetd/conffiles
/etc/xinetd.conf
/etc/config/xinetd
/etc/xinetd.d/
endef
@@ -58,11 +58,11 @@ CONFIGURE_VARS += \
define Package/xinetd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/xinetd.conf $(1)/etc/xinetd.conf
$(INSTALL_DIR) $(1)/etc/xinetd.d
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_DATA) ./files/xinetd.uci.conf.sample $(1)/etc/config/xinetd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
$(INSTALL_DIR) $(1)/etc/xinetd.d
endef
$(eval $(call BuildPackage,xinetd))