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

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

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


Revision 1.14 - (hide annotations) (download)
Mon Sep 9 12:14:26 2024 UTC (2 months, 2 weeks ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-affa--
Changes since 1.13: +5 -1 lines
Update source to version J

1 jcrisp 1.2 Summary: A rsync-based backup program for linux, adapted to Koozali SME server 10
2 brianr 1.1 %define name smeserver-affa
3     Name: %{name}
4 jcrisp 1.13 %define version 4.0
5 jcrisp 1.14 %define release
6 brianr 1.1 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 jcrisp 1.2 BuildRequires: e-smith-devtools
15    
16 brianr 1.1 AutoReq: no
17    
18 jcrisp 1.2 Requires: e-smith-release >= 10
19 jcrisp 1.4 Requires: smeserver-systemd-control
20 brianr 1.1 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 jcrisp 1.2 Requires: perl-List-MoreUtils
27 jcrisp 1.13 Requires: rsync >= 3.1.2-11
28 brianr 1.1
29 jcrisp 1.13
30     #Patch1: smeserver-affa-add-some-systemd-support.patch
31     #Patch2: smeserver-affa-change-host-domain.patch
32     #Patch3: smeserver-affa-change_to_rsa_keys.patch
33     #Patch4: smeserver-affa-update-ssh-keys-links.patch
34     #Patch5: smeserver-affa-fix-config-directory-name-spaces.patch
35     #Patch6: smeserver-affa-fix-reporting-error.patch
36     #Patch7: smeserver-affa-fix-ssh-knownhosts-error.patch
37     #Patch8: smeserver-affa-fix-reporting-error-syntax.patch
38     #Patch9: smeserver-affa-fix-reporting-error-2.patch
39     #Patch10: smeserver-affa-fix-reporting-error-3.patch
40 brianr 1.1
41     %description
42 jcrisp 1.2 Affa is a rsync-based backup program for SMEServer + RPMCheck + Watchdog + rise. Documentation: http://affa.sf.net
43 brianr 1.1
44     %prep
45 jcrisp 1.2 rm -rf $RPM_BUILD_ROOT
46    
47 brianr 1.1 %setup -q -n %{name}-%{version}
48 jcrisp 1.13 #%patch1 -p1
49     #%patch2 -p1
50     #%patch3 -p1
51     #%patch4 -p1
52     #%patch5 -p1
53     #%patch6 -p1
54     #%patch7 -p1
55     #%patch8 -p1
56     #%patch9 -p1
57     #%patch10 -p1
58 brianr 1.1
59     %build
60 jcrisp 1.2 # perl createlinks << if required
61     find . \( -name .gitinclude -o -name .gitignore \) -print0 | \
62     xargs -0 rm -f
63 brianr 1.1
64     %install
65    
66 jcrisp 1.2 /bin/rm -rf $RPM_BUILD_ROOT
67     (cd root ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
68     /bin/rm -f %{name}-%{version}-filelist
69 brianr 1.1
70     # Set version String
71     cp -a $RPM_BUILD_ROOT/sbin/affa $RPM_BUILD_ROOT/sbin/affa.tmp
72     VERSIONSTRING=%{version}-`echo %{release}|sed -e 's/\..*$//'`
73     sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/affa.tmp > $RPM_BUILD_ROOT/sbin/affa
74     rm -f $RPM_BUILD_ROOT/sbin/affa.tmp
75    
76 jcrisp 1.2 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
77     --ignoredir "/etc/sudoers.d" \
78     --ignoredir "/etc/profile.d" \
79     --file "/etc/profile.d/affa.sh" "attr(0555,root,root)" \
80     --file "/etc/sudoers.d/affa" "attr(0440,root,root)" \
81     > %{name}-%{version}-filelist
82 brianr 1.1
83 jcrisp 1.2 # We could use this for docs I guess - we should standardise this sort of thing
84     #%doc README LICENSE README
85 jcrisp 1.3 echo "%doc LICENSE COPYING README WARRANTY" >> %{name}-%{version}-filelist
86    
87    
88    
89     %files -f %{name}-%{version}-filelist
90 brianr 1.1
91     %clean
92     rm -rf $RPM_BUILD_ROOT
93    
94     %pre
95     exit 0
96    
97     %post
98     exit 0
99    
100     %preun
101     exit 0
102    
103     %postun
104     exit 0
105    
106     %changelog
107 jcrisp 1.14
108     * Mon Sep 09 2024 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0-2.sme
109     - Various fixes for rise
110    
111 jcrisp 1.13 * Fri Apr 21 2023 John Crisp <jcrisp@safeandsoundit.co.uk>4.0-1.sme
112     - Update to v4
113     - Accomodate latest rsync to user@i.p.ad.dress:// format
114     - Rewrite the include and exclude routines
115     - Fix multiple small bugs
116     - Fix restore of selected backup or rise e.g daily.3 or monthly.1
117     - Add --cli-debug option
118     - Add --link-dest check in rise
119    
120 jcrisp 1.12 * Tue Jul 05 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-11
121     - Update Regex to help clean out rsyncd.motd messages [SME: 12084]
122    
123     * Mon Jul 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-10
124     - Redo patch at -8 to fix the next if syntax [SME: 12084]
125    
126 jcrisp 1.11 * Mon Jul 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-9
127 jcrisp 1.12 - Fix my syntax errors from [SME: 11784]
128 jcrisp 1.11
129 jcrisp 1.10 * Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-8
130     - Fix KnownHosts error [SME: 12081]
131     - Thanks to 'gieres' for finding this
132    
133 jcrisp 1.9 * Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-7
134 jcrisp 1.12 - Fix logging parse errors [SME: 12084]
135 jcrisp 1.9 - Thanks to 'sti' for finding it
136    
137 jcrisp 1.8 * Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-6
138     - Fix error with files with spaces in names - Credit to Trevor Drake-Brockman [SME: 11784]
139     - Fix directory search - Credit to Trevor Drake-Brockman [SME: 11784]
140    
141 jcrisp 1.7 * Wed Sep 22 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-5
142     - Modify ssh key links [SME: 10783]
143     - Untidy the ssh commands so I can see them and tidy them more easily
144    
145 jcrisp 1.6 * Wed Sep 22 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-4
146     - Change ssh keys from DSA to RSA 4096 [SME: 10783]
147     - Fix missing /var/affa store dir
148    
149 jcrisp 1.5 * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-3.sme
150     - Fix some syntax errors. Migrate to using HostName/DomainName
151    
152 jcrisp 1.4 * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-2.sme
153     - Add some systemd support [SME: 11024]
154    
155 jcrisp 1.3 * Mon Mar 29 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-1.sme
156     - Fix Warranty [SME: 11500]
157     - Fix Licence [SME: 11501]
158     - Remove atalk [SME: 11503]
159    
160     * Tue Mar 23 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.0-1.sme
161 jcrisp 1.2 - New version for Koozali SME v10 [SME: 11024]
162     - incorporated old patches
163     - tidied up some old git files
164     - Very Alpha - see bug for details
165    
166 brianr 1.1 * Mon Apr 10 2017 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-8.sme
167     - Fix issue when multiple times are in an Affa configuration file, show-schedule only displays the last [SME: 10196]
168    
169     * Wed Nov 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-7.sme
170     - Fix find command error in delete imap dovecot files [SME: 9874]
171    
172     * Fri Aug 19 2016 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-6.sme
173     - Fix issue due to blank characters into file /etc/affa/job.conf [SME: 9449]
174    
175     * Fri Aug 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-5.sme
176     - Fix ssh port [SME: 8904]
177     - Modify changelog number to track define release number
178    
179     * Wed Mar 23 2016 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-4.sme
180     - Fix use of uninitialized value $1 in concatentation (.) or string at /sbin/affa/ line 4059 [SME: 9139]
181     - Fix "RPMCheck" not working [SME: 9270]
182     - Fix Inconsistent smb.conf when samba share option set to "yes" [SME: 9298]
183     - Fix affa --diskusage does not umount attached storage [SME: 9147]
184    
185     * Mon Feb 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-3.sme
186     - Fix typos in config files [SME: 9094]
187    
188     * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.2.3-2.sme
189     - Initial release to contribs9
190    
191     * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.2.3-1
192     - fixed column ExecTime shift
193     - Adjusted column indices in report
194     - Fixed typo in remoteHostName [SME: 9062]
195     - Code done by mats schuh <m.schuh@neckargeo.net>
196    
197     * Tue Jan 13 2015 mats schuh <m.schuh@neckargeo.net> 3.2.2.2-1
198     - Added TotalBytesSent to archive reports and fixed report layout
199    
200     * Sun Dec 07 2014 Arnaud Guillaume 3.2.2.2
201     - integration of the patch of Mats Schuh in order to enable check for external disk label before unmount
202     * Sat Aug 23 2014 Arnaud Guillaume 3.2.2.1
203     - adapted to the new release of rsync (bug by calculating the number and the size of the transfered files)
204     * Sat Apr 05 2014 Arnaud Guillaume 3.2.2.0
205     - first adaptation for sme server8
206     * Sun Mar 04 2012 Michael Weinberger 3.2.2
207     - Improved NRPE and sudoers config
208     - Fixed bug in DiskUsageRaw()
209     - Added NRPE command affa_diskusagenrpe
210     * Fri Mar 02 2012 Michael Weinberger 3.2.1
211     - Bugfix: command_prefix definiton was not added to /etc/nagios/affa-nrpe.cfg
212     * Thu Mar 01 2012 Michael Weinberger 3.2.0
213     - Bugfix: remoteRsyncBinary and localRsyncBinary was not used
214     * Sun Feb 26 2012 Michael Weinberger 3.1.7
215     - Bugfixes in showSchedule()
216     * Sun Feb 26 2012 Michael Weinberger 3.1.6
217     - added ICINGA/Nagios auto-configuration
218     * Fri Feb 24 2012 Michael Weinberger 3.1.4
219     - do not show Dedup interrupted in --status after the very first run
220     - improved --nrpe function
221     - added script yum_install_packages.sh
222     * Tue Oct 11 2011 Michael Weinberger 3.1.3
223     - MINOR IMPROVEMENTS
224     --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist
225     --log-tail: show last rotated if current log is empty or too short
226     --check-conncetions: allow jobs as arguments
227 jcrisp 1.2 * Mon Aug 29 2011 Michael Weinberger 3.1.2
228 brianr 1.1 - Bugfix: postJobCommand and postJobCommandRemote were not executed
229     * Sat Aug 13 2011 Michael Weinberger 3.1.1
230     - process state 'rsync interrupted' and 'dedup interrupted'
231     - --resume-interrupted
232     - resume interrupted jobs after server boot
233     * Sun Aug 07 2011 Michael Weinberger 3.1.0-1
234     - introduced status 'interrupted'(with --status)
235     * Fri Aug 05 2011 Michael Weinberger 3.1.0-0
236     - Release of 3.1.0
237     * Thu Aug 04 2011 Michael Weinberger 3.0.2-14
238     - de-duplicate, execPreJobCommand and execPostJobCommand only on scheduled run
239     - removed Command arg from sample scripts
240     - Fixed: Concatenated config in /tmp was world readable
241     - De-duplication info added to --show-schedule
242     * Tue Aug 02 2011 Michael Weinberger 3.0.2-6
243     - De-Duplication (freedup)
244     - De-Dup info in --status and --list-archives
245     - --status: only show enabled jobs. All with --all
246     - Fix: property globalStatus was not working
247     - Running state rsync or de-deduplicating display in --status
248     - Show de-deduplicating busy in --list-archives for scheduled.0
249     - new property dedupKill. When set no, --kill does not kill a job when de-duplicating
250     - new option --show-property
251    
252     * Wed Jul 27 2011 Michael Weinberger 3.0.1-7
253     - Bug fixes: RemoteUser was not always used in ssh commands
254    
255     * Sun Jul 24 2011 Michael Weinberger 3.0.1-6
256     - fixed bug in affa --status
257     - GlobalAffaConfig was mounted as Samba share
258     - call setupSamba() only in cronSetup()
259     - updated man
260    
261     * Sat Jul 23 2011 Michael Weinberger 3.0.1-5
262     - new key NRPEtrigger
263     - full affa path required when starting re-run from cronjob
264     - improved deletion of shift out archives, --delete-job and --cleanup
265     - added --single-transaction to /etc/affa/scripts/mysql-dump-tables
266    
267     * Wed Jul 20 2011 Michael Weinberger 3.0.0-0
268     - generic linux version made from Affa 2.0 (SME Version)
269    
270     * Mon Apr 02 2007 Michael Weinberger
271     - bash version re-written in Perl
272    

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