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

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

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

Revision 1.1 by brianr, Wed Oct 7 09:57:10 2020 UTC Revision 1.9 by jcrisp, Thu Jun 30 14:37:18 2022 UTC
# Line 1  Line 1 
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 3.3.1
5  %define release 8  %define release 7
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>
# Line 11  Group: Applications/Archiving Line 11  Group: Applications/Archiving
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: perl-List-MoreUtils
27  Requires: rsync  Requires: rsync
28    
29  Patch1: smeserver-affa-fix-typo.patch  Patch1: smeserver-affa-add-some-systemd-support.patch
30  Patch2: smeserver-affa-fix-rise_RPMCheck_smb_diskusage.patch  Patch2: smeserver-affa-change-host-domain.patch
31  Patch3: smeserver-affa-fix-ssh-port.patch  Patch3: smeserver-affa-change_to_rsa_keys.patch
32  Patch4: smeserver-affa-fix-blanks-conf.patch  Patch4: smeserver-affa-update-ssh-keys-links.patch
33  Patch5: smeserver-affa-fix-imapfiles-find.patch  Patch5: smeserver-affa-fix-config-directory-name-spaces.patch
34  Patch6: smeserver-affa-fix-show-schedule.patch  Patch6: smeserver-affa-fix-reporting-error.patch
35    
36  %description  %description
37  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  
38    
39  %prep  %prep
40    rm -rf $RPM_BUILD_ROOT
41    
42  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
43  %patch1 -p1  %patch1 -p1
44  %patch2 -p1  %patch2 -p1
# Line 42  with SMEServer + RPMCheck + Watchdog + r Line 47  with SMEServer + RPMCheck + Watchdog + r
47  %patch5 -p1  %patch5 -p1
48  %patch6 -p1  %patch6 -p1
49    
50    
51  %build  %build
52    # perl createlinks << if required
53    find . \( -name .gitinclude -o -name .gitignore \) -print0 | \
54        xargs -0 rm -f
55    
56  %install  %install
 rm -rf $RPM_BUILD_ROOT  
 rm -f %{name}-%{version}-filelist  
 (cd root   ;find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  
57    
58    /bin/rm -rf $RPM_BUILD_ROOT
59    (cd root   ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
60    /bin/rm -f %{name}-%{version}-filelist
61    
62  # Set version String  # Set version String
63  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
# Line 56  VERSIONSTRING=%{version}-`echo %{release Line 65  VERSIONSTRING=%{version}-`echo %{release
65  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
66  rm -f $RPM_BUILD_ROOT/sbin/affa.tmp  rm -f $RPM_BUILD_ROOT/sbin/affa.tmp
67    
68  rm -f %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
69        --ignoredir "/etc/sudoers.d" \
70        --ignoredir "/etc/profile.d" \
71        --file "/etc/profile.d/affa.sh" "attr(0555,root,root)" \
72        --file "/etc/sudoers.d/affa" "attr(0440,root,root)" \
73        > %{name}-%{version}-filelist
74    
75    # We could use this for docs I guess - we should standardise this sort of thing
76    #%doc README LICENSE README
77    echo "%doc LICENSE COPYING README WARRANTY" >> %{name}-%{version}-filelist
78    
 find $RPM_BUILD_ROOT -depth -type f -print |\  
  sed -e "s@^$RPM_BUILD_ROOT@@g" \  
  -e "s@^/sbin/@%attr(0750,root,root) &@"\  
  -e "s@^/etc/profile.d/@%attr(0555,root,root) &@"\  
  -e "s@^/etc/sudoers.d/@%attr(0440,root,root) &@"\  
  -e "s@^/etc/cron.d/@%attr(0444,root,root)%config(noreplace) &@"\  
  -e "s@^/usr/lib/affa/LICENSE@%attr(0444,root,root) &@"\  
  -e "s@^/usr/lib/affa/WARRANTY@%attr(0444,root,root) &@"\  
  -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  
79    
80    
81  find $RPM_BUILD_ROOT -depth -type d -print |\  %files -f %{name}-%{version}-filelist
  sed -e "s@^$RPM_BUILD_ROOT@%dir @g" >> %{name}-%{version}-filelist  
   
 find $RPM_BUILD_ROOT -depth -type l -print |\  
  sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist  
82    
83  %clean  %clean
84  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
85    
 %files -f %{name}-%{version}-filelist  
 %defattr(-,root,root)  
   
86  %pre  %pre
87  exit 0  exit 0
88    
# Line 97  exit 0 Line 96  exit 0
96  exit 0  exit 0
97    
98  %changelog  %changelog
99    * Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-7
100    - Fix logging parse errors [SME:12084]
101    - Thanks to 'sti' for finding it
102    
103    * Thu Jun 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-6
104    - Fix error with files with spaces in names - Credit to Trevor Drake-Brockman [SME: 11784]
105    - Fix directory search - Credit to Trevor Drake-Brockman [SME: 11784]
106    
107    * Wed Sep 22 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-5
108    - Modify ssh key links [SME: 10783]
109    - Untidy the ssh commands so I can see them and tidy them more easily
110    
111    * Wed Sep 22 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-4
112    - Change ssh keys from DSA to RSA 4096 [SME: 10783]
113    - Fix missing /var/affa store dir
114    
115    * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-3.sme
116    - Fix some syntax errors. Migrate to using HostName/DomainName
117    
118    * Tue Sep 21 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-2.sme
119    - Add some systemd support [SME: 11024]
120    
121    * Mon Mar 29 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-1.sme
122    - Fix Warranty [SME: 11500]
123    - Fix Licence [SME: 11501]
124    - Remove atalk [SME: 11503]
125    
126    * Tue Mar 23 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.0-1.sme
127    - New version for Koozali SME v10 [SME: 11024]
128    - incorporated old patches
129    - tidied up some old git files
130    - Very Alpha - see bug for details
131    
132  * 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
133  - 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]
134    
# Line 158  exit 0 Line 190  exit 0
190    --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist    --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist
191    --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
192    --check-conncetions: allow jobs as arguments    --check-conncetions: allow jobs as arguments
193  * Sun Aug 29 2011 Michael Weinberger 3.1.2  * Mon Aug 29 2011 Michael Weinberger 3.1.2
194  - Bugfix: postJobCommand and postJobCommandRemote were not executed  - Bugfix: postJobCommand and postJobCommandRemote were not executed
195  * Sat Aug 13 2011 Michael Weinberger 3.1.1  * Sat Aug 13 2011 Michael Weinberger 3.1.1
196  - process state 'rsync interrupted' and 'dedup interrupted'  - process state 'rsync interrupted' and 'dedup interrupted'


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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