/[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.2 - (show annotations) (download)
Sat Aug 22 18:05:52 2015 UTC (9 years, 3 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-affa-3_2_2_2-1_el6_sme
Changes since 1.1: +113 -429 lines
Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 3.2.2.2-1.sme - Initial release to contribs9

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

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