Changes

From SME Server
Jump to navigationJump to search
Line 182: Line 182:  
  }
 
  }
    +
==== Example : smeserver-yum ====
 +
#!/usr/bin/perl -w
 +
 +
use esmith::Build::CreateLinks qw(:all);
 +
use File::Basename;
 +
use File::Path;
 +
 +
foreach my $file (qw(/etc/yum.conf))
 +
{
 +
    templates2events($file, qw(yum-modify bootstrap-console-save));
 +
}
 +
 +
templates2events("/etc/crontab", "yum-modify");
 +
 +
for ( qw(install remove update) )
 +
{
 +
    event_link("yum-action", "yum-$_", "20");
 +
    event_link("initialize-default-databases", "yum-$_", "50");
 +
    event_link("navigation-conf", "yum-$_", "80");
 +
}
 +
 +
for ( qw(install remove update modify) )
 +
{
 +
    event_link("yum-update-dbs", "yum-$_", "90");
 +
}
 +
 +
for ( qw(bootstrap-console-save yum-update) )
 +
{
 +
    event_link("yum-import-keys", $_, "10");
 +
}
 +
 +
safe_symlink("once", "root/etc/e-smith/events/local/services2adjust/yum");
 +
 +
#--------------------------------------------------
 +
# functions for manager panel
 +
#--------------------------------------------------
 +
panel_link("yum", "manager");
 
[[Category:SME Server Development Framework]]
 
[[Category:SME Server Development Framework]]
 
[[Category:Development Tools]]
 
[[Category:Development Tools]]
 
[[Category:SME9-Development]]
 
[[Category:SME9-Development]]

Navigation menu