net/rtpproxy: improvide configuration file treatment 274/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 17 Feb 2018 09:44:23 +0000 (10:44 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 17 Feb 2018 09:44:24 +0000 (10:44 +0100)
Protect configuration files.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/rtpproxy/Makefile

index 31da89cd3fb663b2bb43d2cee2d2cc734c6b5732..7e396951fbabd093d890aefc201c63c007b67129 100644 (file)
@@ -45,6 +45,11 @@ $(call Package/rtpproxy/Default)
   MENU:=1
 endef
 
+define Package/rtpproxy/conffiles
+/etc/init.d/rtpproxy
+/etc/config/rtpproxy
+endef
+
 define Package/rtpproxy-mod-acct_csv
 $(call Package/rtpproxy/Default)
   DEPENDS:=rtpproxy
@@ -65,7 +70,7 @@ define Package/rtpproxy/install
        $(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy
 
        $(INSTALL_DIR) $(1)/etc/config
-       $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
+       $(INSTALL_CONF) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
 endef
 
 define Package/rtpproxy-mod-acct_csv/install