Группа :: Other
Пакет: osync
Главная Изменения Спек Патчи Sources Загрузить 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
…
Полный changelog можно просмотреть здесь
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
…
Полный changelog можно просмотреть здесь