Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1493684
 поиск   регистрация   авторизация 
 
Группа :: Сети/Передача файлов
Пакет: rsync

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: rsync
Version: 2.6.9
Release: alt1.M24.0

%define srcname rsync-%version
%def_disable check

Summary: A program for synchronizing files over a network
License: GPL
Group: Networking/File transfer
Url: http://rsync.samba.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# rsync.samba.org::rsyncftp/%srcname.tar.gz

# rsync.samba.org::rsyncftp/preview/%srcname.tar.gz
# ftp://rsync.samba.org/pub/rsync/%srcname.tar.gz
Source: %srcname.tar
Source1: rsync.xinetd
Source2: rsyncd.conf

#Patch0: rsync-%version-%release.patch

Patch0: rsync-%version-alt1.patch
Patch1: rsync-2.6.9-fname-obo.diff

# Automatically added by buildreq on Fri Nov 15 2002

BuildRequires: libpopt-devel

%package server
Summary: Server environment for the rsync program
Group: System/Servers
PreReq: %name = %version-%release, coreutils, shadow-utils

%description
Rsync uses a quick and reliable algorithm to very quickly bring
remote and host files into sync.  Rsync is fast because it just
sends the differences in the files over the network (instead of
sending the complete files).  Rsync is often used as a very powerful
mirroring process or just as a more capable replacement for the
rcp command.  A technical report which describes the rsync algorithm
is included in this package.

%description server
Rsync uses a quick and reliable algorithm to very quickly bring
remote and host files into sync.  Rsync is fast because it just
sends the differences in the files over the network (instead of
sending the complete files).  Rsync is often used as a very powerful
mirroring process or just as a more capable replacement for the
rcp command.  A technical report which describes the rsync algorithm
is included in this package.

This package includes rsyncd daemon functionality.

%prep
%setup -q -n %srcname
%patch0 -p1
%patch1 -p1
bzip2 -9k *NEWS

%build
autoconf
%configure
%make_build CCOPTFLAGS="%optflags"
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:make check}}}

%install
%makeinstall
install -pD -m640 %_sourcedir/rsync.xinetd \
%buildroot%_sysconfdir/xinetd.d/rsync
install -pD -m600 %_sourcedir/rsyncd.conf \
%buildroot%_sysconfdir/rsyncd.conf

%post server
/usr/sbin/groupadd -r -f rsyncd
/usr/sbin/useradd -r -g rsyncd -d /dev/null -s /dev/null \
-c 'The rsync daemon' -n rsyncd >/dev/null 2>&1 ||:

%triggerpostun server -- %name
for f in %_sysconfdir/rsyncd.conf %_sysconfdir/xinetd.d/rsync; do
if [ ! -f "$f" ]; then
if [ -f "$f.rpmsave" ]; then
%__cp -pf "$f.rpmsave" "$f"
elif [ -f "$f.rpmnew" ]; then
%__cp -pf "$f.rpmnew" "$f"
fi
fi
done

%files
%_bindir/*
%_man1dir/*
%doc tech_report.tex *NEWS.bz2 README zlib/README.rsync TODO

%files server
%config(noreplace) %_sysconfdir/xinetd.d/rsync
%config(noreplace) %_sysconfdir/rsyncd.conf
%_man5dir/*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005