Compare commits

...

No commits in common. "c9-beta" and "c8" have entirely different histories.
c9-beta ... c8

3 changed files with 59 additions and 166 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/initscripts-10.11.7.tar.gz SOURCES/initscripts-10.00.18.tar.gz

View File

@ -1 +1 @@
b37728ae9b4a76e180b625a040cfcc8863c23128 SOURCES/initscripts-10.11.7.tar.gz 07869d0e85730c355471ff37c311663369864d56 SOURCES/initscripts-10.00.18.tar.gz

View File

@ -18,7 +18,7 @@ Requires: gawk \
Name: initscripts Name: initscripts
Summary: Basic support for legacy System V init scripts Summary: Basic support for legacy System V init scripts
Version: 10.11.7 Version: 10.00.18
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
@ -34,9 +34,6 @@ Requires: procps-ng
Requires: setup Requires: setup
Requires: systemd Requires: systemd
Requires: util-linux Requires: util-linux
Requires: chkconfig
Requires: initscripts-service
Requires: initscripts-rename-device
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): coreutils Requires(post): coreutils
@ -49,12 +46,14 @@ BuildRequires: glib2-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: popt-devel BuildRequires: popt-devel
BuildRequires: setup BuildRequires: setup
BuildRequires: make BuildRequires: python3-devel
%{?systemd_requires} %{?systemd_requires}
BuildRequires: systemd BuildRequires: systemd
Obsoletes: %{name} < 10.11.3-1 Provides: /sbin/service
Obsoletes: %{name} < 9.82-2
# === PATCHES ================================================================= # === PATCHES =================================================================
@ -90,31 +89,6 @@ other legacy tools & utilities.
# === SUBPACKAGES ============================================================= # === SUBPACKAGES =============================================================
%package -n initscripts-rename-device
Summary: Udev helper utility that provides network interface naming
%shared_requirements
%description -n initscripts-rename-device
Udev helper utility that provides network interface naming
# ---------------
%package -n initscripts-service
Summary: Support for service command
BuildArch: noarch
%shared_requirements
Requires: systemd
Provides: /sbin/service
%description -n initscripts-service
This package provides service command.
# ---------------
%package -n network-scripts %package -n network-scripts
Summary: Legacy scripts for manipulating of network devices Summary: Legacy scripts for manipulating of network devices
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
@ -141,12 +115,6 @@ Requires(postun): %{_sbindir}/update-alternatives
Obsoletes: %{name} < 9.82-2 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 %description -n network-scripts
This package contains the legacy scripts for activating & deactivating of most This package contains the legacy scripts for activating & deactivating of most
network interfaces. It also provides a legacy version of 'network' service. network interfaces. It also provides a legacy version of 'network' service.
@ -208,9 +176,6 @@ Obsoletes: %{name} < 9.82-2
This package provides script & configuration file for setting up read-only root This package provides script & configuration file for setting up read-only root
support. Additional configuration is required after installation. support. Additional configuration is required after installation.
Please note that readonly-root package is considered deprecated with limited support.
Please use systemd-volatile-root functionality instead, if possible.
# === BUILD INSTRUCTIONS ====================================================== # === BUILD INSTRUCTIONS ======================================================
%prep %prep
@ -317,42 +282,26 @@ fi
# RC symlinks: # RC symlinks:
%{_sysconfdir}/rc[0-6].d %{_sysconfdir}/rc[0-6].d
%{_sysconfdir}/init.d
# --------------- # ---------------
%{_bindir}/* %{_bindir}/*
%{_sbindir}/consoletype %{_sbindir}/consoletype
%{_sbindir}/genhostid %{_sbindir}/genhostid
%{_sbindir}/service
%{_libexecdir}/import-state %{_libexecdir}/import-state
%{_libexecdir}/loadmodules %{_libexecdir}/loadmodules
%{_prefix}/lib/systemd/system/import-state.service %{_prefix}/lib/systemd/system/import-state.service
%{_prefix}/lib/systemd/system/loadmodules.service %{_prefix}/lib/systemd/system/loadmodules.service
%{_mandir}/man1/*
# =============================================================================
%files -n initscripts-rename-device
%{_prefix}/lib/udev/rename_device %{_prefix}/lib/udev/rename_device
%{_udevrulesdir}/* %{_udevrulesdir}/*
# --------------- %{_mandir}/man1/*
%files -n initscripts-service
%dir %{_libexecdir}/%{name}
%dir %{_libexecdir}/%{name}/legacy-actions
%{_sbindir}/service
%{_mandir}/man8/service.* %{_mandir}/man8/service.*
# --------------- # =============================================================================
%files -n network-scripts %files -n network-scripts
%doc doc/examples/ %doc doc/examples/
@ -397,140 +346,84 @@ fi
# ============================================================================= # =============================================================================
%changelog %changelog
* Wed Mar 06 2024 Jan Macku <jamacku@redhat.com> - 10.11.7-1 * Wed Aug 10 2022 Jan Macku <jamacku@redhat.com> - 10.00.18-1
- rename_device: free path after it is used - ci: Update `.packit.yml` to run on `c8s`
- rename_device: remove trailing whitespaces
* Thu Feb 08 2024 Jan Macku <jamacku@redhat.com> - 10.11.6-1
- Add -r to while read as per shellcheck
- Fix splitting spaces in paths from statetab files
* Wed Aug 24 2022 Jan Macku <jamacku@redhat.com> - 10.11.5-1
- service: Exit when `/etc/init.d` is missing
* 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
- Drop unnecessary obsoletes
- spec: Move rename_device to subpackage `initscripts-rename-device`
- ci: Update `.packit.yml` to run on `c9s`
- ci: Use Differential ShellCheck action - ci: Use Differential ShellCheck action
* Wed Jan 26 2022 Jan Macku <jamacku@redhat.com> - 10.11.2-1 * Mon Jan 24 2022 Jan Macku <jamacku@redhat.com> - 10.00.17-1
- ifup-routes: Revert quotes - ifup-routes: Revert quotes
- ifup-routes: Use `ip replace` only on type `route` - ifup-routes: Use `ip replace` only on type `route`
- ci: introduce GA ci from master to rhel8-branch
- ci: Setup packit for RHEL8 branch
- ci: Get rid of old ci files (travis and zanata)
* Fri Jan 14 2022 Jan Macku <jamacku@redhat.com> - 10.00.16-1
- rename_device: also support dracut-style kernel cmdline configuration
- ifup-routes: Log when using `ip $type replace` - ifup-routes: Log when using `ip $type replace`
- ifup-routes: Use `ip route repace` to avoid race - ifup-routes: Use `ip route repace` to avoid race
- ci: Update path to csdiff repository (#391)
* Wed Sep 01 2021 Jan Macku <jamacku@redhat.com> - 10.11.1-1 * Mon Feb 15 2021 Jan Macku <jamacku@redhat.com> - 10.00.15-1
- spec: Update relation between initscripts and initscripts-service
- spec: Replace not working awk command with sed
- use downstream version style
* Fri Aug 27 2021 Jan Macku <jamacku@redhat.com> - 10.11-1
- specfile: Update obsoletes to allow upgrades (#385)
* Thu Aug 26 2021 Jan Macku <jamacku@redhat.com> - 10.10-1
- Translated using Weblate (Friulian) (#381)
- Translations update from Weblate (#378)
- added veth support
- ifup-eth: add a new PERSISTENT_DHCLIENT_IPV6 option for IPv6 dhclient daemon
- ifdown removes veth pair if both peers are down
- rename_device: also support dracut-style kernel cmdline configuration
- spec: Mark network-scripts as deprecated
- spec: Initscripts now requires chkconfig (#374)
- Translations update from Weblate (#371)
- spec: Move service script into subpackage
- 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 - doc: Document ARPING_WAIT and ARPING_UPDATE_WAIT
- network scripts: Avoid infinite loop of arping - network scripts: Avoid infinite loop of arping
* Thu Feb 4 2021 Jan Macku <jamacku@redhat.com> - 10.08-1 * Thu Feb 4 2021 Jan Macku <jamacku@redhat.com> - 10.00.14-1
- network: fix condition in set_link_up() - network: fix condition in set_link_up()
- spec: sync with Fedora
* Fri Jan 22 2021 Jan Macku <jamacku@redhat.com> - 10.07-1 * Fri Jan 22 2021 Jan Macku <jamacku@redhat.com> - 10.00.13-1
- doc: Fix "Duplicated string found in the file."
- doc: Documents RES_OPTIONS option
- doc: Documents ifcfg option LINKSTATUS - doc: Documents ifcfg option LINKSTATUS
- ci: use up to date keywords and fix some warnings
- network: fix set_link_up()
- network: add option to keep the link down
- Rework of shell ci
- Translations update from Weblate
* Fri Nov 13 2020 Jan Macku <jamacku@redhat.com> - 10.06-1 * Thu Dec 17 2020 Jan Macku <jamacku@redhat.com> - 10.00.12-1
- service: catch unsupported action keywords - network: fix set_link_up()
* Tue Dec 15 2020 Jan Macku <jamacku@redhat.com> - 10.00.11-1
- network: add option to keep the link down
- makefile: Use rpmdev-bumpspec's legacy date option - makefile: Use rpmdev-bumpspec's legacy date option
* Fri Nov 06 2020 Jan Macku <jamacku@redhat.com> - 10.05-1 * Fri Nov 06 2020 Jan Macku <jamacku@redhat.com> - 10.00.10-1
- service: Prevent variables from globbing
- init.d/functions: Make usage msgs more clear
- network-scripts: Use net_log() instead of logger
- Allow updating rfkill switch status while in readonly root mode - Allow updating rfkill switch status while in readonly root mode
- Add info into specfile about readonly-root deprecation - service: Prevent variables from globbing
- Allow updating mlocate.db while in readonly root mode - Allow updating mlocate.db while in readonly root mode
- rc.d/functions: replace grep's --quiet with -q
- Add warning to warn user when ETHTOOL_OPTS is set and ethtool binary is missing - Olav Vitters * Fri Jul 24 2020 Jan Macku <jamacku@redhat.com> - 10.00.9-1
- Fix spacing in Makefile
- Add optional 'dev' keyword - Add optional 'dev' keyword
* Tue Jul 14 2020 Jan Macku <jamacku@redhat.com> - 10.04-1 * Tue Jun 16 2020 Jan Macku <jamacku@redhat.com> - 10.00.8-1
- Maintain permisision to set umask
- rwtab: Add support for chrony - rwtab: Add support for chrony
- Correct spelling, IP, - ifup-eth: Switch to bc utility, which supports floating point computations.
- Fix spelling, for more info
- Fix spelling of SELinux
- Translations update from Weblate
* Tue Mar 24 2020 Jan Macku <jamacku@redhat.com> - 10.03-1
- Replace grep -EL with subshell since -L changed behaviour - Replace grep -EL with subshell since -L changed behaviour
* Wed Apr 15 2020 Jan Macku <jamacku@redhat.com> - 10.00.7-1
- Wait for scope link addresses as well as for scope global addresses - Wait for scope link addresses as well as for scope global addresses
- Remove deprecated option -m of pidof - Remove deprecated option -m of pidof
- Use function is_true for testing true conditions
- Adding new travis job for testing shell-scripts * Tue Dec 10 2019 Jan Macku <jamacku@redhat.com> - 10.00.6-1
- Remove zanata conf
- pull latest translations
- Update of translations and remove files with no translations
- Fix service network stop cmd - Fix service network stop cmd
- Change spacing of service file to folow spacing of project
- network-function: bridges are created by ifup-eth
- Initscripts no longer care about rc.local
- Repalace hardcoded tests for yes and no with testing functions
- ifup-eth: Fix bridge setting stp option
- Fix bug in service(8)
- ifup-eth: Check that device name is set
- Fix missing python3 during build phase - Fix missing python3 during build phase
- rc.d/functions: fix escape sequence being output under systemd service units
- Add ip6gre tunnel option
- ifup/ifdown: print DEPRECATION_WARNING_ISSUED waring info after source_config
* Fri Jun 28 2019 Jan Macku <jamacku@redhat.com> - 10.02-1 * Wed Oct 30 2019 Jan Macku <jamacku@redhat.com> - 10.00.5-1
- network-function: bridges are created by ifup-eth
- network: don't fail with IFDOWN_ON_SHUTDOWN - network: don't fail with IFDOWN_ON_SHUTDOWN
- rc.d/functions: remove support cgroups - Add ip6gre tunnel option
- Create symlink (/etc/init.d) to /etc/rc.d/init.d - ifup-eth: Check that device name is set
- Add option to wait until target is reachable - Initscripts no longer care about rc.local
- ifup-eth: apply PERSISTENT_DHCLIENT to IPv6 dhclient daemon
- ifup-post: fix incorrect condition for RESOLV_MODS
- make tag: updated message
- make release-commit: do not create tag automatically
* Mon Aug 06 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 10.01-1 * Fri Aug 23 2019 Lukas Nykryn <lnykryn@redhat.com> - 10.00.4-1
- network/ifup/ifdown: deprecations warnings redirected to stderr - ifup-eth: Fix bridge setting stp option
- ifup-eth: use 'bc' instead of 'expr' when computing $forward_delay
* Wed Aug 07 2019 Jan Macku <jamacku@redhat.com> - 10.00.3-1
- rc.d/functions: fix escape sequence being output under systemd service units
- Replace not working awk command with sed
* Thu Jun 06 2019 Jan Macku <jamacku@redhat.com> - 10.00.2-1
- ifup-post: fix incorrect condition for RESOLV_MODS
* Fri Aug 03 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 10.00.1-1
- consoletype/genhostid/usleep: allow disabling of deprecation warnings
- network/ifup/ifdown: allow disabling of deprecation warnings
- network/ifup/ifdown: deprecation warnings for 'network-scripts' added - network/ifup/ifdown: deprecation warnings for 'network-scripts' added
- network: parsing of /proc/mounts returned
* Thu Jun 21 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 10.00.0-1
- fork for next major RHEL release
* Thu Jun 21 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 10.00-1 * Thu Jun 21 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 10.00-1
- Move the /etc/rwtab.d & /etc/statetab.d folders to 'filesystem' - Move the /etc/rwtab.d & /etc/statetab.d folders to 'filesystem'
@ -838,7 +731,7 @@ ng
* Tue Jan 14 2014 Lukáš Nykrýn <lnykryn@redhat.com> 9.51-1 * Tue Jan 14 2014 Lukáš Nykrýn <lnykryn@redhat.com> 9.51-1
- readonly-root: bind-mount only necessary subset of entries in rwtab - readonly-root: bind-mount only necessary subset of entries in rwtab
- readonly-root: Add /var/log/audit/audit.log to rwtab - readonly-root: Add /var/log/audit/audit.log to rwtab
- readonly-root: restore SELinux context after bind mount - readonly-root: restore selinux context after bind mount
- rename_device: remove comments and trailing whitespaces - rename_device: remove comments and trailing whitespaces
- service: suggest using systemctl if unknown action is used - service: suggest using systemctl if unknown action is used
- ifup-eth: fix typo in error message - ifup-eth: fix typo in error message