diff -urN smeserver-print-monitor-0.0.7.old/createlinks smeserver-print-monitor-0.0.7/createlinks --- smeserver-print-monitor-0.0.7.old/createlinks 2009-09-18 13:49:30.000000000 +0100 +++ smeserver-print-monitor-0.0.7/createlinks 2021-03-28 12:42:47.387517725 +0100 @@ -1,11 +1,32 @@ #!/usr/bin/perl -w +use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = 'smeserver-print-monitor-update'; +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event + +foreach my $file (qw( + /etc/systemd/system-preset/49-koozali.preset + /etc/httpd/conf/httpd.conf +)) +{ + templates2events( $file, $event ); +} +#action needed in case we have a systemd unit +event_link('systemd-default', $event, '10'); +event_link('systemd-reload', $event, '50'); +#action specific to this package +#event_link('action', $event, '30'); +#services we need to restart +safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); +#and Server Manager panel link +#panel_link('somefunction', 'manager'); + + # This script creates the symlinks needed by this RPM # Specific support exists to create symlinks within e-smith web "panels" # and for links from named "events" directories into the "actions" directory -use esmith::Build::CreateLinks qw(:all); -my $event; - panel_link("LPRng", 'manager'); safe_symlink("../../cgi-bin/lpinfo", "root/var/www/html/LPRng/admin/cgi-bin/lpinfo");