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

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

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


Revision 1.9 - (hide annotations) (download)
Wed Nov 23 17:13:22 2016 UTC (8 years ago) by reetspetit
Branch: MAIN
CVS Tags: smeserver-affa-3_2_2_3-7_el6_sme
Changes since 1.8: +1 -1 lines
* Wed Nov 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-7.sme
- Fix find command error in delete imap dovecot files [SME: 9874]

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

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