update initscript version to 10.12

This commit is contained in:
zengwefeng 2022-01-20 08:57:31 +08:00
parent ee83fb5a40
commit c4269880ef
5 changed files with 46 additions and 7 deletions

Binary file not shown.

BIN
initscripts-10.12.tar.gz Normal file

Binary file not shown.

View File

@ -19,8 +19,8 @@ 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.06 Version: 10.12
Release: 2 Release: 1
License: GPLv2 License: GPLv2
@ -35,6 +35,8 @@ Requires: procps-ng
Requires: setup Requires: setup
Requires: systemd Requires: systemd
Requires: util-linux Requires: util-linux
Requires: chkconfig
Requires: initscripts-service
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): coreutils Requires(post): coreutils
@ -52,7 +54,7 @@ BuildRequires: systemd
Provides: /sbin/service Provides: /sbin/service
Obsoletes: %{name} < 9.82-2 Obsoletes: %{name} < 10.10-1
# === PATCHES ================================================================= # === PATCHES =================================================================
@ -80,7 +82,7 @@ Obsoletes: %{name} < 9.82-2
# Patches to be removed -- deprecated functionality which shall be removed at # Patches to be removed -- deprecated functionality which shall be removed at
# --------------------- some point in the future: # --------------------- some point in the future:
Patch6000: run-ifdown-on-all-interfaces.patch Patch0: backport-run-ifdown-on-all-interfaces.patch
Patch9000: bugfix-initscripts-add-udev-wait-dependency-for-network.patch Patch9000: bugfix-initscripts-add-udev-wait-dependency-for-network.patch
@ -98,6 +100,23 @@ other legacy tools & utilities.
# === SUBPACKAGES ============================================================= # === SUBPACKAGES =============================================================
%package -n initscripts-service
Summary: Support for service command
BuildArch: noarch
%shared_requirements
Requires: systemd
Provides: /sbin/service
Obsoletes: %{name} < 10.10-1
%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}
@ -124,6 +143,8 @@ Requires(postun): %{_sbindir}/update-alternatives
Obsoletes: %{name} < 9.82-2 Obsoletes: %{name} < 9.82-2
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.
@ -185,6 +206,9 @@ 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
@ -299,7 +323,6 @@ fi
%{_bindir}/* %{_bindir}/*
%{_sbindir}/consoletype %{_sbindir}/consoletype
%{_sbindir}/genhostid %{_sbindir}/genhostid
%{_sbindir}/service
%{_libexecdir}/import-state %{_libexecdir}/import-state
%{_libexecdir}/loadmodules %{_libexecdir}/loadmodules
@ -311,10 +334,20 @@ fi
%{_udevrulesdir}/* %{_udevrulesdir}/*
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man8/service.*
# ============================================================================= # =============================================================================
%files -n initscripts-service
%dir %{_libexecdir}/%{name}
%dir %{_libexecdir}/%{name}/legacy-actions
%{_sbindir}/service
%{_mandir}/man8/service.*
# ---------------
%files -n network-scripts %files -n network-scripts
%doc doc/examples/ %doc doc/examples/
%dir %{_sysconfdir}/sysconfig/network-scripts %dir %{_sysconfdir}/sysconfig/network-scripts
@ -358,6 +391,12 @@ fi
# ============================================================================= # =============================================================================
%changelog %changelog
* Mon Dec 20 2021 xinghe <xinghe2@huawei.com> - 10.12-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update initscripts to 10.12
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 10.06-2 * Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 10.06-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git - DESC: delete -S git from %autosetup, and delete BuildRequires git

View File

@ -12,7 +12,7 @@ index c39f447..5e49bbd 100644
--- a/src/rename_device.c --- a/src/rename_device.c
+++ b/src/rename_device.c +++ b/src/rename_device.c
@@ -278,6 +278,13 @@ char *get_config_by_hwaddr(char *hwaddr, char *current) { @@ -278,6 +278,13 @@ char *get_config_by_hwaddr(char *hwaddr, char *current) {
return first; return name;
} }
+int pid_exist(int pid) +int pid_exist(int pid)