* Mon Mar 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-9.sme

- initial release of smeserver-update based on smeserver-yum
  * tidy centos repos, add rocky repos, add support for metalinks,
  tidy most references to yum (except manager), tidy config and templates
  * yum-cron moved to dnf-automatic,
  * rename yum_** esmith db, except yum_repositories
  * moved yum.conf to dnf.conf with deltarpm , fastestmirror support
  * add requirement for dnf post-transaction-actions
  * adapt setting for priorities
  * renamed yum.service to dnf.service
  * TODO smeserver.py plugin
This commit is contained in:
Jean-Philippe Pialasse 2024-03-25 22:42:14 -04:00
parent fc884e4629
commit c158b051fd
5 changed files with 24 additions and 20 deletions

View File

@ -23,6 +23,11 @@
if ($check4contribsupdates) { if ($check4contribsupdates) {
$DB->get('dnf')->delete_prop('check4contribsupdates'); $DB->get('dnf')->delete_prop('check4contribsupdates');
} }
my $output_width = $DB->get_prop('dnf','output_width');
if ($output_width) {
$DB->get('dnf')->delete_prop('output_width');
}
} }

View File

@ -0,0 +1 @@
fastestmirror={( ( $dnf{fastestmirror} ||'enabled') eq "enabled")?1:0;}

View File

@ -21,7 +21,7 @@ dnf_update_dbs = events_path + '/actions/yum-update-dbs'
Conflicts=yum-cron.service dnf-automatic-notifyonly.service dnf-automatic.service Conflicts=yum-cron.service dnf-automatic-notifyonly.service dnf-automatic.service
signal_event = '/sbin/e-smith/signal-event' signal_event = '/sbin/e-smith/signal-event'
config_set = '/sbin/e-smith/config' config_set = '/sbin/e-smith/config'
status_file = '/var/run/yum.status' status_file = '/var/cache/dnf/dnf.status'
expand_template = '/sbin/e-smith/expand-template' expand_template = '/sbin/e-smith/expand-template'
service = '/sbin/e-smith/service' service = '/sbin/e-smith/service'
@ -432,8 +432,8 @@ def posttrans_hook(conduit):
os.spawnl(os.P_WAIT, systemctl, systemctl, 'restart', 'yum') os.spawnl(os.P_WAIT, systemctl, systemctl, 'restart', 'yum')
def close_hook(conduit): def close_hook(conduit):
if ourfile and os.path.isfile('/var/run/yum.status'): if ourfile and os.path.isfile(status_file):
os.unlink('/var/run/yum.status') os.unlink(status_file)
if smechange: if smechange:
print "\nThe following updates require a server reboot:\n" + str(smechangelist.keys()) print "\nThe following updates require a server reboot:\n" + str(smechangelist.keys())

View File

@ -286,7 +286,7 @@ sub print_yum_status_page
my ($fm) = @_; my ($fm) = @_;
my @yum_status; my @yum_status;
if (open(YUM_STATUS, "</var/run/yum.status")) { if (open(YUM_STATUS, "</var/cache/dnf/dnf.status")) {
@yum_status = <YUM_STATUS>; @yum_status = <YUM_STATUS>;
close(YUM_STATUS); close(YUM_STATUS);
} }

View File

@ -11,6 +11,8 @@ Source: %{name}-%{version}.tar.xz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch BuildArchitectures: noarch
Provides: smeserver-yum-%{version}-%{release}
Obsoletes: smeserver-yum < %{version}-%{release}
Requires: smeserver-formmagick Requires: smeserver-formmagick
Requires: smeserver-base Requires: smeserver-base
Requires: perl(CGI::FormMagick) >= 0.91-26 Requires: perl(CGI::FormMagick) >= 0.91-26
@ -49,13 +51,12 @@ mkdir -p root/etc/yum.smerepos.d
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist /bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist \ /sbin/e-smith/genfilelist \
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ --file '/sbin/e-smith/dnf_update_dbs' 'attr(0700,root,root)' \
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ --file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \
--file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ --file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \
--file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \ --file '/sbin/e-smith/yumdownloadonly' 'attr(0755,root,root)' \
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ --file '/etc/cron.daily/smeserver-update' 'attr(0700,root,root)' \
--dir /var/log/yum 'attr(2750,root,root)' \ --dir /var/log/dnf 'attr(2750,root,root)' \
$RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
%clean %clean
@ -71,18 +72,15 @@ mkdir -p root/etc/yum.smerepos.d
%changelog %changelog
* Mon Mar 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-9.sme * Mon Mar 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-9.sme
- initial release of smeserver-update based on smeserver-yum - initial release of smeserver-update based on smeserver-yum
updated requirements * tidy centos repos, add rocky repos, add support for metalinks,
TODO tidy centos repos tidy most references to yum (except manager), tidy config and templates
TODO add rocky repos * yum-cron moved to dnf-automatic,
TODO tidy reference yo yum * rename yum_** esmith db, except yum_repositories
TODO yum-cron alternative for updates list and auto update * moved yum.conf to dnf.conf with deltarpm , fastestmirror support
TODO rename yum_** esmith db * add requirement for dnf post-transaction-actions
TODO deltarpm tidy * adapt setting for priorities
TODO adapt setting for fastestmirror * renamed yum.service to dnf.service
TODO adapt settings for post-transaction-actions * TODO smeserver.py plugin
TODO adapt setting for priorities
TODO adapt /etc/yum.conf -> /etc/dnf/dnf.conf
TODO rename yum.service ?
* Fri Mar 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-8.sme * Fri Mar 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.6.2-8.sme
- disable brp-python-bytecompile [SME: 12511] - disable brp-python-bytecompile [SME: 12511]