initial commit of file from CVS for smeserver-yum on Thu 26 Oct 11:26:23 BST 2023

This commit is contained in:
2023-10-26 11:26:23 +01:00
parent b6e325dc61
commit 2302f71017
189 changed files with 4126 additions and 2 deletions

37
createlinks Executable file
View File

@@ -0,0 +1,37 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
use File::Basename;
use File::Path;
foreach my $file (qw(/etc/yum.conf /etc/yum/protected.d/smeserver.conf
/etc/yum.smerepos.d/sme-base.repo /etc/yum/yum-cron.conf))
{
templates2events($file, qw(yum-modify bootstrap-console-save smeserver-yum-update));
}
templates2events("/etc/crontab", "yum-modify");
for ( qw(install remove update) )
{
event_link("yum-action", "yum-$_", "20");
}
safe_symlink("restart", "root/etc/e-smith/events/yum-modify/services2adjust/yum");
for ( qw(bootstrap-console-save yum-update smeserver-yum-update) )
{
event_link("yum-import-keys", $_, "10");
}
my $event= "smeserver-yum-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
#--------------------------------------------------
# functions for manager panel
#--------------------------------------------------
panel_link("yum", "manager");