From 93b56025fa560fb1c86bd48e884f2523603fafd6 Mon Sep 17 00:00:00 2001 From: Nikita Koshikov Date: Thu, 10 Sep 2009 12:48:28 +0200 Subject: [PATCH] Add ccollect rpm spec Thanks a lot, Nikita! --- contrib/ccollect.spec | 85 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 contrib/ccollect.spec diff --git a/contrib/ccollect.spec b/contrib/ccollect.spec new file mode 100644 index 0000000..477a878 --- /dev/null +++ b/contrib/ccollect.spec @@ -0,0 +1,85 @@ +Summary: (pseudo) incremental backup with different exclude lists using hardlinks and rsync +Name: ccollect +Version: 0.8 +Release: 0 +URL: http://www.nico.schottelius.org/software/ccollect +Source0: http://www.nico.schottelius.org/software/ccollect/%{name}-%{version}.tar.bz2 + +License: LGPL-3 +Group: Applications/System +Vendor: Nico Schottelius +BuildRoot: %{_tmppath}/%{name}-%(id -un) +BuildArch: noarch +Requires: rsync + +%description +Ccollect backups data from local and remote hosts to your local harddisk. +Although ccollect creates full backups, it requires very less space on the backup medium, because ccollect uses hardlinks to create an initial copy of the last backup. +Only the inodes used by the hardlinks and the changed files need additional space. + +%prep +%setup -q + +%install +rm -rf $RPM_BUILD_ROOT + +#Installing main ccollect.sh and /etc directory +%__install -d 755 %buildroot%_bindir +%__install -d 755 %buildroot%_sysconfdir/%name +%__install -m 755 ccollect.sh %buildroot%_bindir/ + +#bin files from tools directory +for t in $(ls tools/ccollect_*) ; do + %__install -m 755 ${t} %buildroot%_bindir/ +done + +#Configuration examples and docs +%__install -d 755 %buildroot%_datadir/doc/%name-%version/examples + +%__install -m 644 README %buildroot%_datadir/doc/%name-%version +%__install -m 644 COPYING %buildroot%_datadir/doc/%name-%version +%__install -m 644 CREDITS %buildroot%_datadir/doc/%name-%version +%__install -m 644 conf/README %buildroot%_datadir/doc/%name-%version/examples +%__cp -pr conf/defaults %buildroot%_datadir/doc/%name-%version/examples/ +%__cp -pr conf/sources %buildroot%_datadir/doc/%name-%version/examples/ + +#Addition documentation and some config tools +%__install -d 755 %buildroot%_datadir/%name/tools +%__cp -pr tools/config-pre-* %buildroot%_datadir/%name/tools +%__install -m 755 tools/gnu-du-backup-size-compare.sh %buildroot%_datadir/%name/tools +%__install -m 755 tools/report_success.sh %buildroot%_datadir/%name/tools + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%__ln_s %_bindir/ccollect.sh %_bindir/ccollect + +%preun +unlink %_bindir/ccollect + +%files +%defattr(-,root,root) +%_bindir/ccollect* +%_datadir/doc/%name-%version +%_datadir/%name/tools +%docdir %_datadir/doc/%name-%version +%dir %_sysconfdir/%name + +%changelog +* Thu Aug 20 2009 Nico Schottelius 0.8 +- Introduce consistenst time sorting (John Lawless) +- Check for source connectivity before trying backup (John Lawless) +- Defensive programming patch (John Lawless) +- Some code cleanups (argument parsing, usage) (Nico Schottelius) +- Only consider directories as sources when using -a (Nico Schottelius) +- Fix general parsing problem with -a (Nico Schottelius) +- Fix potential bug when using remote_host, delete_incomplete and ssh (Nico Schottelius) +- Improve removal performance: minimised number of 'rm' calls (Nico Schottelius) +- Support sorting by mtime (John Lawless) +- Improve option handling (John Lawless) +- Add support for quiet operation for dead devices (quiet_if_down) (John Lawless) +- Add smart option parsing, including support for default values (John Lawless) +- Updated and cleaned up documentation (Nico Schottelius) +- Fixed bug "removal of current directory" in ccollect_delete_source.sh (Found by G????nter St????hr, fixed by Nico Schottelius) +