%bcond_with rsh # set remote shell command to rsh instead of ssh (old behaviour)
%bcond_without tests # do not perform "make test"
#
+%ifarch alpha
+%undefine with_tests
+%endif
Summary: Program for efficient remote updates of files
Summary(es): Programa para actualizar archivos remotos de forma eficiente
Summary(ko): ³×Æ®¿öÅ©¸¦ ÅëÇÑ ÆÄÀϵ¿±âȸ¦ À§ÇÑ ÇÁ·Î±×·¥
Summary(zh_CN): [ͨѶ]´«Ê乤¾ß
Summary(zh_TW): [³ñ°Ô]\e$(B6G?i¤õ(c\e(B
Name: rsync
-Version: 2.6.8
+Version: 2.6.9
Release: 1
License: GPL
Group: Networking/Utilities
Source0: http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
-# Source0-md5: 082a9dba1f741e6591e5cd748a1233de
+# Source0-md5: 996d8d8831dbca17910094e56dcb5942
Source1: %{name}.inet
Source2: %{name}.init
Source3: %{name}.sysconfig
BuildRequires: automake
BuildRequires: openssl-devel
BuildRequires: popt-devel
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.318
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/rsyncd
log file = /var/log/rsyncd.log
EOF
-cat << EOF > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
+cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/CVSIGNORE
#CVSIGNORE=
EOF
-cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
+cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_RSH
#RSYNC_RSH=
EOF
-cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
+cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PROXY
#RSYNC_PROXY=
EOF
-cat << EOF > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
+cat << 'EOF' > $RPM_BUILD_ROOT/etc/env.d/RSYNC_PASSWORD
#RSYNC_PASSWORD=
EOF
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%env_update
+
+%postun
+%env_update
+
%post -n rsyncd-inetd
%service -q rc-inetd reload
%files
%defattr(644,root,root,755)
%doc README NEWS OLDNEWS TODO
-%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
+%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*