mac-telnet: install uci as config file
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 07:32:51 +0000 (09:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 07:35:03 +0000 (09:35 +0200)
Also mark it as configuration file while being at it.

Fixes: #11846
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
net/mac-telnet/Makefile

index f21cfc7b194fefb8db5eeaca436130dfdd63b181..cb0bfecb16f209584341ecac18d6fe962f8656c9 100644 (file)
@@ -5,14 +5,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mac-telnet
-PKG_VERSION:=2015-09-02
-PKG_RELEASE=$(PKG_SOURCE_VERSION)+1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/jow-/MAC-Telnet.git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_URL=https://github.com/jow-/MAC-Telnet.git
+PKG_SOURCE_DATE:=2015-09-02
 PKG_SOURCE_VERSION:=37d83cbc9c07266d6c957d27bf75285b305eceab
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 PKG_MIRROR_HASH:=13429f1a870121cdbbfb687e0581967904798000eca1f8f9c1e9dc87dee5669b
 
 PKG_LICENSE:=GPL-2.0-or-later
@@ -62,7 +60,7 @@ define Package/mac-telnet-server/install-extra
        $(INSTALL_DIR) $$(1)/etc/init.d
        $(INSTALL_BIN) ./files/mactelnet.init $$(1)/etc/init.d/mactelnet
        $(INSTALL_DIR) $$(1)/etc/config
-       $(INSTALL_DATA) ./files/mactelnet.config $$(1)/etc/config/mactelnet
+       $(INSTALL_CONF) ./files/mactelnet.config $$(1)/etc/config/mactelnet
 endef