2007-01-15 23:26:46 +00:00
|
|
|
#
|
2011-03-04 08:42:27 +00:00
|
|
|
# spec file for package netcfg
|
2007-01-15 23:26:46 +00:00
|
|
|
#
|
2023-10-04 10:39:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:26:46 +00:00
|
|
|
#
|
2008-09-08 14:22:46 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-12 11:00:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:26:46 +00:00
|
|
|
#
|
|
|
|
|
2008-03-05 20:32:42 +00:00
|
|
|
|
2007-01-15 23:26:46 +00:00
|
|
|
Name: netcfg
|
2018-02-22 17:19:49 +00:00
|
|
|
Version: 11.6
|
2014-06-09 08:37:53 +00:00
|
|
|
Release: 0
|
2007-01-15 23:26:46 +00:00
|
|
|
Summary: Network Configuration Files in /etc
|
2013-06-05 11:24:30 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Base
|
2007-01-15 23:26:46 +00:00
|
|
|
Source1: exports
|
2020-01-29 07:21:03 +00:00
|
|
|
Source3: host.conf
|
2007-01-15 23:26:46 +00:00
|
|
|
Source4: hosts
|
|
|
|
Source9: networks
|
|
|
|
Source10: protocols
|
|
|
|
Source11: services.bz2
|
2014-06-04 10:41:28 +00:00
|
|
|
Source12: hostname
|
2007-01-15 23:26:46 +00:00
|
|
|
Source13: aliases
|
|
|
|
Source14: ethers
|
|
|
|
Source15: netgroup
|
2011-03-03 13:11:19 +00:00
|
|
|
Source16: COPYING
|
2018-02-22 17:19:49 +00:00
|
|
|
Source17: ethertypes
|
2014-02-06 16:31:08 +00:00
|
|
|
Source100: services-compare.pl
|
|
|
|
Source101: services-compare.sh
|
|
|
|
Source102: services-create.pl
|
|
|
|
Source103: services_UPDATING
|
2014-06-09 08:37:53 +00:00
|
|
|
Patch0: services-suse.diff
|
2020-05-18 08:10:44 +00:00
|
|
|
BuildRequires: libnss_usrfiles2
|
2020-02-05 09:00:25 +00:00
|
|
|
Requires: libnss_usrfiles2
|
2014-06-09 08:37:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2007-01-15 23:26:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
All of the basic configuration files for the network programs including
|
2014-06-09 08:37:53 +00:00
|
|
|
%{_sysconfdir}/aliases, %{_sysconfdir}/protocols, and %{_sysconfdir}/services.
|
2007-01-15 23:26:46 +00:00
|
|
|
|
|
|
|
These are often used by network routines in the C library and therefore
|
|
|
|
must be installed for all network programs.
|
|
|
|
|
2008-01-28 15:01:43 +00:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
2014-06-09 08:37:53 +00:00
|
|
|
cp %{SOURCE16} .
|
2007-01-15 23:26:46 +00:00
|
|
|
|
|
|
|
%install
|
2019-12-17 07:53:58 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
2023-10-04 10:39:39 +00:00
|
|
|
for i in hostname aliases exports host.conf hosts netgroup ethertypes; do
|
2019-12-17 07:53:58 +00:00
|
|
|
install $RPM_SOURCE_DIR/$i %{buildroot}/%{_sysconfdir}
|
2007-01-15 23:26:46 +00:00
|
|
|
done
|
2019-12-17 07:53:58 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}%{_sysconfdir}
|
|
|
|
for i in networks protocols services.bz2 ethers; do
|
|
|
|
install $RPM_SOURCE_DIR/$i %{buildroot}%{_prefix}%{_sysconfdir}
|
|
|
|
done
|
|
|
|
bunzip2 %{buildroot}%{_prefix}%{_sysconfdir}/services.bz2
|
|
|
|
patch -p0 %{buildroot}%{_prefix}%{_sysconfdir}/services < $RPM_SOURCE_DIR/services-suse.diff
|
|
|
|
rm -f %{buildroot}%{_prefix}%{_sysconfdir}/services.orig
|
2007-01-15 23:26:46 +00:00
|
|
|
|
2020-05-18 08:10:44 +00:00
|
|
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/exports.d
|
|
|
|
|
2007-01-15 23:26:46 +00:00
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
2015-08-25 09:42:29 +00:00
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname
|
2014-06-09 08:37:53 +00:00
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases
|
2020-05-18 08:10:44 +00:00
|
|
|
%verify(not md5 size mtime) %{_prefix}%{_sysconfdir}/ethers
|
2014-06-09 08:37:53 +00:00
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/exports
|
2020-01-29 07:21:03 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/host.conf
|
2014-06-09 08:37:53 +00:00
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts
|
|
|
|
%config(noreplace) %{_sysconfdir}/netgroup
|
2020-05-18 08:10:44 +00:00
|
|
|
%{_prefix}%{_sysconfdir}/networks
|
|
|
|
%{_prefix}%{_sysconfdir}/protocols
|
|
|
|
%{_prefix}%{_sysconfdir}/services
|
2018-02-22 17:19:49 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/ethertypes
|
2020-05-18 08:10:44 +00:00
|
|
|
%dir %{_sysconfdir}/exports.d
|
2018-02-26 09:34:04 +00:00
|
|
|
%license COPYING
|
2007-01-15 23:26:46 +00:00
|
|
|
|
2008-01-28 15:01:43 +00:00
|
|
|
%changelog
|