Some RPM spec file improvements:
authorWayne Davison <wayned@samba.org>
Fri, 21 Mar 2008 23:28:20 +0000 (16:28 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 22 Mar 2008 00:11:20 +0000 (17:11 -0700)
- Added installation of new /etc/xinetd.d/rsync config file.
- Added commented-out lines to demonstrate how to use rsync-patches.

packaging/lsb/rsync.spec
packaging/lsb/rsync.xinetd [new file with mode: 0644]

index 0399401..4ef50a0 100644 (file)
@@ -3,7 +3,8 @@ Name: rsync
 Version: 3.0.0
 Release: 1
 Group: Applications/Internet
 Version: 3.0.0
 Release: 1
 Group: Applications/Internet
-Source:        http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz
+Source0: http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz
+Source1: http://rsync.samba.org/ftp/rsync/rsync-patches-%{version}.tar.gz
 URL: http://rsync.samba.org/
 
 Prefix: %{_prefix}
 URL: http://rsync.samba.org/
 
 Prefix: %{_prefix}
@@ -22,7 +23,14 @@ destination.  Rsync is widely used for backups and mirroring and as an
 improved copy command for everyday use.
 
 %prep
 improved copy command for everyday use.
 
 %prep
+# Choose one -- setup source only, or setup source + rsync-patches:
 %setup -q
 %setup -q
+#%setup -q -b1
+
+# 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/checksum-reading.diff
 
 %build
 %configure
 
 %build
 %configure
@@ -34,12 +42,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %makeinstall
 
 
 %makeinstall
 
+mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
+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 README tech_report.tex
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
 %doc COPYING README tech_report.tex
+%config(noreplace) /etc/xinetd.d/rsync
 %{_prefix}/bin/rsync
 %{_mandir}/man1/rsync.1*
 %{_mandir}/man5/rsyncd.conf.5*
 %{_prefix}/bin/rsync
 %{_mandir}/man1/rsync.1*
 %{_mandir}/man5/rsyncd.conf.5*
@@ -47,3 +59,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Sat Mar 01 2008 Wayne Davison <wayned@samba.org>
 Released 3.0.0.
 %changelog
 * Sat Mar 01 2008 Wayne Davison <wayned@samba.org>
 Released 3.0.0.
+
+* Fri Mar 21 2008 Wayne Davison <wayned@samba.org>
+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 (file)
index 0000000..63fc11c
--- /dev/null
@@ -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
+}