/[smecontribs]/rpms/smeserver-tftp-server/contribs10/smeserver-tftp-server-1.2-Add-Update-event-to-createlinks.patch
ViewVC logotype

Contents of /rpms/smeserver-tftp-server/contribs10/smeserver-tftp-server-1.2-Add-Update-event-to-createlinks.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Nov 9 16:39:09 2021 UTC (3 years ago) by brianr
Branch: MAIN
CVS Tags: smeserver-tftp-server-1_2-8_el7_sme, smeserver-tftp-server-1_2-10_el7_sme, smeserver-tftp-server-1_2-11_el7_sme, smeserver-tftp-server-1_2-12_el7_sme, smeserver-tftp-server-1_2-13_el7_sme, smeserver-tftp-server-1_2-9_el7_sme, smeserver-tftp-server--, HEAD
* Tue Nov 09 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-8.sme
- Add -update event and systemd files [SME: 11074]

1 diff -urN smeserver-tftp-server-1.2.old/createlinks smeserver-tftp-server-1.2/createlinks
2 --- smeserver-tftp-server-1.2.old/createlinks 2007-04-28 01:33:48.000000000 +0100
3 +++ smeserver-tftp-server-1.2/createlinks 2021-11-09 16:35:12.769174364 +0000
4 @@ -1,12 +1,31 @@
5 #!/usr/bin/perl -w
6 -
7 use esmith::Build::CreateLinks qw(:all);
8 use File::Basename;
9 use File::Path;
10 +# our event specific for updating with yum without reboot
11 +$event = 'smeserver-tftp-server-update';
12 +#add here the path to your templates needed to expand
13 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
14 +
15 +foreach my $file (qw(
16 + /etc/systemd/system-preset/49-koozali.preset
17 +))
18 +{
19 + templates2events( $file, $event );
20 +}
21 +#action needed in case we have a systemd unit
22 +event_link('systemd-default', $event, '10');
23 +event_link('systemd-reload', $event, '50');
24 +#action specific to this package
25 +#event_link('action', $event, '30');
26 +#services we need to restart
27 +safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/tftp");
28 +#and Server Manager panel link
29 +#panel_link('somefunction', 'manager');
30
31 -safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/tftpd");
32 -safe_symlink("restart", "root/etc/e-smith/events/tftpd-conf/services2adjust/tftpd");
33 -safe_symlink("/var/service/tftpd", "root/service/tftpd");
34 -service_link_enhanced("tftpd", "S85", "7");
35 -service_link_enhanced("tftpd", "K25", "0");
36 +#safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/tftpd");
37 +#safe_symlink("restart", "root/etc/e-smith/events/tftpd-conf/services2adjust/tftpd");
38 +#safe_symlink("/var/service/tftpd", "root/service/tftpd");
39 +#service_link_enhanced("tftpd", "S85", "7");
40 +#service_link_enhanced("tftpd", "K25", "0");
41 templates2events("/etc/hosts.allow", qw(tftpd-conf));
42 diff -urN smeserver-tftp-server-1.2.old/root/usr/lib/systemd/system/tftp.service.d/50koozali.conf smeserver-tftp-server-1.2/root/usr/lib/systemd/system/tftp.service.d/50koozali.conf
43 --- smeserver-tftp-server-1.2.old/root/usr/lib/systemd/system/tftp.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100
44 +++ smeserver-tftp-server-1.2/root/usr/lib/systemd/system/tftp.service.d/50koozali.conf 2021-11-09 16:34:29.080750329 +0000
45 @@ -0,0 +1,3 @@
46 +[Install]
47 +WantedBy=sme-server.target
48 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed