Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37553370
en ru br
ALT Linux repos
S:1.2-alt1

Group :: Other
RPM: osync

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name:  osync
Version:  1.2
Release:  alt1

Summary:  A robust two way (bidirectional) file sync script based on rsync with fault tolerance
License:  BSD
Group:    Other
Url:  http://www.netpower.fr/osync
# VCS:  https://github.com/deajan/osync

Packager: Andrey Cherepanov <cas at altlinux.org>

Source:   %name-%version.tar
Patch:    %name-services.patch

BuildArch: noarch
%filter_from_requires /^\/usr\/bin\/mail.php$/d

%description
A two way filesync script with fault tolerance, resuming, deletion
backup and conflict backups running on linux and virtually any system
supporting bash. File synchronization is bidirectional, based on rsync,
and can be run manually, by cron, or triggered via inotifytools
(whenever a file changes on master, a file sync is triggered).

%prep
%setup
%patch -p1
# Replace all /usr/local/bin by /usr/bin
subst 's,/usr/local/bin,%_bindir,g' *.lyx *.sh osync-srv* *.md

%install
export FAKEROOT=%buildroot
mkdir -p $FAKEROOT
mkdir -p %buildroot%_initdir
./install.sh --no-stats
install -Dp -m 0644 sync.conf.example %buildroot%_sysconfdir/osync/sync.conf
# Fix command interpreter for executables
subst '1,1 s,^.*,#!/bin/bash,' %buildroot%_bindir/*.sh

%post
%post_service osync-srv

%preun
%preun_service osync-srv

%files
%doc *.md *.lyx
%_bindir/*
%dir %_sysconfdir/osync/
%config(noreplace) %_sysconfdir/osync/sync.conf
%_sysconfdir/osync/*.example
%_initdir/osync-srv
%_unitdir/*.service
#_sysconfdir/systemd/user/*.service.user

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin