/[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.2 by jcrisp, Tue Mar 23 14:27:50 2021 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.0
5  %define release 8  %define release 1
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: openssh-clients  Requires: openssh-clients
20  Requires: perl-Config-IniFiles  Requires: perl-Config-IniFiles
21  Requires: perl-Filesys-DiskFree  Requires: perl-Filesys-DiskFree
22  Requires: perl-MailTools  Requires: perl-MailTools
23  Requires: perl-Proc-ProcessTable  Requires: perl-Proc-ProcessTable
24  Requires: perl-TimeDate  Requires: perl-TimeDate
25    Requires: perl-List-MoreUtils
26  Requires: rsync  Requires: rsync
27    
28  Patch1: smeserver-affa-fix-typo.patch  #Patch1: smeserver-affa-something.patch
 Patch2: smeserver-affa-fix-rise_RPMCheck_smb_diskusage.patch  
 Patch3: smeserver-affa-fix-ssh-port.patch  
 Patch4: smeserver-affa-fix-blanks-conf.patch  
 Patch5: smeserver-affa-fix-imapfiles-find.patch  
 Patch6: smeserver-affa-fix-show-schedule.patch  
29    
30  %description  %description
31  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  
32    
33  %prep  %prep
34    rm -rf $RPM_BUILD_ROOT
35    
36  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
37  %patch1 -p1  #%patch1 -p1
 %patch2 -p1  
 %patch3 -p1  
 %patch4 -p1  
 %patch5 -p1  
 %patch6 -p1  
38    
39  %build  %build
40    # perl createlinks << if required
41    find . \( -name .gitinclude -o -name .gitignore \) -print0 | \
42        xargs -0 rm -f
43    
44  %install  %install
 rm -rf $RPM_BUILD_ROOT  
 rm -f %{name}-%{version}-filelist  
 (cd root   ;find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  
45    
46    /bin/rm -rf $RPM_BUILD_ROOT
47    (cd root   ;/usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
48    /bin/rm -f %{name}-%{version}-filelist
49    
50  # Set version String  # Set version String
51  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 53  VERSIONSTRING=%{version}-`echo %{release
53  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
54  rm -f $RPM_BUILD_ROOT/sbin/affa.tmp  rm -f $RPM_BUILD_ROOT/sbin/affa.tmp
55    
56  rm -f %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
57        --ignoredir "/etc/sudoers.d" \
58  find $RPM_BUILD_ROOT -depth -type f -print |\      --ignoredir "/etc/profile.d" \
59   sed -e "s@^$RPM_BUILD_ROOT@@g" \      --file "/etc/profile.d/affa.sh" "attr(0555,root,root)" \
60   -e "s@^/sbin/@%attr(0750,root,root) &@"\      --file "/etc/sudoers.d/affa" "attr(0440,root,root)" \
61   -e "s@^/etc/profile.d/@%attr(0555,root,root) &@"\      > %{name}-%{version}-filelist
  -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  
62    
63    %files -f %{name}-%{version}-filelist
64    
65  find $RPM_BUILD_ROOT -depth -type d -print |\  # We could use this for docs I guess - we should standardise this sort of thing
66   sed -e "s@^$RPM_BUILD_ROOT@%dir @g" >> %{name}-%{version}-filelist  #%doc README LICENSE README
   
 find $RPM_BUILD_ROOT -depth -type l -print |\  
  sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist  
67    
68  %clean  %clean
69  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
70    
 %files -f %{name}-%{version}-filelist  
 %defattr(-,root,root)  
   
71  %pre  %pre
72  exit 0  exit 0
73    
# Line 97  exit 0 Line 81  exit 0
81  exit 0  exit 0
82    
83  %changelog  %changelog
84    * Tue Mar 23 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.0-1.sme
85    - New version for Koozali SME v10 [SME: 11024]
86    - incorporated old patches
87    - tidied up some old git files
88    - Very Alpha - see bug for details
89    
90  * 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
91  - 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]
92    
# Line 158  exit 0 Line 148  exit 0
148    --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist    --send-key: mkdir of RemoteAuthorizedKeysFile. Avoid errors if dir does not exist
149    --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
150    --check-conncetions: allow jobs as arguments    --check-conncetions: allow jobs as arguments
151  * Sun Aug 29 2011 Michael Weinberger 3.1.2  * Mon Aug 29 2011 Michael Weinberger 3.1.2
152  - Bugfix: postJobCommand and postJobCommandRemote were not executed  - Bugfix: postJobCommand and postJobCommandRemote were not executed
153  * Sat Aug 13 2011 Michael Weinberger 3.1.1  * Sat Aug 13 2011 Michael Weinberger 3.1.1
154  - 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