/[smecontribs]/rpms/smeserver-mxbackup/contribs10/smeserver-mxbackup.spec
ViewVC logotype

Contents of /rpms/smeserver-mxbackup/contribs10/smeserver-mxbackup.spec

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


Revision 1.2 - (show annotations) (download)
Fri Nov 11 15:58:25 2022 UTC (2 years ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mxbackup-0_3-2
Changes since 1.1: +6 -5 lines
* Fri Nov 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-2.sme
- apply local 2022-11-11 patch

1 Summary: MX Backup configuration panel for SME Server
2 %define name smeserver-mxbackup
3 Name: %{name}
4 %define version 0.3
5 %define release 2
6 Version: %{version}
7 Release: %{release}
8 License: GPL
9 Group: Networking/Daemons
10 Source: %{name}-%{version}.tar.gz
11 Patch0: smeserver-mxbackup-0.3-locale-2022-11-11.patch
12 Packager: Pascal Schirrmann <schirrms@schirrms.net>
13 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14 BuildRequires: e-smith-devtools
15 BuildArchitectures: noarch
16 Requires: smeserver-release >= 10
17 Requires: e-smith-email >= 5.6.0
18 Requires: e-smith-formmagick >= 2.6.0
19 Requires: e-smith-base
20 Requires: e-smith-qmail >= 2.6.0
21 AutoReqProv: no
22
23 %description
24 Adds a MX Backup Configuration panel to the SME server-manager.
25
26 %changelog
27 * Fri Nov 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-2.sme
28 - apply local 2022-11-11 patch
29
30 * Wed Aug 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme
31 - First import to Koozali SME v10 [SME: 12162]
32
33 * Tue Jan 28 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1.sme
34 - Update createlinks file
35 - Remove unnecessary apostrophe
36 - Updated readme
37 - Comment out debugging in pm file
38 - Updating for v9
39 - Dropped the UTF-8
40 - Modify the vendor_perl directory
41
42 * Sun Apr 20 2008 Pascal Schirrmann <schirrms@schirrms.net>
43 - This is a fork of smeserver-mxbackup, with utf-8 charset.
44 As long as the two versions will exist, the sequence number will stay the same.
45 I just increment the version number for the tracker.
46 [0.1.0-03]
47 * Wed Apr 26 2006 Pascal Schirrmann <schirrms@schirrms.net>
48 - Change default to host for any new creation
49 [0.1.0-02]
50 * Wed Apr 26 2006 Pascal Schirrmann <schirrms@schirrms.net>
51 - Fast port to SME 7 : a qpsmtpd configuration file need
52 to be altered to accept incoming mails for mx-backuped domains
53 [0.1.0-01]
54 * Tue May 11 2004 Pascal Schirrmann <schirrms@schirrms.net>
55 - New : if the MX-Backup server use a 'smart host' it
56 still use DNS for the 'MX-Backuped Domains'
57 [0.1.0-00]
58 * Thu Apr 22 2004 Pascal Schirrmann <schirrms@schirrms.net>
59 - Unable to set a domain containing a Zero !!!
60 [0.0.4-00]
61 * Mon Mar 08 2004 Pascal Schirrmann <schirrms@schirrms.net>
62 - This RPM can only work on SME 6.0 and later, adds a
63 require in the 'spec' file
64 [0.0.3-01]
65 * Sun Mar 07 2004 Pascal Schirrmann <schirrms@schirrms.net>
66 - Add some nice stuff, ligths and so on...
67 Sounds are awaited for a far future release ;-)
68 [0.0.3-00]
69 * Sat Mar 06 2004 Pascal Schirrmann <schirrms@schirrms.net>
70 - My database conception was not very 'SME-aware'
71 majors change in the database storage modes.
72 [0.0.2-00]
73 * Wed Mar 03 2004 Pascal Schirrmann <schirrms@schirrms.net>
74 - some cosmetics change on the package name to be nearer
75 of contribs.org naming systems
76 [0.0.1-01]
77 * Fri Feb 27 2004 Pascal Schirrmann <schirrms@schirrms.net>
78 - initial release
79 [0.0.1-00]
80
81 %prep
82 %setup
83 %patch0 -p1
84
85 %build
86 perl createlinks
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
91 rm -f e-smith-%{version}-filelist
92 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
93
94 %clean
95 cd ..
96 rm -rf %{name}-%{version}
97
98 %files -f %{name}-%{version}-filelist
99 %defattr(-,root,root)
100
101 %pre
102
103 %post
104 # SME 6 comes with a 'left panel cache' to improve the server panel display speed
105 # But I haven't found a nice way to update this cache
106 # So I chose to do this update here.
107 if [ -x /etc/e-smith/events/actions/navigation-conf ]
108 then
109 echo "Rebuilding Web Server Manager Left Panel Cache ... Can take up to a minute."
110 /etc/e-smith/events/actions/navigation-conf
111 echo "Done."
112 fi
113 if [ -x /etc/e-smith/events/actions/initialize-default-databases ]
114 then
115 echo "Setting defaults values in SME configuration database, if needed. Don't change any existing configuration."
116 /etc/e-smith/events/actions/initialize-default-databases
117 echo "Done."
118 fi
119 # regenerate the rcpthosts file, in case of an upgrade
120 # If this is a new install, this will change nothing, because
121 # status = disabled
122 echo "Regenerating the config file..."
123 /sbin/e-smith/expand-template /var/qmail/control/rcpthosts
124 /sbin/e-smith/expand-template /var/qmail/control/smtproutes
125 if [ -e /var/service/qpsmtpd/config/goodrcptto ]
126 then
127 /sbin/e-smith/expand-template /var/service/qpsmtpd/config/goodrcptto
128 fi
129 # moving 'light' in correct place.
130 # these lights cannot be installed by the RPM : in case someone
131 # installs the same lights, there will be a conflict.
132 /bin/mv -f /etc/e-smith/GreenLight.jpg /etc/e-smith/web/common/
133 /bin/mv -f /etc/e-smith/RedLight.jpg /etc/e-smith/web/common/
134 echo "Installation finished."
135
136 %preun
137
138 %postun
139 # rollback the rcpthosts without mxbackup entries
140 echo "Revert the system as a non MX Backup system."
141 /sbin/e-smith/expand-template /var/qmail/control/rcpthosts
142 /sbin/e-smith/expand-template /var/qmail/control/smtproutes
143 if [ -e /var/service/qpsmtpd/config/goodrcptto ]
144 then
145 /sbin/e-smith/expand-template /var/service/qpsmtpd/config/goodrcptto
146 fi

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