From 5c72049f52718f192960da44a268fdd6a58bbb3c Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:59:09 +0000 Subject: [PATCH] import UBI chkconfig-1.30-2.el10 --- .chkconfig.metadata | 1 - .gitignore | 2 +- SPECS/chkconfig.spec => chkconfig.spec | 217 ++++++++++++++++++++++--- sources | 1 + 4 files changed, 199 insertions(+), 22 deletions(-) delete mode 100644 .chkconfig.metadata rename SPECS/chkconfig.spec => chkconfig.spec (77%) create mode 100644 sources diff --git a/.chkconfig.metadata b/.chkconfig.metadata deleted file mode 100644 index 491e849..0000000 --- a/.chkconfig.metadata +++ /dev/null @@ -1 +0,0 @@ -44374e1bde4f7d7db25ac1309ec713d9e1a73039 SOURCES/chkconfig-1.19.2.tar.gz diff --git a/.gitignore b/.gitignore index 38c39f6..9230b24 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/chkconfig-1.19.2.tar.gz +chkconfig-1.30.tar.gz diff --git a/SPECS/chkconfig.spec b/chkconfig.spec similarity index 77% rename from SPECS/chkconfig.spec rename to chkconfig.spec index 4ffae9d..d51aec6 100644 --- a/SPECS/chkconfig.spec +++ b/chkconfig.spec @@ -1,20 +1,25 @@ Summary: A system tool for maintaining the /etc/rc*.d hierarchy Name: chkconfig -Version: 1.19.2 -Release: 1%{?dist} -License: GPLv2 +Version: 1.30 +Release: 2%{?dist} +License: GPL-2.0-only URL: https://github.com/fedora-sysv/chkconfig Source: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc systemd-devel make + +BuildRequires: gcc gettext libselinux-devel make newt-devel popt-devel pkgconfig(systemd) +# beakerlib might not be available on CentOS Stream any more +%if 0%{?fedora} +BuildRequires: beakerlib +%endif + Conflicts: initscripts <= 5.30-1 Provides: /sbin/chkconfig -Provides: alternatives = %{version}-%{release} %description Chkconfig is a basic system utility. It updates and queries runlevel information for system services. Chkconfig manipulates the numerous -symbolic links in /etc/rc.d, to relieve system administrators of some +symbolic links in /etc/rc.d, to relieve system administrators of some of the drudgery of manually editing the symbolic links. %package -n ntsysv @@ -28,14 +33,31 @@ manipulating the numerous symbolic links in /etc/rc.d). Unless you specify a runlevel or runlevels on the command line (see the man page), ntsysv configures the current runlevel (5 if you're using X). +%package -n alternatives +Summary: A tool to maintain symbolic links determining default commands +%if "%{_sbindir}" == "%{_bindir}" +Provides: /usr/sbin/alternatives +Provides: /usr/sbin/update-alternatives +Requires: filesystem(unmerged-sbin-symlinks) +%endif + +%description -n alternatives +alternatives creates, removes, maintains and displays information about the +symbolic links comprising the alternatives system. It is possible for several +programs fulfilling the same or similar functions to be installed on a single +system at the same time. + %prep %setup -q %build %make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" +# tests are executed using tmt and tf on CentOS Stream and RHEL +%if 0%{?fedora} %check make check +%endif %install rm -rf $RPM_BUILD_ROOT @@ -55,20 +77,14 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d %defattr(-,root,root) %{!?_licensedir:%global license %%doc} %license COPYING -%dir /etc/alternatives %{_sbindir}/chkconfig -%{_sbindir}/update-alternatives -%{_sbindir}/alternatives %{_sysconfdir}/chkconfig.d %{_sysconfdir}/init.d %{_sysconfdir}/rc.d %{_sysconfdir}/rc.d/init.d %{_sysconfdir}/rc[0-6].d %{_sysconfdir}/rc.d/rc[0-6].d -%dir /var/lib/alternatives %{_mandir}/*/chkconfig* -%{_mandir}/*/update-alternatives* -%{_mandir}/*/alternatives* %{_prefix}/lib/systemd/systemd-sysv-install %files -n ntsysv @@ -76,14 +92,178 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d %{_sbindir}/ntsysv %{_mandir}/*/ntsysv.8* +%files -n alternatives +%license COPYING +%dir /etc/alternatives +%ghost %dir %attr(755, root, root) /etc/alternatives.admindir +%ghost %dir %attr(755, root, root) /var/lib/alternatives +%{_sbindir}/update-alternatives +%{_sbindir}/alternatives +%{_mandir}/*/update-alternatives* +%{_mandir}/*/alternatives* + %changelog -* Mon May 15 2023 Jan Macku - 1.19.2-1 +* Tue Oct 29 2024 Troy Dawson - 1.30-2 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Wed Aug 07 2024 Jan Macku - 1.30-1 +- ostree: move admindir to /etc/alternatives.admindir +- update po/chkconfig.pot + +* Tue Jul 30 2024 Jan Macku - 1.29-1 +- add basic mkosi config +- remove not used directory from makefile +- ntsysv: fix leaks +- leveldb: security_context_t is deprecated +- leveldb: fix leak +- leveldb: fix leak +- leveldb: fix leak +- leveldb: fix leak +- leveldb: fix leak +- chkconfig: fix leak +- chkconfig: fix leak +- chkconfig: fix memory leak when deleting a service +- leveldb: add destructors for service +- leveldb: fix memory leak +- leveldb.c: fix memory leak +- chkconfig: fix leak +- leveldb: fix memory leak +- alternatives: ensure the current alt. is freed if parsing fails +- alternatives: ensure the current group is freed +- Translated using Weblate (English (United Kingdom)) +- Translated using Weblate (Turkish) + +* Fri Jun 21 2024 Jan Macku - 1.28-1 +- Prepare for bin-sbin merge +- tests: fix integration with github actions + +* Tue May 14 2024 Jan Macku - 1.27-1 +- alternatives: properly handle chars with const in normalize_path +- alternatives: use exit in main instead of return for critical failures +- alternatives: fix leak +- alternatives: fix leak +- alternatives: fix possible overrun +- alternatives: fix all the leaks of groups in readConfig +- alternatives: fix all the leaks of read line in readConfig +- alternatives: fix leak +- alternatives: fix memory leak +- alternatives: fix memory leak +- alternatives: initialize parameters in main to NULL +- alternatives: fix memory leak +- Translated using Weblate (Korean) +- Translated using Weblate (English (United Kingdom)) +- Translated using Weblate (Finnish) +- Translated using Weblate (Finnish) +- Translated using Weblate (Japanese) +- Translated using Weblate (Swedish) +- Translated using Weblate (Japanese) +- Translated using Weblate (Polish) +- Translated using Weblate (Korean) +- Translated using Weblate (Georgian) +- Update translation files +- Translated using Weblate (Japanese) +- Fix systemd dependency + +* Wed Jan 17 2024 Jan Macku - 1.26-1 +- fix(test): dot't call `basename` with empty string +- spec: sort BuildRequires alphabetically +- fix(test): remove dangling `rlPhase` fn call +- ci: run tests using Packit and Testing Farm +- build: update `.pot` file +- ci: fix typo in test workflow +- test: add support for running using tmt +- Translated using Weblate (Czech) +- Translated using Weblate (Punjabi) +- build(deps): bump actions/upload-artifact from 3 to 4 +- build(deps): bump github/codeql-action from 2 to 3 +- leveldb: fix systemdActive() +- build(deps): bump redhat-plumbers-in-action/differential-shellcheck +- Translated using Weblate (Hungarian) +- build(deps): bump actions/checkout from 3 to 4 + +* Wed Aug 02 2023 Jan Macku - 1.25-1 +- alternatives: fix possible buffer overrun +- Translated using Weblate (Korean) +- Translated using Weblate (Chinese (Simplified) (zh_CN)) + +* Thu May 04 2023 Jan Macku - 1.24-1 +- ci: fix `NEXT_VERSION` in Makefile +- revert: releng: Enable Packit to handle Fedora updates +- revert: releng: Convert to rpmautospec + +* Thu May 04 2023 Jan Macku - 1.23-1 +- Translated using Weblate (Korean) +- Translated using Weblate (English (United Kingdom)) - alternatives: --keep-foreign incorrectly handles non-existent files - alternatives: isLink should return 0 in case of lstat error -- spec: Replace not working awk command with sed (#63) +- Translated using Weblate (Swedish) +- Translated using Weblate (Korean) +- Translated using Weblate (Georgian) +- Translated using Weblate (Finnish) +- Translated using Weblate (Ukrainian) +- Translated using Weblate (Polish) +- Update translation files +- Translated using Weblate (German) +- doc: update translations +- spec: remote changelog -* Tue Jul 27 2021 Jan Macku - 1.19.1-1 -- spec: Revert changes introduced in Fedora (#61) +* Thu Mar 23 2023 Jan Macku - 1.22-1 +- migrate to SPDX license +- Translated using Weblate (English (United Kingdom)) +- Translated using Weblate (Japanese) +- ci: Add locale linter +- ci: update workflows +- test: fix ShellCheck error[SC2070] +- Bump redhat-plumbers-in-action/differential-shellcheck from 3 to 4 (#94) +- releng: Packit remove extra job trigger +- releng: Enable Packit to handle Fedora updates +- releng: Convert to rpmautospec + +* Wed Oct 05 2022 Jan Macku - 1.21-1 +- ci: Add CodeQL to replace LGTM +- alternatives: replace master/slave with leader/follower +- chkconfig: use correct cmp function +- Bump redhat-plumbers-in-action/differential-shellcheck from 2 to 3 +- ci: Add Shell linter - Differential ShellCheck +- ci: Use more inclusive terminology in workflows +- ci: Update workflows, packit and dependabot +- Translated using Weblate (Friulian) +- Translated using Weblate (Swedish) +- Translated using Weblate (Estonian) +- Translated using Weblate (Georgian) +- Translated using Weblate (Polish) +- Translated using Weblate (Korean) +- Translated using Weblate (Czech) +- Translations update from Fedora Weblate (#77) +- Translations update from Fedora Weblate (#75) +- Translations update from Fedora Weblate (#74) +- Translations update from Fedora Weblate (#73) +- Translated using Weblate (Ukrainian) +- Update translation files +- Family mentioned for --set in both man and help +- Translated using Weblate (French) +- build-sys: Ensure `systemd-sysv-install` symlink does not have `//` +- Translated using Weblate (German) +- Add LGTM badges to README +- Merge remote-tracking branch 'weblate/master' +- Translated using Weblate (Indonesian) +- Translated using Weblate (Finnish) +- Translated using Weblate (Korean) +- Translated using Weblate (Ukrainian) +- Translated using Weblate (Turkish) +- Translated using Weblate (Polish) +- Translated using Weblate (Norwegian Nynorsk) +- Update translation files +- Translated using Weblate (Finnish) +- Translated using Weblate (Czech) +- Translated using Weblate (Swedish) +- Translated using Weblate (Italian) +- Translated using Weblate (Spanish) +- Translated using Weblate (Chinese (Simplified)) + +* Wed Jul 28 2021 Jan Macku - 1.20-1 +- spec: Replace not working awk command with sed (#62) * Fri Jul 23 2021 Jan Macku - 1.19-1 - spec: Add Provides /sbin/chkconfig in order to stay backwards compatible (#60) @@ -118,9 +298,6 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d - Fix spelling of SELinux - Remove hardcoded systemd path -* Fri Apr 17 2020 Jan Macku - 1.13-2 -- Package onboarded to gating - * Tue Apr 14 2020 Jan Macku - 1.13-1 - fix typo in translations and fix bogus dates in changelog @@ -315,7 +492,7 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d - translation updates: as, bg, bn_IN, bs, ca, de, fr, hi, hu, id, ja, ka, ml, ms, nb, or, sk, sl - add resetpriorities to the man page (#197399) - + * Tue Feb 6 2007 Bill Nottingham 1.3.33-1 - various changes from review - support alternate %%{_sbindir}, fix summaries, add version to requires, assorted other bits diff --git a/sources b/sources new file mode 100644 index 0000000..03b02fd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chkconfig-1.30.tar.gz) = cebe17dc8efaf9821935d6d97b68115c06ec91184ad9fc0fe865f9c29884e99234265379291746c87a6036f6b847f9704f5ef6d80828a30ad7b04760d4cb45f2