|
|
|
@ -18,10 +18,10 @@ Requires: gawk \
|
|
|
|
|
|
|
|
|
|
Name: initscripts
|
|
|
|
|
Summary: Basic support for legacy System V init scripts
|
|
|
|
|
Version: 10.11.5
|
|
|
|
|
Version: 10.25
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
License: GPLv2
|
|
|
|
|
License: GPL-2.0-only
|
|
|
|
|
|
|
|
|
|
URL: https://github.com/fedora-sysv/initscripts
|
|
|
|
|
Source: https://github.com/fedora-sysv/initscripts/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
@ -54,7 +54,8 @@ BuildRequires: make
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name} < 10.11.3-1
|
|
|
|
|
Obsoletes: %{name} < 10.16-1
|
|
|
|
|
Obsoletes: network-scripts < 10.25-1
|
|
|
|
|
|
|
|
|
|
# === PATCHES =================================================================
|
|
|
|
|
|
|
|
|
@ -115,56 +116,6 @@ This package provides service command.
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%package -n network-scripts
|
|
|
|
|
Summary: Legacy scripts for manipulating of network devices
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%shared_requirements
|
|
|
|
|
|
|
|
|
|
Requires: bc
|
|
|
|
|
Requires: dbus
|
|
|
|
|
Requires: gawk
|
|
|
|
|
Requires: grep
|
|
|
|
|
Requires: hostname
|
|
|
|
|
Requires: iproute
|
|
|
|
|
Requires: ipcalc
|
|
|
|
|
Requires: kmod
|
|
|
|
|
Requires: procps-ng
|
|
|
|
|
Requires: sed
|
|
|
|
|
Requires: systemd
|
|
|
|
|
|
|
|
|
|
Requires(post): chkconfig
|
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
|
|
|
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name} < 9.82-2
|
|
|
|
|
|
|
|
|
|
# This is legacy and deprecated, so nobody should depend on this!
|
|
|
|
|
# If ifcfg-style configuration is still desired, NetworkManager can do this.
|
|
|
|
|
# Thus, mark this as deprecated to ensure people know to not depend on it.
|
|
|
|
|
# Cf. https://docs.fedoraproject.org/en-US/packaging-guidelines/deprecating-packages/
|
|
|
|
|
Provides: deprecated()
|
|
|
|
|
|
|
|
|
|
%description -n network-scripts
|
|
|
|
|
This package contains the legacy scripts for activating & deactivating of most
|
|
|
|
|
network interfaces. It also provides a legacy version of 'network' service.
|
|
|
|
|
|
|
|
|
|
The 'network' service is enabled by default after installation of this package,
|
|
|
|
|
and if the network-scripts are installed alongside NetworkManager, then the
|
|
|
|
|
ifup/ifdown commands from network-scripts take precedence over the ones provided
|
|
|
|
|
by NetworkManager.
|
|
|
|
|
|
|
|
|
|
If user has both network-scripts & NetworkManager installed, and wishes to
|
|
|
|
|
use ifup/ifdown from NetworkManager primarily, then they has to run command:
|
|
|
|
|
$ update-alternatives --config ifup
|
|
|
|
|
|
|
|
|
|
Please note that running the command above will also disable the 'network'
|
|
|
|
|
service.
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%package -n netconsole-service
|
|
|
|
|
Summary: Service for initializing of network console logging
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
@ -224,25 +175,16 @@ Please use systemd-volatile-root functionality instead, if possible.
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%make_install NO_NETWORK_SCRIPTS=true
|
|
|
|
|
|
|
|
|
|
# This installs the NLS language files:
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-ctc
|
|
|
|
|
%if "%{_sbindir}" == "%{_bindir}"
|
|
|
|
|
# Some files get installed wrong, but if $(sbindir) is overriden, the build fails :(
|
|
|
|
|
mv -v %{buildroot}/usr/sbin/* %{buildroot}%{_bindir}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Additional ways to access documentation:
|
|
|
|
|
install -m 0755 -d %{buildroot}%{_docdir}/network-scripts
|
|
|
|
|
|
|
|
|
|
ln -s %{_docdir}/%{name}/sysconfig.txt %{buildroot}%{_docdir}/network-scripts/
|
|
|
|
|
ln -sr %{_mandir}/man8/ifup.8 %{buildroot}%{_mandir}/man8/ifdown.8
|
|
|
|
|
|
|
|
|
|
# We are now using alternatives approach to better co-exist with NetworkManager:
|
|
|
|
|
touch %{buildroot}%{_sbindir}/ifup
|
|
|
|
|
touch %{buildroot}%{_sbindir}/ifdown
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
@ -256,24 +198,6 @@ touch %{buildroot}%{_sbindir}/ifdown
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%post -n network-scripts
|
|
|
|
|
chkconfig --add network > /dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
[ -L %{_sbindir}/ifup ] || rm -f %{_sbindir}/ifup
|
|
|
|
|
[ -L %{_sbindir}/ifdown ] || rm -f %{_sbindir}/ifdown
|
|
|
|
|
|
|
|
|
|
%{_sbindir}/update-alternatives --install %{_sbindir}/ifup ifup %{_sysconfdir}/sysconfig/network-scripts/ifup 90 \
|
|
|
|
|
--slave %{_sbindir}/ifdown ifdown %{_sysconfdir}/sysconfig/network-scripts/ifdown \
|
|
|
|
|
--initscript network
|
|
|
|
|
|
|
|
|
|
%preun -n network-scripts
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
chkconfig --del network > /dev/null 2>&1 || :
|
|
|
|
|
%{_sbindir}/update-alternatives --remove ifup %{_sysconfdir}/sysconfig/network-scripts/ifup
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%post -n netconsole-service
|
|
|
|
|
%systemd_post netconsole.service
|
|
|
|
|
|
|
|
|
@ -321,7 +245,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_bindir}/usleep
|
|
|
|
|
%{_sbindir}/consoletype
|
|
|
|
|
%{_sbindir}/genhostid
|
|
|
|
|
|
|
|
|
@ -354,26 +278,6 @@ fi
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%files -n network-scripts
|
|
|
|
|
%doc doc/examples/
|
|
|
|
|
%dir %{_sysconfdir}/sysconfig/network-scripts
|
|
|
|
|
|
|
|
|
|
%{_sysconfdir}/rc.d/init.d/network
|
|
|
|
|
%{_sysconfdir}/sysconfig/network-scripts/*
|
|
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifcfg-lo
|
|
|
|
|
|
|
|
|
|
%ghost %{_sbindir}/ifup
|
|
|
|
|
%ghost %{_sbindir}/ifdown
|
|
|
|
|
%attr(4755,root,root) %{_sbindir}/usernetctl
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man8/ifup.*
|
|
|
|
|
%{_mandir}/man8/ifdown.*
|
|
|
|
|
%{_mandir}/man8/usernetctl.*
|
|
|
|
|
%{_docdir}/network-scripts/*
|
|
|
|
|
|
|
|
|
|
# ---------------
|
|
|
|
|
|
|
|
|
|
%files -n netconsole-service
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/netconsole
|
|
|
|
|
|
|
|
|
@ -397,29 +301,132 @@ fi
|
|
|
|
|
# =============================================================================
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Aug 24 2022 Jan Macku <jamacku@redhat.com> - 10.11.5-1
|
|
|
|
|
* Tue Jun 25 2024 Jan Macku <jamacku@redhat.com> - 10.25-1
|
|
|
|
|
- Revert "fix: return support for network-scripts for Fedora 40"
|
|
|
|
|
|
|
|
|
|
* Wed May 29 2024 Jan Macku <jamacku@redhat.com> - 10.24-1
|
|
|
|
|
- Fix build when %_bindir==%_sbindir
|
|
|
|
|
|
|
|
|
|
* Tue Apr 16 2024 Jan Macku <jamacku@redhat.com> - 10.23-1
|
|
|
|
|
- fix: return support for network-scripts for Fedora 40
|
|
|
|
|
|
|
|
|
|
* Wed Mar 06 2024 Jan Macku <jamacku@redhat.com> - 10.22-1
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- rename_device: free path after it is used
|
|
|
|
|
- rename_device: remove trailing whitespaces
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2024 Jan Macku <jamacku@redhat.com> - 10.21-1
|
|
|
|
|
- fedora: don't build network-scripts rpm in f40+ (2/2)
|
|
|
|
|
- ci: trigger copr build on every push to main branch
|
|
|
|
|
- ifup-routes: print warning when ADDRESS0 entry is missing
|
|
|
|
|
- fedora: don't build network-scripts rpm in f40+
|
|
|
|
|
|
|
|
|
|
* Tue Jan 30 2024 Jan Macku <jamacku@redhat.com> - 10.20-1
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Add -r to while read as per shellcheck
|
|
|
|
|
- Fix splitting spaces in paths from statetab files
|
|
|
|
|
- build(deps): bump actions/upload-artifact from 3 to 4
|
|
|
|
|
- build(deps): bump github/codeql-action from 2 to 3
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Translated using Weblate (Czech)
|
|
|
|
|
- Translated using Weblate (Punjabi)
|
|
|
|
|
- Translated using Weblate (Portuguese (Brazil))
|
|
|
|
|
- build(deps): bump redhat-plumbers-in-action/differential-shellcheck
|
|
|
|
|
- build(deps): bump actions/checkout from 3 to 4
|
|
|
|
|
- Translated using Weblate (Hungarian)
|
|
|
|
|
- Translated using Weblate (Finnish)
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Translated using Weblate (Chinese (Simplified) (zh_CN))
|
|
|
|
|
- Translated using Weblate (English (United Kingdom))
|
|
|
|
|
- Translated using Weblate (Korean)
|
|
|
|
|
- Translated using Weblate (Ukrainian)
|
|
|
|
|
- Translated using Weblate (Swedish)
|
|
|
|
|
- Translated using Weblate (Polish)
|
|
|
|
|
- Update translation files
|
|
|
|
|
- Translated using Weblate (Korean)
|
|
|
|
|
|
|
|
|
|
* Fri May 05 2023 Jan Macku <jamacku@redhat.com> - 10.19-1
|
|
|
|
|
- ci: update Packit configuration
|
|
|
|
|
- spec: add missing changelog entry
|
|
|
|
|
- Revert "releng: Enable Packit to handle Fedora updates"
|
|
|
|
|
- Revert "releng: Convert to rpmautospec"
|
|
|
|
|
- doc: update translations
|
|
|
|
|
- spec: remove changelog
|
|
|
|
|
|
|
|
|
|
* Thu Mar 23 2023 Jan Macku <jamacku@redhat.com> - 10.18-1
|
|
|
|
|
- Translated using Weblate (English (United Kingdom))
|
|
|
|
|
- migrate to SPDX license
|
|
|
|
|
- ci(Mergify): configuration update
|
|
|
|
|
- Translated using Weblate (German)
|
|
|
|
|
- Translated using Weblate (English (United Kingdom))
|
|
|
|
|
- doc: update badges
|
|
|
|
|
- ci(lint): Add Differential PyLint GitHub Action
|
|
|
|
|
- ci(lint): Add permission `security-events: write`
|
|
|
|
|
- ci: Update Differential ShellCheck to `@v4`
|
|
|
|
|
- doc: fix markdown warnings and update badge
|
|
|
|
|
- ci: Setup CodeQL to replace deprecated LGTM
|
|
|
|
|
- releng: Enable Packit to handle Fedora updates
|
|
|
|
|
- releng: Convert to rpmautospec
|
|
|
|
|
- build(deps): bump redhat-plumbers-in-action/differential-shellcheck
|
|
|
|
|
|
|
|
|
|
* Wed Aug 24 2022 Jan Macku <jamacku@redhat.com> - 10.17-1
|
|
|
|
|
- service: Exit when `/etc/init.d` is missing
|
|
|
|
|
- ci: Update workflows to run on main branch
|
|
|
|
|
- ci: remove differential-shellcheck configs
|
|
|
|
|
- doc: Use main branch in links
|
|
|
|
|
- dependabot: Monthly updates
|
|
|
|
|
- ci(Mergify): configuration update
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- ci: Update `packit.yml`
|
|
|
|
|
- ci: Update Github workflows & add Dependabot
|
|
|
|
|
- Translated using Weblate (Estonian)
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Translated using Weblate (Georgian)
|
|
|
|
|
- Translated using Weblate (Czech)
|
|
|
|
|
- Drop unnecessary obsoletes
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Jan Macku <jamacku@redhat.com> - 10.11.4-1
|
|
|
|
|
- spec: Update initscripts Obsoletes
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Jan Macku <jamacku@redhat.com> - 10.11.3-1
|
|
|
|
|
* Wed Feb 23 2022 Adam Williamson <awilliam@redhat.com> - 10.16-2
|
|
|
|
|
- Drop unnecessary obsoletes
|
|
|
|
|
|
|
|
|
|
* Wed Feb 23 2022 Jan Macku <jamacku@redhat.com> - 10.16-1
|
|
|
|
|
- spec: Move rename_device to subpackage `initscripts-rename-device`
|
|
|
|
|
- ci: Update `.packit.yml` to run on `c9s`
|
|
|
|
|
|
|
|
|
|
* Tue Feb 15 2022 Jan Macku <jamacku@redhat.com> - 10.15-1
|
|
|
|
|
- spec: network-scripts needs to depend on dbus-tools for NetworkManager detection
|
|
|
|
|
- packit: Run copr builds on release as well
|
|
|
|
|
- ci: Update `.packit.yml` to run on `c8s` `c9s` and `rawhide`
|
|
|
|
|
- Translated using Weblate (Finnish)
|
|
|
|
|
- ci: Use Differential ShellCheck action
|
|
|
|
|
- ci(Mergify): configuration update
|
|
|
|
|
|
|
|
|
|
* Wed Jan 26 2022 Jan Macku <jamacku@redhat.com> - 10.11.2-1
|
|
|
|
|
* Mon Jan 24 2022 Jan Macku <jamacku@redhat.com> - 10.14-1
|
|
|
|
|
- ifup-routes: Revert quotes
|
|
|
|
|
- ifup-routes: Use `ip replace` only on type `route`
|
|
|
|
|
- ci(Mergify): configuration update
|
|
|
|
|
- ci: remove testing branch from `shellcheck_test.yml`
|
|
|
|
|
|
|
|
|
|
* Thu Jan 13 2022 Jan Macku <jamacku@redhat.com> - 10.13-1
|
|
|
|
|
- ifup-routes: Log when using `ip $type replace`
|
|
|
|
|
- ifup-routes: Use `ip route repace` to avoid race
|
|
|
|
|
- Translated using Weblate (German)
|
|
|
|
|
- Add LGTM badges to README
|
|
|
|
|
- ci: set default merge method to rebase
|
|
|
|
|
- ci: disable comments under opened PR in order to fix CI
|
|
|
|
|
- network scripts: do not use c-style for-loop
|
|
|
|
|
- network scripts: replace "<<<" with pipe
|
|
|
|
|
- rc.d/functions: do not use "+=" to concatenate string
|
|
|
|
|
- ci: Use default github-token (#395)
|
|
|
|
|
- ci(Mergify): configuration update (#394)
|
|
|
|
|
- ci: Output shellcheck results using PR comments (#393)
|
|
|
|
|
- ci: Update path to csdiff repository (#391)
|
|
|
|
|
- spec: Fix issue with $NEXT_VERSION (#390)
|
|
|
|
|
- Translated using Weblate (Indonesian)
|
|
|
|
|
- Translated using Weblate (Spanish)
|
|
|
|
|
- Translated using Weblate (Czech)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 01 2021 Jan Macku <jamacku@redhat.com> - 10.11.1-1
|
|
|
|
|
- spec: Update relation between initscripts and initscripts-service
|
|
|
|
|
- spec: Replace not working awk command with sed
|
|
|
|
|
- use downstream version style
|
|
|
|
|
* Fri Sep 03 2021 Jan Macku <jamacku@redhat.com> - 10.12-1
|
|
|
|
|
- spec: Update relation between initscripts and initscripts-service (#386)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 27 2021 Jan Macku <jamacku@redhat.com> - 10.11-1
|
|
|
|
|
- specfile: Update obsoletes to allow upgrades (#385)
|
|
|
|
@ -438,12 +445,6 @@ fi
|
|
|
|
|
- ci: Onboard initscripts to Packit
|
|
|
|
|
- ci: Migrate from Travis to GH Actions
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 10.09-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 10.09-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Mon Feb 15 2021 Jan Macku <jamacku@redhat.com> - 10.09-1
|
|
|
|
|
- doc: Document ARPING_WAIT and ARPING_UPDATE_WAIT
|
|
|
|
|
- network scripts: Avoid infinite loop of arping
|
|
|
|
|