diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:14:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:14:31 +0000 |
commit | 2d5707c7479eacb3b1ad98e01b53f56a88f8fb78 (patch) | |
tree | d9c334e83692851c02e3e1b8e65570c97bc82481 /packaging/lsb | |
parent | Initial commit. (diff) | |
download | rsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.tar.xz rsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.zip |
Adding upstream version 3.2.7.upstream/3.2.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/lsb')
-rw-r--r-- | packaging/lsb/rsync.spec | 87 | ||||
-rw-r--r-- | packaging/lsb/rsync.xinetd | 13 |
2 files changed, 100 insertions, 0 deletions
diff --git a/packaging/lsb/rsync.spec b/packaging/lsb/rsync.spec new file mode 100644 index 0000000..f2d7aa4 --- /dev/null +++ b/packaging/lsb/rsync.spec @@ -0,0 +1,87 @@ +Summary: A fast, versatile, remote (and local) file-copying tool +Name: rsync +Version: 3.2.7 +%define fullversion %{version} +Release: 1 +%define srcdir src +Group: Applications/Internet +License: GPL +Source0: https://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-%{fullversion}.tar.gz +#Source1: https://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-patches-%{fullversion}.tar.gz +URL: https://rsync.samba.org/ + +Prefix: %{_prefix} +BuildRoot: /var/tmp/%{name}-root + +%package ssl-daemon +Summary: An stunnel config file to support ssl rsync daemon connections. +Group: Applications/Internet +Requires: rsync, stunnel >= 4 + +%description +Rsync is a fast and extraordinarily versatile file copying tool. It can +copy locally, to/from another host over any remote shell, or to/from a +remote rsync daemon. It offers a large number of options that control +every aspect of its behavior and permit very flexible specification of the +set of files to be copied. It is famous for its delta-transfer algorithm, +which reduces the amount of data sent over the network by sending only the +differences between the source files and the existing files in the +destination. Rsync is widely used for backups and mirroring and as an +improved copy command for everyday use. + +%description ssl-daemon +Provides a config file for stunnel that will (if you start your stunnel +service) cause stunnel to listen for ssl rsync-daemon connections and run +"rsync --daemon" to handle them. + +%prep +# Choose one -- setup source only, or setup source + rsync-patches: +%setup -q -n rsync-%{fullversion} +#%setup -q -b1 -n rsync-%{fullversion} + +# If you you used "%setup -q -b1 ...", choose the patches you wish to apply: +#patch -p1 <patches/acls.diff +#patch -p1 <patches/xattrs.diff +#patch -p1 <patches/remote-option.diff +#patch -p1 <patches/db.diff + +# Avoid extra perl dependencies for scripts going into doc dir. +chmod -x support/* + +%build +#./prepare-source +%configure + +make + +%install +rm -rf $RPM_BUILD_ROOT +make install install-ssl-daemon DESTDIR=$RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d $RPM_BUILD_ROOT/etc/rsync-ssl/certs +install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc COPYING NEWS.md README.md support/ tech_report.tex +%config(noreplace) /etc/xinetd.d/rsync +%{_prefix}/bin/rsync +%{_prefix}/bin/rsync-ssl +%{_mandir}/man1/rsync.1* +%{_mandir}/man1/rsync-ssl.1* +%{_mandir}/man5/rsyncd.conf.5* + +%files ssl-daemon +%config(noreplace) /etc/stunnel/rsyncd.conf +%dir /etc/rsync-ssl/certs + +%changelog +* Thu Oct 20 2022 Wayne Davison <wayne@opencoder.net> +Released 3.2.7. + +* Fri Mar 21 2008 Wayne Davison <wayne@opencoder.net> +Added installation of /etc/xinetd.d/rsync file and some commented-out +lines that demonstrate how to use the rsync-patches tar file. diff --git a/packaging/lsb/rsync.xinetd b/packaging/lsb/rsync.xinetd new file mode 100644 index 0000000..63fc11c --- /dev/null +++ b/packaging/lsb/rsync.xinetd @@ -0,0 +1,13 @@ +# default: off +# description: The rsync server is a good addition to an ftp server, as it +# allows crc checksumming etc. +service rsync +{ + disable = yes + socket_type = stream + wait = no + user = root + server = /usr/bin/rsync + server_args = --daemon + log_on_failure += USERID +} |