Change-Id: I1ffdc6ee527e7bb775dd1e961adfee22681dbd9f
Reviewed-on: http://photon-jenkins.eng.vmware.com/264
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,56 @@ |
| 0 |
+Summary: Fast incremental file transfer. |
|
| 1 |
+Name: rsync |
|
| 2 |
+Version: 3.1.1 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv3+ |
|
| 5 |
+URL: https://rsync.samba.org/ |
|
| 6 |
+Source0: https://download.samba.org/pub/rsync/src/%{name}-%{version}.tar.gz
|
|
| 7 |
+%define sha1 rsync=c84faba04f721d393feccfa0476bfeed9b5b5250 |
|
| 8 |
+Group: Appication/Internet |
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+BuildRequires: systemd |
|
| 12 |
+Requires: systemd |
|
| 13 |
+%description |
|
| 14 |
+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. |
|
| 15 |
+%prep |
|
| 16 |
+%setup -q |
|
| 17 |
+%build |
|
| 18 |
+%configure --prefix=/usr |
|
| 19 |
+make %{?_smp_mflags}
|
|
| 20 |
+ |
|
| 21 |
+%install |
|
| 22 |
+make DESTDIR=%{buildroot} install
|
|
| 23 |
+mkdir -p %{buildroot}/%{_sysconfdir}
|
|
| 24 |
+touch %{buildroot}/%{_sysconfdir}/rsyncd.conf
|
|
| 25 |
+ |
|
| 26 |
+mkdir -p %{buildroot}/%{_libdir}/systemd/system
|
|
| 27 |
+cat << EOF >> %{buildroot}/%{_libdir}/systemd/system/rsyncd.service
|
|
| 28 |
+[Unit] |
|
| 29 |
+Description=Rsync Server |
|
| 30 |
+After=local-fs.target |
|
| 31 |
+ConditionPathExists=/etc/rsyncd.conf |
|
| 32 |
+ |
|
| 33 |
+[Service] |
|
| 34 |
+ExecStart=/usr/bin/rsync --daemon --no-detach |
|
| 35 |
+ |
|
| 36 |
+[Install] |
|
| 37 |
+WantedBy=multi-user.target |
|
| 38 |
+EOF |
|
| 39 |
+ |
|
| 40 |
+%post |
|
| 41 |
+/sbin/ldconfig |
|
| 42 |
+%postun -p /sbin/ldconfig |
|
| 43 |
+%files |
|
| 44 |
+%defattr(-,root,root) |
|
| 45 |
+%exclude %{_libdir}/debug
|
|
| 46 |
+%exclude /usr/src/debug |
|
| 47 |
+%{_bindir}/*
|
|
| 48 |
+%{_mandir}/man1/*
|
|
| 49 |
+%{_mandir}/man5/*
|
|
| 50 |
+%{_libdir}/systemd/system/rsyncd.service
|
|
| 51 |
+%{_sysconfdir}/rsyncd.conf
|
|
| 52 |
+%changelog |
|
| 53 |
+* Mon Dec 14 2015 Xiaolin Li < xiaolinl@vmware.com> 3.1.1-1 |
|
| 54 |
+- Initial build. First version |
|
| 55 |
+ |