Compare commits

...
Sign in to create a new pull request.

30 commits

Author SHA1 Message Date
Jan Macku
c81f8b3540 10.27 2025-12-11 10:27:28 +01:00
Fedora Release Engineering
59989cdcf1 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:40:40 +00:00
Fedora Release Engineering
90e6e9e2ea Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 07:11:18 +00:00
Zbigniew Jędrzejewski-Szmek
100c0bd722 Rebuilt for the bin-sbin merge (2nd attempt)
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2025-01-12 14:31:02 +01:00
Jan Macku
c8559fc150 10.26 2024-08-30 14:36:11 +02:00
Fedora Release Engineering
9b36e39b27 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 10:23:44 +00:00
Zbigniew Jędrzejewski-Szmek
0ad1aab965 Rebuilt for the bin-sbin merge
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2024-07-09 12:46:03 +02:00
Jan Macku
8c47980cce 10.25 2024-06-25 09:44:19 +02:00
Jan Macku
c8914f994c 10.24 2024-05-29 13:47:14 +02:00
Jan Macku
ad8da7feda 10.23 2024-04-16 10:45:05 +02:00
Jan Macku
414789841d 10.21 2024-02-07 16:15:54 +01:00
Jan Macku
8adbdb9e07 10.20 2024-01-30 14:08:15 +01:00
Fedora Release Engineering
7752abee23 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 22:44:52 +00:00
Fedora Release Engineering
c006ff8d74 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-20 23:06:38 +00:00
Fedora Release Engineering
d99531c1b0 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 07:26:30 +00:00
Jan Macku
6eb35fcbcc 10.19 2023-05-05 15:57:25 +02:00
Jan Macku
0627061939 10.18 2023-03-23 10:37:58 +01:00
Jan Macku
2ed7bf1db0 Convert to %autorelease and %autochangelog
[skip changelog]
2023-03-23 10:03:23 +01:00
Fedora Release Engineering
00bcdd18cf Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 13:10:56 +00:00
Jan Macku
32dd2e2fe5 10.17 2022-08-24 10:02:50 +02:00
Fedora Release Engineering
3620bdfb5b Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 14:41:01 +00:00
Adam Williamson
83747c72df Drop unnecessary obsoletes
Since initscripts requires these packages anyway, the obsoletes
aren't necessary. They're only useful if you split off a new
subpackage and *don't* have the main package require it, but
you still want it to be installed on updates. In this case,
initscripts requires both initscripts-rename-device and
initscripts-service, so there's no need for them to obsolete
older versions of it.

The initscripts-rename-device obsoletes was somehow messing up
live image creation during the openQA update test (caused the
live image not to include initscripts at all). This fixes that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-02-23 17:25:36 -08:00
Jan Macku
d22d9d9fa5 10.16 2022-02-23 14:56:02 +01:00
Jan Macku
8fcd375eb6 10.15 2022-02-15 08:53:41 +01:00
Jan Macku
1977718793 10.14 2022-01-24 12:33:16 +01:00
Fedora Release Engineering
bc7e32837e - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 13:18:41 +00:00
Jan Macku
fa67978555 10.13 2022-01-13 09:17:02 +01:00
Jan Macku
4118d1a47d 10.12 2021-09-03 09:28:50 +02:00
Jan Macku
98deefd061 10.11 2021-08-27 09:58:25 +02:00
Jan Macku
063292249b 10.10 2021-08-26 12:01:42 +02:00
4 changed files with 254 additions and 101 deletions

17
.gitignore vendored
View file

@ -46,3 +46,20 @@
/initscripts-10.07.tar.gz
/initscripts-10.08.tar.gz
/initscripts-10.09.tar.gz
/initscripts-10.10.tar.gz
/initscripts-10.11.tar.gz
/initscripts-10.12.tar.gz
/initscripts-10.13.tar.gz
/initscripts-10.14.tar.gz
/initscripts-10.15.tar.gz
/initscripts-10.16.tar.gz
/initscripts-10.17.tar.gz
/initscripts-10.18.tar.gz
/initscripts-10.19.tar.gz
/initscripts-10.20.tar.gz
/initscripts-10.21.tar.gz
/initscripts-10.23.tar.gz
/initscripts-10.24.tar.gz
/initscripts-10.25.tar.gz
/initscripts-10.26.tar.gz
/initscripts-10.27.tar.gz

View file

@ -18,10 +18,10 @@ Requires: gawk \
Name: initscripts
Summary: Basic support for legacy System V init scripts
Version: 10.09
Release: 2%{?dist}
Version: 10.27
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
@ -34,6 +34,9 @@ Requires: procps-ng
Requires: setup
Requires: systemd
Requires: util-linux
Requires: chkconfig
Requires: initscripts-service
Requires: initscripts-rename-device
Requires(pre): shadow-utils
Requires(post): coreutils
@ -51,9 +54,8 @@ BuildRequires: make
%{?systemd_requires}
BuildRequires: systemd
Provides: /sbin/service
Obsoletes: %{name} < 9.82-2
Obsoletes: %{name} < 10.16-1
Obsoletes: network-scripts < 10.25-1
# === PATCHES =================================================================
@ -89,47 +91,28 @@ other legacy tools & utilities.
# === SUBPACKAGES =============================================================
%package -n network-scripts
Summary: Legacy scripts for manipulating of network devices
Requires: %{name}%{?_isa} = %{version}-%{release}
%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: 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
Provides: /sbin/service
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Obsoletes: %{name} < 9.82-2
%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.
%description -n initscripts-service
This package provides service command.
# ---------------
@ -192,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
@ -224,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
@ -289,46 +245,43 @@ fi
# ---------------
%{_bindir}/*
%{_bindir}/usleep
%{_sbindir}/consoletype
%{_sbindir}/genhostid
%{_sbindir}/service
%{_libexecdir}/import-state
%{_libexecdir}/loadmodules
%{_prefix}/lib/systemd/system/import-state.service
%{_prefix}/lib/systemd/system/loadmodules.service
%{_mandir}/man1/*
# =============================================================================
%files -n initscripts-rename-device
%license COPYING
%{_prefix}/lib/udev/rename_device
%{_udevrulesdir}/*
%{_mandir}/man1/*
# ---------------
%files -n initscripts-service
%license COPYING
%dir %{_libexecdir}/%{name}
%dir %{_libexecdir}/%{name}/legacy-actions
%{_sbindir}/service
%{_mandir}/man8/service.*
# =============================================================================
%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
%license COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/netconsole
%{_libexecdir}/netconsole
@ -337,6 +290,8 @@ fi
# ---------------
%files -n readonly-root
%license COPYING
%dir %{_sharedstatedir}/stateless
%dir %{_sharedstatedir}/stateless/state
%dir %{_sharedstatedir}/stateless/writable
@ -351,8 +306,189 @@ fi
# =============================================================================
%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 10.09-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Dec 11 2025 Jan Macku <jamacku@redhat.com> - 10.27-1
- spec: add missing license files
- build(deps): bump actions/checkout from 5 to 6
- build(deps): bump actions/upload-artifact from 4 to 5
- build(deps): bump github/codeql-action from 3 to 4
- ci: fix issues with missing base commit
- Translated using Weblate (Georgian)
- Translated using Weblate (Indonesian)
- Translated using Weblate (English (United Kingdom))
- Translated using Weblate (Korean)
- Translated using Weblate (Turkish)
- man: add ifdown.8
- build(deps): bump actions/checkout from 4 to 5
- Translated using Weblate (Spanish)
- Translated using Weblate (Georgian)
- Translated using Weblate (Korean)
- Translated using Weblate (Portuguese (Brazil))
- Translated using Weblate (Polish)
- Translated using Weblate (Greek)
- Translated using Weblate (Greek)
- Translated using Weblate (Spanish)
- Translated using Weblate (Georgian)
- Translated using Weblate (Greek)
- Translated using Weblate (Italian)
- Translated using Weblate (Chinese (Traditional) (zh_TW))
- Translated using Weblate (Spanish)
- Translated using Weblate (Finnish)
- retry arping one more time in ifup-eth when sendto failed
- Translated using Weblate (French)
- ci: add dependency glib-2.0
- network-functions: Fix a bug in is_nm_handling()
* Tue Aug 27 2024 Jan Macku <jamacku@redhat.com> - 10.26-1
- Translated using Weblate (Turkish)
- netconsole: var/lock -> run/lock
- netconsole: source sysconfig/network only if it exists
- netconsole: remove unused variables
- netconsole: remove trailing whitespaces
- Translated using Weblate (Turkish)
* 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
* 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`
* 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
* 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)
* 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)
* 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 Feb 15 2021 Jan Macku <jamacku@redhat.com> - 10.09-1
- doc: Document ARPING_WAIT and ARPING_UPDATE_WAIT

View file

@ -16,10 +16,10 @@ curl https://raw.githubusercontent.com/fedora-sysv/initscripts/master/initscript
spectool -g initscripts.spec
# Make a local scratch build in mock first. If it fails, do not upload new tarball!
srpm_file="$(basename $(fedpkg srpm | grep -i "wrote" | cut -d ':' -f 2))"
arch="$(uname -p)"
# srpm_file="$(basename $(fedpkg srpm | grep -i "wrote" | cut -d ':' -f 2))"
# arch="$(uname -p)"
mock -r "fedora-rawhide-${arch}" "${srpm_file}" || exit 2
# mock -r "fedora-rawhide-${arch}" "${srpm_file}" || exit 2
# Scratch build passed, the build should pass in Koji as well. Let's proceed:
fedpkg new-sources "$(basename $(spectool -S -l initscripts.spec | gawk '{print $2;}'))" || exit 3

View file

@ -1 +1 @@
SHA512 (initscripts-10.09.tar.gz) = c8047d02565cbb166b76ce00c893b3a08d0e755fbaf16d11bc3b3a52ce305dd6968e7719b623e81645bece43eb2ed91f54079b10a8bdf02acbe5309062e4cb19
SHA512 (initscripts-10.27.tar.gz) = 951f88158eaf7409f7d65c9875c9ba2611e6a805c17112ddbb34167a1638d87d2433c3962d20e66564669f3424dd7be1265cbe03a1a7d6b1c5413ed43d80148d