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 <oskari.rauta@gmail.com>
[switched approach to use INSTALL_DATA]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 76d02f933f
)
This commit is contained in:
parent
5a6a8c3d6f
commit
d726a7b007
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue