nano: make nanorc world readable
authorHannu Nyman <[email protected]>
Wed, 5 Apr 2023 17:41:25 +0000 (20:41 +0300)
committerHannu Nyman <[email protected]>
Wed, 5 Apr 2023 17:48:26 +0000 (20:48 +0300)
If file /etc/nanorc is readable by everyone, "default" settings
are available for users as well without necessarily requiring
their own customized .nanorc in their home directory. Or if
they want one, but want it to be based on system's default
nanorc, they can copy it from /etc - without chmodding
file, it is in-accessible for users.

Suggested-by: Oskari Rauta <[email protected]>
[switched approach to use INSTALL_DATA]
Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit 76d02f933f006fb854c03fa1738ed795acc32e50)

utils/nano/Makefile

index 2db13c5832e4c71faaff666ea07da5b4a0c987a6..e68b289501af04534dfbc5e4d3fdb74d4df9c2b4 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nano
 PKG_VERSION:=7.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/nano
@@ -138,7 +138,7 @@ endef
 define Package/nano-full/install
        $(call Package/nano/install,$1)
        $(INSTALL_DIR) $(1)/etc $(1)/usr/share/nano
-       $(INSTALL_CONF) ./files/nanorc $(1)/etc/nanorc
+       $(INSTALL_DATA) ./files/nanorc $(1)/etc/nanorc
        $(INSTALL_DATA) ./files/uci.nanorc $(1)/usr/share/nano
        $(CP) $(PKG_INSTALL_DIR)/usr/share/nano/* $(1)/usr/share/nano
 endef