Annotation of embedaddon/rsync/packaging/lsb/rsync.spec, revision 1.1.1.2
1.1 misho 1: Summary: A fast, versatile, remote (and local) file-copying tool
2: Name: rsync
1.1.1.2 ! misho 3: Version: 3.1.0
1.1 misho 4: %define fullversion %{version}
5: Release: 1
6: %define srcdir src
7: Group: Applications/Internet
8: Source0: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-%{fullversion}.tar.gz
9: #Source1: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-patches-%{fullversion}.tar.gz
10: URL: http://rsync.samba.org/
11:
12: Prefix: %{_prefix}
13: BuildRoot: /var/tmp/%{name}-root
14: License: GPL
15:
1.1.1.2 ! misho 16: %package ssl-client
! 17: Summary: Provides rsync-ssl
! 18: Requires: stunnel >= 4
! 19:
! 20: %package ssl-daemon
! 21: Summary: An stunnel config file to support ssl rsync daemon connections.
! 22: Requires: stunnel >= 4
! 23:
1.1 misho 24: %description
25: Rsync is a fast and extraordinarily versatile file copying tool. It can
26: copy locally, to/from another host over any remote shell, or to/from a
27: remote rsync daemon. It offers a large number of options that control
28: every aspect of its behavior and permit very flexible specification of the
29: set of files to be copied. It is famous for its delta-transfer algorithm,
30: which reduces the amount of data sent over the network by sending only the
31: differences between the source files and the existing files in the
32: destination. Rsync is widely used for backups and mirroring and as an
33: improved copy command for everyday use.
34:
1.1.1.2 ! misho 35: %description ssl-client
! 36: Provides the rsync-ssl script that makes use of stunnel 4 to open an ssl
! 37: connection to an rsync daemon (on port 874). This setup does NOT require
! 38: any local stunnel daemon to be running to connect to the remote ssl rsyncd.
! 39:
! 40: %description ssl-daemon
! 41: Provides a config file for stunnel that will (if you start your stunnel
! 42: service) cause stunnel to listen for ssl rsync-daemon connections and run
! 43: "rsync --daemon" to handle them.
! 44:
1.1 misho 45: %prep
46: # Choose one -- setup source only, or setup source + rsync-patches:
47: %setup -q -n rsync-%{fullversion}
48: #%setup -q -b1 -n rsync-%{fullversion}
49:
1.1.1.2 ! misho 50: # If you you used "%setup -q -b1 ...", choose the patches you wish to apply:
1.1 misho 51: #patch -p1 <patches/acls.diff
52: #patch -p1 <patches/xattrs.diff
53: #patch -p1 <patches/remote-option.diff
54: #patch -p1 <patches/db.diff
55:
56: # Avoid extra perl dependencies for scripts going into doc dir.
57: chmod -x support/*
58:
59: %build
60: #./prepare-source
61: %configure
62:
63: make
64:
65: %install
66: rm -rf $RPM_BUILD_ROOT
1.1.1.2 ! misho 67: make install install-ssl-client install-ssl-daemon DESTDIR=$RPM_BUILD_ROOT
1.1 misho 68:
1.1.1.2 ! misho 69: mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d $RPM_BUILD_ROOT/etc/rsync-ssl/certs
1.1 misho 70: install -m 644 packaging/lsb/rsync.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/rsync
71:
72: %clean
73: rm -rf $RPM_BUILD_ROOT
74:
75: %files
76: %defattr(-,root,root)
77: %doc COPYING NEWS OLDNEWS README support/ tech_report.tex
78: %config(noreplace) /etc/xinetd.d/rsync
1.1.1.2 ! misho 79: %{_prefix}/bin/rsync
1.1 misho 80: %{_mandir}/man1/rsync.1*
81: %{_mandir}/man5/rsyncd.conf.5*
82:
1.1.1.2 ! misho 83: %files ssl-client
! 84: %{_prefix}/bin/rsync-ssl
! 85: %{_prefix}/bin/stunnel-rsync
! 86:
! 87: %files ssl-daemon
! 88: %config(noreplace) /etc/stunnel/rsyncd.conf
! 89: %dir /etc/rsync-ssl/certs
! 90:
1.1 misho 91: %changelog
1.1.1.2 ! misho 92: * Sat Sep 28 2013 Wayne Davison <wayned@samba.org>
! 93: Released 3.1.0.
1.1 misho 94:
95: * Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
96: Added installation of /etc/xinetd.d/rsync file and some commented-out
97: lines that demonstrate how to use the rsync-patches tar file.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>