initial commit of file from CVS for e-smith-portforwarding on Wed 12 Jul 09:04:13 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:04:13 +01:00
parent e5466e0cdd
commit 4094d29da6
13 changed files with 1960 additions and 2 deletions

23
createlinks Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/perl -w
# 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);
#--------------------------------------------------
# functions for user panel
#--------------------------------------------------
my $panel = "manager";
panel_link("portforwarding", $panel);
my $event = "portforwarding-update";
templates2events("/etc/rc.d/init.d/masq", $event);
safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
my $event = "e-smith-portforwarding-update";
templates2events("/etc/rc.d/init.d/masq", $event);
safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");