From: Hannu Nyman Date: Wed, 5 Apr 2023 17:41:25 +0000 (+0300) Subject: nano: make nanorc world readable X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=76d02f933f006fb854c03fa1738ed795acc32e50;p=feed%2Fpackages.git nano: make nanorc world readable 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 [switched approach to use INSTALL_DATA] Signed-off-by: Hannu Nyman --- diff --git a/utils/nano/Makefile b/utils/nano/Makefile index 2db13c5832..e68b289501 100644 --- a/utils/nano/Makefile +++ b/utils/nano/Makefile @@ -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