1 |
Summary: A rsync-based backup program for linux, adapted to sme server 8-9 |
Summary: A rsync-based backup program for linux, adapted to Koozali SME server 10 |
2 |
%define name smeserver-affa |
%define name smeserver-affa |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 3.2.2.3 |
%define version 4.0 |
5 |
%define release 8 |
%define release 2 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
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> |
Vendor: Michael Weinberger <mweinber AT users DOT sourceforge DOT net> //// adaptation to sme-server Arnaud Guillaume <smeserver-affa AT guedel DOT eu> |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
|
BuildRequires: e-smith-devtools |
15 |
|
|
16 |
AutoReq: no |
AutoReq: no |
17 |
|
|
18 |
|
Requires: e-smith-release >= 10 |
19 |
|
Requires: smeserver-systemd-control |
20 |
Requires: openssh-clients |
Requires: openssh-clients |
21 |
Requires: perl-Config-IniFiles |
Requires: perl-Config-IniFiles |
22 |
Requires: perl-Filesys-DiskFree |
Requires: perl-Filesys-DiskFree |
23 |
Requires: perl-MailTools |
Requires: perl-MailTools |
24 |
Requires: perl-Proc-ProcessTable |
Requires: perl-Proc-ProcessTable |
25 |
Requires: perl-TimeDate |
Requires: perl-TimeDate |
26 |
Requires: rsync |
Requires: perl-List-MoreUtils |
27 |
|
Requires: rsync >= 3.1.2-11 |
28 |
|
|
29 |
|
|
30 |
Patch1: smeserver-affa-fix-typo.patch |
#Patch1: smeserver-affa-add-some-systemd-support.patch |
31 |
Patch2: smeserver-affa-fix-rise_RPMCheck_smb_diskusage.patch |
#Patch2: smeserver-affa-change-host-domain.patch |
32 |
Patch3: smeserver-affa-fix-ssh-port.patch |
#Patch3: smeserver-affa-change_to_rsa_keys.patch |
33 |
Patch4: smeserver-affa-fix-blanks-conf.patch |
#Patch4: smeserver-affa-update-ssh-keys-links.patch |
34 |
Patch5: smeserver-affa-fix-imapfiles-find.patch |
#Patch5: smeserver-affa-fix-config-directory-name-spaces.patch |
35 |
Patch6: smeserver-affa-fix-show-schedule.patch |
#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 |
|
|
41 |
%description |
%description |
42 |
Affa is a rsync-based backup program |
Affa is a rsync-based backup program for SMEServer + RPMCheck + Watchdog + rise. Documentation: http://affa.sf.net |
|
Documentation: http://affa.sf.net |
|
|
with SMEServer + RPMCheck + Watchdog + rise |
|
43 |
|
|
44 |
%prep |
%prep |
45 |
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
47 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
48 |
%patch1 -p1 |
#%patch1 -p1 |
49 |
%patch2 -p1 |
#%patch2 -p1 |
50 |
%patch3 -p1 |
#%patch3 -p1 |
51 |
%patch4 -p1 |
#%patch4 -p1 |
52 |
%patch5 -p1 |
#%patch5 -p1 |
53 |
%patch6 -p1 |
#%patch6 -p1 |
54 |
|
#%patch7 -p1 |
55 |
|
#%patch8 -p1 |
56 |
|
#%patch9 -p1 |
57 |
|
#%patch10 -p1 |
58 |
|
|
59 |
%build |
%build |
60 |
|
# perl createlinks << if required |
61 |
|
find . \( -name .gitinclude -o -name .gitignore \) -print0 | \ |
62 |
|
xargs -0 rm -f |
63 |
|
|
64 |
%install |
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
|
rm -f %{name}-%{version}-filelist |
|
|
(cd root ;find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
|
65 |
|
|
66 |
|
/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 |
|
|
70 |
# Set version String |
# Set version String |
71 |
cp -a $RPM_BUILD_ROOT/sbin/affa $RPM_BUILD_ROOT/sbin/affa.tmp |
cp -a $RPM_BUILD_ROOT/sbin/affa $RPM_BUILD_ROOT/sbin/affa.tmp |
73 |
sed -e "s/my \$VERSION.*;/my \$VERSION='$VERSIONSTRING';/" < $RPM_BUILD_ROOT/sbin/affa.tmp > $RPM_BUILD_ROOT/sbin/affa |
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 |
rm -f $RPM_BUILD_ROOT/sbin/affa.tmp |
75 |
|
|
76 |
rm -f %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
77 |
|
--ignoredir "/etc/sudoers.d" \ |
78 |
find $RPM_BUILD_ROOT -depth -type f -print |\ |
--ignoredir "/etc/profile.d" \ |
79 |
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
--file "/etc/profile.d/affa.sh" "attr(0555,root,root)" \ |
80 |
-e "s@^/sbin/@%attr(0750,root,root) &@"\ |
--file "/etc/sudoers.d/affa" "attr(0440,root,root)" \ |
81 |
-e "s@^/etc/profile.d/@%attr(0555,root,root) &@"\ |
> %{name}-%{version}-filelist |
82 |
-e "s@^/etc/sudoers.d/@%attr(0440,root,root) &@"\ |
|
83 |
-e "s@^/etc/cron.d/@%attr(0444,root,root)%config(noreplace) &@"\ |
# We could use this for docs I guess - we should standardise this sort of thing |
84 |
-e "s@^/usr/lib/affa/LICENSE@%attr(0444,root,root) &@"\ |
#%doc README LICENSE README |
85 |
-e "s@^/usr/lib/affa/WARRANTY@%attr(0444,root,root) &@"\ |
echo "%doc LICENSE COPYING README WARRANTY" >> %{name}-%{version}-filelist |
|
-e "s@^/usr/man/man1/@%attr(0444,root,root) &@"\ |
|
|
-e "s@^/etc/affa/scripts/@%attr(0750,root,root)%config(noreplace) &@"\ |
|
|
-e "s@^/etc/affa/@%attr(0640,root,root)%config(noreplace) &@"\ |
|
|
>> %{name}-%{version}-filelist |
|
86 |
|
|
87 |
|
|
|
find $RPM_BUILD_ROOT -depth -type d -print |\ |
|
|
sed -e "s@^$RPM_BUILD_ROOT@%dir @g" >> %{name}-%{version}-filelist |
|
88 |
|
|
89 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
%files -f %{name}-%{version}-filelist |
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
|
90 |
|
|
91 |
%clean |
%clean |
92 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
93 |
|
|
|
%files -f %{name}-%{version}-filelist |
|
|
%defattr(-,root,root) |
|
|
|
|
94 |
%pre |
%pre |
95 |
exit 0 |
exit 0 |
96 |
|
|
104 |
exit 0 |
exit 0 |
105 |
|
|
106 |
%changelog |
%changelog |
107 |
|
|
108 |
|
* Mon Sep 09 2024 John Crisp <jcrisp@safeandsoundit.co.uk> 4.0-2.sme |
109 |
|
- Various fixes for rise |
110 |
|
|
111 |
|
* 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 |
|
* 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 |
|
* Mon Jul 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-9 |
127 |
|
- Fix my syntax errors from [SME: 11784] |
128 |
|
|
129 |
|
* 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 |
|
* Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-7 |
134 |
|
- Fix logging parse errors [SME: 12084] |
135 |
|
- Thanks to 'sti' for finding it |
136 |
|
|
137 |
|
* 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 |
|
* 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 |
|
* 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 |
|
* 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 |
|
* Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-2.sme |
153 |
|
- Add some systemd support [SME: 11024] |
154 |
|
|
155 |
|
* 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 |
|
- 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 |
* Mon Apr 10 2017 Arnaud Guillaume <smeserver-affa@guedel.eu> 3.2.2.3-8.sme |
* 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] |
- Fix issue when multiple times are in an Affa configuration file, show-schedule only displays the last [SME: 10196] |
168 |
|
|
224 |
--send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist |
--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 |
--log-tail: show last rotated if current log is empty or too short |
226 |
--check-conncetions: allow jobs as arguments |
--check-conncetions: allow jobs as arguments |
227 |
* Sun Aug 29 2011 Michael Weinberger 3.1.2 |
* Mon Aug 29 2011 Michael Weinberger 3.1.2 |
228 |
- Bugfix: postJobCommand and postJobCommandRemote were not executed |
- Bugfix: postJobCommand and postJobCommandRemote were not executed |
229 |
* Sat Aug 13 2011 Michael Weinberger 3.1.1 |
* Sat Aug 13 2011 Michael Weinberger 3.1.1 |
230 |
- process state 'rsync interrupted' and 'dedup interrupted' |
- process state 'rsync interrupted' and 'dedup interrupted' |