From fe02395e669838338641e28750c408c437f6223197c28124a615af378f45ca1e Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Mon, 20 Nov 2023 15:00:20 +0000 Subject: [PATCH 1/2] Accepting request 1127713 from home:kukuk:branches:Base:System - Remove empty netgroup example file from /etc [jsc#PED-240]. NIS, the main consumer, got already dropped. - Remove empty ethers example file, /usr/etc should not contain examples, for the format there is the manual page, does not support IPv6. OBS-URL: https://build.opensuse.org/request/show/1127713 OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=77 --- netcfg.changes | 9 +++++++++ netcfg.spec | 8 ++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/netcfg.changes b/netcfg.changes index 6fdc0f9..7ff5940 100644 --- a/netcfg.changes +++ b/netcfg.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Nov 20 14:00:02 UTC 2023 - Thorsten Kukuk + +- Remove empty netgroup example file from /etc [jsc#PED-240]. + NIS, the main consumer, got already dropped. +- Remove empty ethers example file, /usr/etc should not contain + examples, for the format there is the manual page, does not + support IPv6. + ------------------------------------------------------------------- Wed Oct 4 09:45:23 UTC 2023 - Thorsten Kukuk diff --git a/netcfg.spec b/netcfg.spec index a0a5e93..fa38f72 100644 --- a/netcfg.spec +++ b/netcfg.spec @@ -30,8 +30,6 @@ Source10: protocols Source11: services.bz2 Source12: hostname Source13: aliases -Source14: ethers -Source15: netgroup Source16: COPYING Source17: ethertypes Source100: services-compare.pl @@ -58,11 +56,11 @@ cp %{SOURCE16} . %install mkdir -p %{buildroot}%{_sysconfdir} -for i in hostname aliases exports host.conf hosts netgroup ethertypes; do +for i in hostname aliases exports host.conf hosts ethertypes; do install $RPM_SOURCE_DIR/$i %{buildroot}/%{_sysconfdir} done mkdir -p %{buildroot}%{_prefix}%{_sysconfdir} -for i in networks protocols services.bz2 ethers; do +for i in networks protocols services.bz2; do install $RPM_SOURCE_DIR/$i %{buildroot}%{_prefix}%{_sysconfdir} done bunzip2 %{buildroot}%{_prefix}%{_sysconfdir}/services.bz2 @@ -75,11 +73,9 @@ install -d -m 0755 %{buildroot}/%{_sysconfdir}/exports.d %defattr(644,root,root,755) %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases -%verify(not md5 size mtime) %{_prefix}%{_sysconfdir}/ethers %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/exports %config(noreplace) %{_sysconfdir}/host.conf %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts -%config(noreplace) %{_sysconfdir}/netgroup %{_prefix}%{_sysconfdir}/networks %{_prefix}%{_sysconfdir}/protocols %{_prefix}%{_sysconfdir}/services From f398c7deffc42f63c902e1f7cc80ebfb3b88de13071486b4f58668debc80b3ed Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Thu, 30 Nov 2023 09:14:08 +0000 Subject: [PATCH 2/2] Accepting request 1129631 from home:kukuk:branches:Base:System - Fix syntax of localhost entries in hosts [bsc#1217355] OBS-URL: https://build.opensuse.org/request/show/1129631 OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=78 --- ethers | 16 ---------------- hosts | 7 ++----- netcfg.changes | 5 +++++ netgroup | 24 ------------------------ 4 files changed, 7 insertions(+), 45 deletions(-) delete mode 100644 ethers delete mode 100644 netgroup diff --git a/ethers b/ethers deleted file mode 100644 index 62a9859..0000000 --- a/ethers +++ /dev/null @@ -1,16 +0,0 @@ -# -# ethers This file contains 48 bit Ethernet addresses and their -# corresponding IP number or hostname. The two items are -# separated by any number of SPACE and/or TAB char acters. -# A at the beginning of a line starts a comment which extends -# to the end of the line. The Ethernet-address is written as -# x:x:x:x:x:x, where x is a hexadecimal number between 0 and -# ff which represents one byte of the address, which is in -# network byte order (bigendian). The IP-number may be a -# hostname which can be resolved by DNS or a dot separated -# number. -# -# Syntax: -# Ethernet-address IP-number -# -# diff --git a/hosts b/hosts index be82a97..911b4d2 100644 --- a/hosts +++ b/hosts @@ -9,13 +9,10 @@ # IP-Address Full-Qualified-Hostname Short-Hostname # -127.0.0.1 localhost -# fallback hostname used by NetworkManager -127.0.0.1 localhost.localdomain +127.0.0.1 localhost localhost.localdomain +::1 localhost localhost.localdomain ipv6-localhost ipv6-loopback # special IPv6 addresses -::1 localhost ipv6-localhost ipv6-loopback - fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix diff --git a/netcfg.changes b/netcfg.changes index 7ff5940..c83fe65 100644 --- a/netcfg.changes +++ b/netcfg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 21 08:39:54 UTC 2023 - Thorsten Kukuk + +- Fix syntax of localhost entries in hosts [bsc#1217355] + ------------------------------------------------------------------- Mon Nov 20 14:00:02 UTC 2023 - Thorsten Kukuk diff --git a/netgroup b/netgroup deleted file mode 100644 index cd696b7..0000000 --- a/netgroup +++ /dev/null @@ -1,24 +0,0 @@ -# -# netgroup The netgroup file. Entries look like this: -# -# netgroup (host,user,domain) (host,user,domain) .. -# -# So for example a netgroup for powerusers could be: -# -# powerusers (,miquels,) (,torvalds,) (,fubar,) -# -# And an entry in the password file like -# -# +@powerusers:::::: -# +:*:::::/etc/NoShell -# -# -# would give access only to the users in "powerusers", while the -# other users would be known to the system but have an invalid -# shell AND an invalid password (with Linux, you can also -# override the password field). -# - -# powerusers (,miquels,) (,torvalds,) (,fubar,) -# ourhosts (picard,,) (enterprise,,) (laforge,,) (Q,,) -