diff -Nur --no-dereference smeserver-mod_deflate-1.2.old/createlinks smeserver-mod_deflate-1.2/createlinks --- smeserver-mod_deflate-1.2.old/createlinks 2005-12-30 01:00:46.000000000 -0500 +++ smeserver-mod_deflate-1.2/createlinks 2021-04-02 15:41:52.700000000 -0400 @@ -1,51 +1,11 @@ #!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + # 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 -sub panel_link -{ - my ($function, $panel) = @_; - - unlink "root/etc/e-smith/web/panels/$panel/cgi-bin/$function"; - symlink("../../../functions/$function", - "root/etc/e-smith/web/panels/$panel/cgi-bin/$function") - or die "Can't symlink to root/etc/e-smith/web/panels/$panel". - "/cgi-bin/$function: $!"; -} - -sub event_link -{ - my ($action, $event, $level) = @_; - - unlink "root/etc/e-smith/events/${event}/S${level}${action}"; - symlink("../actions/${action}", - "root/etc/e-smith/events/${event}/S${level}${action}") - or die "Can't symlink to " . - "root/etc/e-smith/events/${event}/S${level}${action}: $!"; -} - -#-------------------------------------------------- -# functions for manager panel -#-------------------------------------------------- -my $panel = "manager"; - -#panel_link("function1", $panel); -#panel_link("function2", $panel); - -#-------------------------------------------------- -# actions for console-save event: -#-------------------------------------------------- -$event = "console-save"; - -#event_link("action1", $event, "55"); -#event_link("action2", $event, "60"); - -#-------------------------------------------------- -# actions for domain-create event: -#-------------------------------------------------- -$event = "domain-create"; - -#event_link("action1", $event, "55"); -#event_link("action2", $event, "90"); - +$event = "smeserver-mod_deflate-update"; +safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); +templates2events("/etc/httpd-e-smith/conf/httpd.conf", $event); diff -Nur --no-dereference smeserver-mod_deflate-1.2.old/root/etc/logrotate.d/modDeflate smeserver-mod_deflate-1.2/root/etc/logrotate.d/modDeflate --- smeserver-mod_deflate-1.2.old/root/etc/logrotate.d/modDeflate 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-mod_deflate-1.2/root/etc/logrotate.d/modDeflate 2021-04-02 15:37:38.157000000 -0400 @@ -0,0 +1,11 @@ +/var/log/httpd/deflate_log { + missingok + daily + size 1M + rotate 10 + compress + notifempty + copytruncate + +} +