udev: add requires(pre) for systemd and added other pre and post requirements for bootstrap installation

own /run/utmp, /var/log/{lastlog,wtmp,btmp} formerly from initscripts [release 256.9-2mamba;Thu Dec 05 2024]
This commit is contained in:
Silvan Calarco 2024-12-05 22:30:24 +01:00
parent afcf98ddf3
commit d13bfbbb0a

View File

@ -27,7 +27,7 @@
Name: systemd Name: systemd
Epoch: 2 Epoch: 2
Version: 256.9 Version: 256.9
Release: 1mamba Release: 2mamba
Summary: A system and service manager compatible with SysV and LSB init scripts Summary: A system and service manager compatible with SysV and LSB init scripts
Group: System/Configuration Group: System/Configuration
Vendor: openmamba Vendor: openmamba
@ -94,6 +94,8 @@ Provides: /sbin/reboot
Provides: /sbin/shutdown Provides: /sbin/shutdown
Provides: /usr/sbin/shutdown Provides: /usr/sbin/shutdown
Requires(pre): filesystem >= 2.3-10mamba Requires(pre): filesystem >= 2.3-10mamba
Requires(post): findutils
Requires(post): grep
Requires(post): pwdutils Requires(post): pwdutils
Provides: laptop-mode-tools Provides: laptop-mode-tools
Obsoletes: laptop-mode-tools < 248 Obsoletes: laptop-mode-tools < 248
@ -144,9 +146,10 @@ Obsoletes: devfsd < 2:248
Obsoletes: hotplug < 2:248 Obsoletes: hotplug < 2:248
Provides: udev-static Provides: udev-static
Obsoletes: udev-static < 2:248 Obsoletes: udev-static < 2:248
Requires(pre): grep
Requires(post): /usr/sbin/groupadd Requires(post): /usr/sbin/groupadd
Requires(post): setup Requires(post): setup
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires(post): systemd = %{?epoch:%epoch:}%{version}-%{release}
Requires: libudev = %{?epoch:%epoch:}%{version}-%{release} Requires: libudev = %{?epoch:%epoch:}%{version}-%{release}
%description -n udev %description -n udev
@ -282,6 +285,14 @@ install -D -m0755 %{SOURCE17} %{buildroot}%{_prefix}/lib/systemd/systemd-sysv-in
install -d -m0755 %{buildroot}%{_sysconfdir}/repart.d install -d -m0755 %{buildroot}%{_sysconfdir}/repart.d
install -d -m0755 %{buildroot}%{_prefix}/lib/repart.d install -d -m0755 %{buildroot}%{_prefix}/lib/repart.d
# own system log files previously owned by initscripts package
mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/lastlog
chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
mkdir -p %{buildroot}/run
touch %{buildroot}/run/utmp
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -489,11 +500,6 @@ if [ $1 -ge 1 ]; then
udevadm trigger -a change udevadm trigger -a change
fi fi
[ "`grep " vc/" /etc/inittab 2>/dev/null`" ] && {
sed -i "s| vc/| tty|" /etc/inittab
telinit q
}
groupadd audio -g %{group_audio} 2>/dev/null groupadd audio -g %{group_audio} 2>/dev/null
groupadd cdrecording -g %{group_cdrecording} 2>/dev/null groupadd cdrecording -g %{group_cdrecording} 2>/dev/null
groupadd cdrom -g %{group_cdrom} 2>/dev/null groupadd cdrom -g %{group_cdrom} 2>/dev/null
@ -511,7 +517,6 @@ groupadd render -g %{group_render} 2>/dev/null
[ -e /lib/udev ] || ln -s ../usr/lib/udev /lib/udev [ -e /lib/udev ] || ln -s ../usr/lib/udev /lib/udev
: :
%posttrans -n udev %posttrans -n udev
[ ! -L /lib -a ! -L /lib/udev ] && { [ ! -L /lib -a ! -L /lib/udev ] && {
# Migrate /lib/udev -> /usr/lib/udev migration # Migrate /lib/udev -> /usr/lib/udev migration
@ -697,6 +702,10 @@ systemctl daemon-reload &>/dev/null || :
%dir %{_localstatedir}/log/journal %dir %{_localstatedir}/log/journal
%dir %{_localstatedir}/log/journal/remote %dir %{_localstatedir}/log/journal/remote
%dir %{_localstatedir}/lib/systemd %dir %{_localstatedir}/lib/systemd
%ghost %attr(0664,root,root) %verify(not group) /run/utmp
%ghost %attr(0664,root,root) %verify(not group) /var/log/wtmp
%ghost %attr(0660,root,root) %verify(not group) /var/log/btmp
%ghost %attr(0664,root,root) %verify(not md5 size mtime group) /var/log/lastlog
%{_mandir}/man1/bootctl.1* %{_mandir}/man1/bootctl.1*
%{_mandir}/man1/busctl.1* %{_mandir}/man1/busctl.1*
%{_mandir}/man1/coredumpctl.1* %{_mandir}/man1/coredumpctl.1*
@ -813,6 +822,10 @@ systemctl daemon-reload &>/dev/null || :
%{_libdir}/pkgconfig/libudev.pc %{_libdir}/pkgconfig/libudev.pc
%changelog %changelog
* Thu Dec 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 256.9-2mamba
- udev: add requires(pre) for systemd and added other pre and post requirements for bootstrap installation
- own /run/utmp, /var/log/{lastlog,wtmp,btmp} formerly from initscripts
* Sat Nov 30 2024 Automatic Build System <autodist@openmamba.org> 256.9-1mamba * Sat Nov 30 2024 Automatic Build System <autodist@openmamba.org> 256.9-1mamba
- automatic version update by autodist - automatic version update by autodist