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

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

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


Revision 1.6 - (show annotations) (download)
Thu Aug 18 23:29:56 2016 UTC (7 years, 9 months ago) by reetspetit
Branch: MAIN
CVS Tags: smeserver-affa-3_2_2_3-5_el6_sme
Changes since 1.5: +7 -1 lines
* Fri Aug 19 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 3.2.2.3-5.sme
- Fix ssh port [SME: 8904]
- Modify changelog number to track define release number

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

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