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