initial commit of file from CVS for e-smith-openssh on Thu Jul 13 12:50:02 AEST 2023

This commit is contained in:
Trevor Batley
2023-07-13 12:50:02 +10:00
parent 0990ad9bc0
commit 5b637d96ad
90 changed files with 2123 additions and 2 deletions

58
createlinks Executable file
View File

@@ -0,0 +1,58 @@
#!/usr/bin/perl -w
use strict;
use esmith::Build::CreateLinks qw(:all);
foreach (qw(
/etc/ssh/sshd_config
/etc/ssh/ssh_config
))
{
templates2events("$_", qw(
console-save
bootstrap-console-save
remoteaccess-update
e-smith-openssh-update
));
}
foreach (qw(
/etc/rssh.conf
))
{
templates2events("$_", qw(
bootstrap-console-save
password-modify
remoteaccess-update
user-lock
user-create
user-delete
user-modify
e-smith-openssh-update
));
}
foreach my $event (
"console-save",
"bootstrap-console-save",
"remoteaccess-update",
"e-smith-openssh-update"
)
{
event_link("sshd-conf", $event, "65");
}
foreach my $event (
"console-save",
"remoteaccess-update")
{
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/sshd");
}
my $event="e-smith-openssh-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/sshd");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");