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

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

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


Revision 1.5 - (show annotations) (download)
Tue Sep 21 15:59:34 2021 UTC (3 years, 2 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-affa-3_3_1-3_el7_sme
Changes since 1.4: +6 -1 lines
* Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-3.sme
- Fix some syntax errors. Migrate to using HostName/DomainName

1 Summary: A rsync-based backup program for linux, adapted to Koozali SME server 10
2 %define name smeserver-affa
3 Name: %{name}
4 %define version 3.3.1
5 %define release 3
6 Version: %{version}
7 Release: %{release}%{?dist}
8 Vendor: Michael Weinberger <mweinber AT users DOT sourceforge DOT net> //// adaptation to sme-server Arnaud Guillaume <smeserver-affa AT guedel DOT eu>
9 License: GNU General Public License
10 Group: Applications/Archiving
11 Source: %{name}-%{version}.tar.gz
12 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
13 BuildArch: noarch
14 BuildRequires: e-smith-devtools
15
16 AutoReq: no
17
18 Requires: e-smith-release >= 10
19 Requires: smeserver-systemd-control
20 Requires: openssh-clients
21 Requires: perl-Config-IniFiles
22 Requires: perl-Filesys-DiskFree
23 Requires: perl-MailTools
24 Requires: perl-Proc-ProcessTable
25 Requires: perl-TimeDate
26 Requires: perl-List-MoreUtils
27 Requires: rsync
28
29 Patch1: smeserver-affa-add-some-systemd-support.patch
30 Patch2: smeserver-affa-change-host-domain.patch
31
32 %description
33 Affa is a rsync-based backup program for SMEServer + RPMCheck + Watchdog + rise. Documentation: http://affa.sf.net
34
35 %prep
36 rm -rf $RPM_BUILD_ROOT
37
38 %setup -q -n %{name}-%{version}
39 %patch1 -p1
40 %patch2 -p1
41
42 %build
43 # perl createlinks << if required
44 find . \( -name .gitinclude -o -name .gitignore \) -print0 | \
45 xargs -0 rm -f
46
47 %install
48
49 /bin/rm -rf $RPM_BUILD_ROOT
50 (cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
51 /bin/rm -f %{name}-%{version}-filelist
52
53 # Set version String
54 cp -a $RPM_BUILD_ROOT/sbin/affa $RPM_BUILD_ROOT/sbin/affa.tmp
55 VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`
56 sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/affa.tmp > $RPM_BUILD_ROOT/sbin/affa
57 rm -f $RPM_BUILD_ROOT/sbin/affa.tmp
58
59 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
60 --ignoredir "/etc/sudoers.d" \
61 --ignoredir "/etc/profile.d" \
62 --file "/etc/profile.d/affa.sh" "attr(0555,root,root)" \
63 --file "/etc/sudoers.d/affa" "attr(0440,root,root)" \
64 > %{name}-%{version}-filelist
65
66 # We could use this for docs I guess - we should standardise this sort of thing
67 #%doc README LICENSE README
68 echo "%doc LICENSE COPYING README WARRANTY" >> %{name}-%{version}-filelist
69
70
71
72 %files -f %{name}-%{version}-filelist
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %pre
78 exit 0
79
80 %post
81 exit 0
82
83 %preun
84 exit 0
85
86 %postun
87 exit 0
88
89 %changelog
90 * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-3.sme
91 - Fix some syntax errors. Migrate to using HostName/DomainName
92
93 * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-2.sme
94 - Add some systemd support [SME: 11024]
95
96 * Mon Mar 29 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-1.sme
97 - Fix Warranty [SME: 11500]
98 - Fix Licence [SME: 11501]
99 - Remove atalk [SME: 11503]
100
101 * Tue Mar 23 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.0-1.sme
102 - New version for Koozali SME v10 [SME: 11024]
103 - incorporated old patches
104 - tidied up some old git files
105 - Very Alpha - see bug for details
106
107 * Mon Apr 10 2017 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-8.sme
108 - Fix issue when multiple times are in an Affa configuration file, show-schedule only displays the last [SME: 10196]
109
110 * Wed Nov 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-7.sme
111 - Fix find command error in delete imap dovecot files [SME: 9874]
112
113 * Fri Aug 19 2016 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-6.sme
114 - Fix issue due to blank characters into file /etc/affa/job.conf [SME: 9449]
115
116 * Fri Aug 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-5.sme
117 - Fix ssh port [SME: 8904]
118 - Modify changelog number to track define release number
119
120 * Wed Mar 23 2016 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-4.sme
121 - Fix use of uninitialized value $1 in concatentation (.) or string at /sbin/affa/ line 4059 [SME: 9139]
122 - Fix "RPMCheck" not working [SME: 9270]
123 - Fix Inconsistent smb.conf when samba share option set to "yes" [SME: 9298]
124 - Fix affa --diskusage does not umount attached storage [SME: 9147]
125
126 * Mon Feb 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-3.sme
127 - Fix typos in config files [SME: 9094]
128
129 * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.2.3-2.sme
130 - Initial release to contribs9
131
132 * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.2.3-1
133 - fixed column ExecTime shift
134 - Adjusted column indices in report
135 - Fixed typo in remoteHostName [SME: 9062]
136 - Code done by mats schuh <m.schuh@neckargeo.net>
137
138 * Tue Jan 13 2015 mats schuh <m.schuh@neckargeo.net> 3.2.2.2-1
139 - Added TotalBytesSent to archive reports and fixed report layout
140
141 * Sun Dec 07 2014 Arnaud Guillaume 3.2.2.2
142 - integration of the patch of Mats Schuh in order to enable check for external disk label before unmount
143 * Sat Aug 23 2014 Arnaud Guillaume 3.2.2.1
144 - adapted to the new release of rsync (bug by calculating the number and the size of the transfered files)
145 * Sat Apr 05 2014 Arnaud Guillaume 3.2.2.0
146 - first adaptation for sme server8
147 * Sun Mar 04 2012 Michael Weinberger 3.2.2
148 - Improved NRPE and sudoers config
149 - Fixed bug in DiskUsageRaw()
150 - Added NRPE command affa_diskusagenrpe
151 * Fri Mar 02 2012 Michael Weinberger 3.2.1
152 - Bugfix: command_prefix definiton was not added to /etc/nagios/affa-nrpe.cfg
153 * Thu Mar 01 2012 Michael Weinberger 3.2.0
154 - Bugfix: remoteRsyncBinary and localRsyncBinary was not used
155 * Sun Feb 26 2012 Michael Weinberger 3.1.7
156 - Bugfixes in showSchedule()
157 * Sun Feb 26 2012 Michael Weinberger 3.1.6
158 - added ICINGA/Nagios auto-configuration
159 * Fri Feb 24 2012 Michael Weinberger 3.1.4
160 - do not show Dedup interrupted in --status after the very first run
161 - improved --nrpe function
162 - added script yum_install_packages.sh
163 * Tue Oct 11 2011 Michael Weinberger 3.1.3
164 - MINOR IMPROVEMENTS
165 --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist
166 --log-tail: show last rotated if current log is empty or too short
167 --check-conncetions: allow jobs as arguments
168 * Mon Aug 29 2011 Michael Weinberger 3.1.2
169 - Bugfix: postJobCommand and postJobCommandRemote were not executed
170 * Sat Aug 13 2011 Michael Weinberger 3.1.1
171 - process state 'rsync interrupted' and 'dedup interrupted'
172 - --resume-interrupted
173 - resume interrupted jobs after server boot
174 * Sun Aug 07 2011 Michael Weinberger 3.1.0-1
175 - introduced status 'interrupted'(with --status)
176 * Fri Aug 05 2011 Michael Weinberger 3.1.0-0
177 - Release of 3.1.0
178 * Thu Aug 04 2011 Michael Weinberger 3.0.2-14
179 - de-duplicate, execPreJobCommand and execPostJobCommand only on scheduled run
180 - removed Command arg from sample scripts
181 - Fixed: Concatenated config in /tmp was world readable
182 - De-duplication info added to --show-schedule
183 * Tue Aug 02 2011 Michael Weinberger 3.0.2-6
184 - De-Duplication (freedup)
185 - De-Dup info in --status and --list-archives
186 - --status: only show enabled jobs. All with --all
187 - Fix: property globalStatus was not working
188 - Running state rsync or de-deduplicating display in --status
189 - Show de-deduplicating busy in --list-archives for scheduled.0
190 - new property dedupKill. When set no, --kill does not kill a job when de-duplicating
191 - new option --show-property
192
193 * Wed Jul 27 2011 Michael Weinberger 3.0.1-7
194 - Bug fixes: RemoteUser was not always used in ssh commands
195
196 * Sun Jul 24 2011 Michael Weinberger 3.0.1-6
197 - fixed bug in affa --status
198 - GlobalAffaConfig was mounted as Samba share
199 - call setupSamba() only in cronSetup()
200 - updated man
201
202 * Sat Jul 23 2011 Michael Weinberger 3.0.1-5
203 - new key NRPEtrigger
204 - full affa path required when starting re-run from cronjob
205 - improved deletion of shift out archives, --delete-job and --cleanup
206 - added --single-transaction to /etc/affa/scripts/mysql-dump-tables
207
208 * Wed Jul 20 2011 Michael Weinberger 3.0.0-0
209 - generic linux version made from Affa 2.0 (SME Version)
210
211 * Mon Apr 02 2007 Michael Weinberger
212 - bash version re-written in Perl
213

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