/[smecontribs]/rpms/smeserver-fetchmail/contribs10/smeserver-fetchmail-1.6-update_event_handling.patch
ViewVC logotype

Contents of /rpms/smeserver-fetchmail/contribs10/smeserver-fetchmail-1.6-update_event_handling.patch

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


Revision 1.1 - (show annotations) (download)
Tue Oct 27 11:43:54 2020 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-fetchmail-1_6-24_el7_sme, smeserver-fetchmail-1_6-18_el7_sme, smeserver-fetchmail-1_6-22_el7_sme, smeserver-fetchmail-1_6-21_el7_sme, smeserver-fetchmail-1_6-26_el7_sme, smeserver-fetchmail-1_6-25_el7_sme, smeserver-fetchmail-1_6-20_el7_sme, smeserver-fetchmail-1_6-23_el7_sme, smeserver-fetchmail-1_6-17_el7_sme, smeserver-fetchmail-1_6-16_el7_sme, smeserver-fetchmail-1_6-19_el7_sme, HEAD
Initial import

1 diff -Nur smeserver-fetchmail-1.6/createlinks smeserver-fetchmail-1.6_bz9185/createlinks
2 --- smeserver-fetchmail-1.6/createlinks 2015-02-06 10:41:14.000000000 +0100
3 +++ smeserver-fetchmail-1.6_bz9185/createlinks 2016-01-13 11:15:42.314561833 +0100
4 @@ -21,16 +21,19 @@
5 # an event launched if case of routing modification
6 #--------------------------------------------------
7
8 -event_link("conf-masq", "fetchmail-routing", "20");
9 -event_link("restart-masq", "fetchmail-routing", "50");
10 +templates2events("/etc/rc.d/init.d/masq", qw(fetchmail-routing));
11 +safe_symlink("adjust",
12 + "root/etc/e-smith/events/fetchmail-routing/services2adjust/masq");
13
14 #--------------------------------------------------
15 # an event launched if case of fetchmail conf change
16 #--------------------------------------------------
17
18 -event_link("conf-fetchmail-params-files", "fetchmail-change", "20");
19 +templates2events("/etc/fetchmail", qw(fetchmail-change));
20 +templates2events("/etc/crontab", qw(fetchmail-change));
21 +templates2events("/etc/startmail", qw(fetchmail-change));
22 +
23 event_link("fetchmail-email-group-adjust", "fetchmail-change", "30");
24 -event_link("email-assign", "fetchmail-change", "40");
25 event_link("conf-fetchmail-group-files", "fetchmail-change", "50");
26 safe_symlink("adjust",
27 "root/etc/e-smith/events/fetchmail-change/services2adjust/masq");
28 diff -Nur smeserver-fetchmail-1.6/root/etc/e-smith/events/actions/conf-fetchmail-params-files smeserver-fetchmail-1.6_bz9185/root/etc/e-smith/events/actions/conf-fetchmail-params-files
29 --- smeserver-fetchmail-1.6/root/etc/e-smith/events/actions/conf-fetchmail-params-files 2015-02-06 10:41:14.000000000 +0100
30 +++ smeserver-fetchmail-1.6_bz9185/root/etc/e-smith/events/actions/conf-fetchmail-params-files 1970-01-01 01:00:00.000000000 +0100
31 @@ -1,57 +0,0 @@
32 -#!/usr/bin/perl -w
33 -
34 -#----------------------------------------------------------------------
35 -# copyright (C) 1999, 2000 e-smith, inc.
36 -#
37 -# This program is free software; you can redistribute it and/or modify
38 -# it under the terms of the GNU General Public License as published by
39 -# the Free Software Foundation; either version 2 of the License, or
40 -# (at your option) any later version.
41 -#
42 -# This program is distributed in the hope that it will be useful,
43 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
44 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 -# GNU General Public License for more details.
46 -#
47 -# You should have received a copy of the GNU General Public License
48 -# along with this program; if not, write to the Free Software
49 -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
50 -#
51 -# Technical support for this program is available from e-smith, inc.
52 -# Please visit our web site www.e-smith.com for details.
53 -#----------------------------------------------------------------------
54 -
55 -package esmith;
56 -
57 -use strict;
58 -use Errno;
59 -use esmith::templates;
60 -
61 -# Now regenerate fetchmail
62 -esmith::templates::processTemplate (
63 - {
64 - TEMPLATE_PATH => "/etc/fetchmail",
65 - PERMS => 0500,
66 - UID => "qmailr",
67 - GID => "nofiles",
68 - } );
69 -
70 -# Now regenerate crontab
71 -esmith::templates::processTemplate (
72 - {
73 - TEMPLATE_PATH => "/etc/crontab",
74 - PERMS => 0644,
75 - UID => "root",
76 - GID => "root",
77 - } );
78 -
79 -# Now regenerate startmail
80 -esmith::templates::processTemplate (
81 - {
82 - TEMPLATE_PATH => "/etc/startmail",
83 - PERMS => 0700,
84 - UID => "root",
85 - GID => "daemon",
86 - } );
87 -
88 -exit (0);

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