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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Aug 31 15:23:04 2022 UTC (2 years, 2 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-mxbackup-0_3-1
Initial import smeserver-mxbackup

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

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