/[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.6 - (show annotations) (download)
Wed Sep 22 12:01:20 2021 UTC (3 years, 2 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-affa-3_3_1-4_el7_sme
Changes since 1.5: +7 -1 lines
Move ot using RSA keys

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

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