OBS User unknown 2007-01-15 23:35:29 +00:00 committed by Git OBS Bridge
commit 7a4a8613bc
14 changed files with 974 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

11
logrotate.rsync Normal file
View File

@ -0,0 +1,11 @@
/var/log/rsyncd.log {
compress
dateext
maxage 365
rotate 99
size=+1024k
notifempty
missingok
copytruncate
}

0
ready Normal file
View File

29
rsync-2.6.3-tzenv.diff Normal file
View File

@ -0,0 +1,29 @@
--- rsync-2.6.5/clientserver.c
+++ rsync-2.6.5/clientserver.c
@@ -360,6 +360,17 @@
* a warning, unless a "require chroot" flag is set,
* in which case we fail.
*/
+ time_t the_time;
+ struct tm* p_tm;
+ char envtz[10];
+ int s_timezone;
+
+ the_time = time(NULL);
+ p_tm = localtime(&the_time);
+ s_timezone = (int)p_tm->tm_gmtoff * -1;
+
+ snprintf(envtz, sizeof(envtz) - 1, "UTC%+d", s_timezone/3600);
+
if (chroot(lp_path(i))) {
rsyserr(FLOG, errno, "chroot %s failed",
safe_fname(lp_path(i)));
@@ -367,6 +378,8 @@
return -1;
}
+ setenv("TZ", envtz, 0);
+
if (!push_dir("/")) {
rsyserr(FLOG, errno, "chdir %s failed\n",
safe_fname(lp_path(i)));

3
rsync-2.6.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89d5ca2874deb7d74b4063050aa3acd08772d0bbeb228ffa6a19474c34b6973e
size 620308

83
rsync-tag-3.patch Normal file
View File

@ -0,0 +1,83 @@
--- old/io.c 2006-04-21 09:40:19 -0700
+++ new/io.c 2006-05-18 10:45:16 -0700
@@ -273,10 +273,7 @@ static void read_msg_fd(void)
exit_cleanup(RERR_STREAMIO);
}
read_loop(fd, buf, len);
- if (defer_forwarding_messages)
- msg_list_add(&msg2sndr, MSG_DELETED, buf, len);
- else
- io_multiplex_write(MSG_DELETED, buf, len);
+ send_msg(MSG_DELETED, buf, len);
break;
case MSG_SUCCESS:
if (len != 4 || !am_generator) {
@@ -286,10 +283,7 @@ static void read_msg_fd(void)
read_loop(fd, buf, len);
if (remove_sent_files) {
decrement_active_files(IVAL(buf,0));
- if (defer_forwarding_messages)
- msg_list_add(&msg2sndr, MSG_SUCCESS, buf, len);
- else
- io_multiplex_write(MSG_SUCCESS, buf, len);
+ send_msg(MSG_SUCCESS, buf, len);
}
if (preserve_hard_links)
flist_ndx_push(&hlink_list, IVAL(buf,0));
@@ -309,10 +303,7 @@ static void read_msg_fd(void)
if (n >= sizeof buf)
n = sizeof buf - 1;
read_loop(fd, buf, n);
- if (am_generator && am_server && defer_forwarding_messages)
- msg_list_add(&msg2sndr, tag, buf, n);
- else
- rwrite((enum logcode)tag, buf, n);
+ rwrite(tag, buf, n);
len -= n;
}
break;
@@ -386,14 +377,19 @@ static int msg2genr_flush(int flush_it_a
return 1;
}
-void send_msg(enum msgcode code, char *buf, int len)
+int send_msg(enum msgcode code, char *buf, int len)
{
if (msg_fd_out < 0) {
- io_multiplex_write(code, buf, len);
- return;
+ if (!defer_forwarding_messages)
+ return io_multiplex_write(code, buf, len);
+ if (!io_multiplexing_out)
+ return 0;
+ msg_list_add(&msg2sndr, code, buf, len);
+ return 1;
}
msg_list_add(&msg2genr, code, buf, len);
msg2genr_flush(NORMAL_FLUSH);
+ return 1;
}
int get_redo_num(int itemizing, enum logcode code)
--- old/log.c 2006-04-08 09:04:34 -0700
+++ new/log.c 2006-05-18 10:45:16 -0700
@@ -264,7 +264,7 @@ void rwrite(enum logcode code, char *buf
if (am_server) {
/* Pass the message to the non-server side. */
- if (io_multiplex_write((enum msgcode)code, buf, len))
+ if (send_msg((enum msgcode)code, buf, len))
return;
if (am_daemon) {
/* TODO: can we send the error to the user somehow? */
--- old/proto.h 2006-04-22 08:38:34 -0700
+++ new/proto.h 2006-05-18 10:45:31 -0700
@@ -104,7 +104,7 @@ void set_msg_fd_in(int fd);
void set_msg_fd_out(int fd);
void increment_active_files(int ndx, int itemizing, enum logcode code);
void decrement_active_files(int ndx);
-void send_msg(enum msgcode code, char *buf, int len);
+int send_msg(enum msgcode code, char *buf, int len);
int get_redo_num(int itemizing, enum logcode code);
int get_hlink_num(void);
void io_set_filesfrom_fds(int f_in, int f_out);

34
rsync-xattrs-fix.patch Normal file
View File

@ -0,0 +1,34 @@
--- patches/xattrs.diff
+++ patches/xattrs.diff
@@ -372,7 +372,7 @@
transfer. The resulting value is treated as though it was the permissions
--- old/xattr.c
+++ new/xattr.c
-@@ -0,0 +1,523 @@
+@@ -0,0 +1,524 @@
+/* Extended Attribute support for rsync */
+/* Copyright (C) 2004 Red Hat, Inc */
+/* Written by Jay Fenlason, vaguely based on the ACLs patch */
@@ -590,10 +590,10 @@
+ strcpy(ptr, name);
+ if (datum_size)
+ memcpy(ptr + len, datumbuf, datum_size);
-+ x->rxas[curr_rsync_xal.count].name_len = len;
-+ x->rxas[curr_rsync_xal.count].name = ptr;
-+ x->rxas[curr_rsync_xal.count].datum_len = datum_size;
-+ x->rxas[curr_rsync_xal.count].datum = ptr + len;
++ x->rxas[x->count].name_len = len;
++ x->rxas[x->count].name = ptr;
++ x->rxas[x->count].datum_len = datum_size;
++ x->rxas[x->count].datum = ptr + len;
+ x->count++;
+ }
+ if (x->count > 1) {
@@ -656,6 +656,7 @@
+ rsync_xal_l.count++;
+ curr_rsync_xal.count = 0;
+ curr_rsync_xal.alloc = 0;
++ curr_rsync_xal.rxas = NULL;
+}
+
+/* send the make_xattr()-generated xattr list for this flist entry,

345
rsync.changes Normal file
View File

@ -0,0 +1,345 @@
-------------------------------------------------------------------
Tue Sep 12 15:42:00 CEST 2006 - ro@suse.de
- apply fix for xattr.diff from rsync mailing list
-------------------------------------------------------------------
Tue Aug 22 14:41:11 CEST 2006 - ro@suse.de
- apply patches/xattr.diff as well (fate#300565)
-------------------------------------------------------------------
Thu Aug 10 13:38:33 CEST 2006 - dmueller@suse.de
- fix rc script error code when there's an error in the config
file (#198406)
-------------------------------------------------------------------
Wed Jun 21 11:56:38 CEST 2006 - ro@suse.de
- added tag-3 patch from cvs (will be in 2.6.9)
to avoid aborts with "unexpected tag 3"
-------------------------------------------------------------------
Mon Jun 12 01:55:55 CEST 2006 - ro@suse.de
- update to version 2.6.8
- use slp patch as included upstream
- several bugfixes
- errors now include version number
- special files as pipes now printed as "S", no longer "D"
- escaping of unreadable chars has changed
- new --append, --min-size and --prune-empty-dirs options
-------------------------------------------------------------------
Tue Apr 18 15:17:19 CEST 2006 - ro@suse.de
- ignore testsuite failure on s390x (filesystem mtimes)
-------------------------------------------------------------------
Wed Jan 25 21:41:13 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jan 19 00:04:48 CET 2006 - schwab@suse.de
- Don't strip binaries.
-------------------------------------------------------------------
Fri Oct 14 12:19:33 CEST 2005 - ro@suse.de
- fix problem in configure to re-enable ACLs (#128323)
-------------------------------------------------------------------
Tue Aug 2 12:25:35 CEST 2005 - ro@suse.de
- added acl-fix.patch from wayne to make testsuite pass with acls
-------------------------------------------------------------------
Fri Jul 29 02:09:54 CEST 2005 - ro@suse.de
- update to 2.6.6
-------------------------------------------------------------------
Mon Jun 6 16:49:10 CEST 2005 - ro@suse.de
- update to 2.6.5
- use acl patch as shipped in rsync/patches directory
-------------------------------------------------------------------
Fri Feb 18 12:46:36 CET 2005 - mmj@suse.de
- Glibc doesn't cache the timezone as much as it used to, so export
the TZ variable after doing chroot. [#49878]
-------------------------------------------------------------------
Thu Feb 10 02:40:51 CET 2005 - ro@suse.de
- added libpng to neededforbuild (for tetex)
-------------------------------------------------------------------
Wed Dec 1 17:26:45 CET 2004 - ro@suse.de
- re-register before SLP really times out
-------------------------------------------------------------------
Wed Dec 1 15:27:06 CET 2004 - ro@suse.de
- re-worked slp.diff
do not use a timer but hook into central select call
-------------------------------------------------------------------
Thu Nov 11 17:39:50 CET 2004 - ro@suse.de
- update to 2.6.3 final
-------------------------------------------------------------------
Mon Aug 16 20:35:57 CEST 2004 - bk@suse.de
- updated to 2.6.3-pre1, which is currently in release-testing
(and includes a security fix)
-------------------------------------------------------------------
Fri Jul 23 11:30:12 CEST 2004 - ro@suse.de
- fixing problems apparently introduced with the update to 2.6.2:
- fix from cvs to not abort trying to create already created
backup directories (#42780)
- fix from cvs to avoid crash on large trees (#42933)
-------------------------------------------------------------------
Mon May 10 18:38:40 CEST 2004 - ro@suse.de
- update to 2.6.2 / ported patches
- fixes a problem with non-chroot modules
-------------------------------------------------------------------
Thu Apr 1 12:13:06 CEST 2004 - mls@suse.de
- fix hostname calculation in slp registration code
-------------------------------------------------------------------
Tue Mar 16 12:44:20 CET 2004 - ro@suse.de
- add -4 and -6 options to manpage (#36144)
-------------------------------------------------------------------
Tue Jan 13 16:56:54 CET 2004 - ro@suse.de
- update to version 2.6.0
-------------------------------------------------------------------
Thu Dec 4 12:22:05 CET 2003 - ro@suse.de
- update to real 2.5.7
-------------------------------------------------------------------
Thu Dec 4 10:36:27 CET 2003 - okir@suse.de
- fix heap overflow (#33478)
-------------------------------------------------------------------
Sun Nov 23 18:46:28 CET 2003 - adrian@suse.de
- add patch for SLP support, based on Brad Hards demo implementation
-------------------------------------------------------------------
Thu Nov 6 17:03:34 CET 2003 - schwab@suse.de
- Fix quoting in configure script.
-------------------------------------------------------------------
Fri Oct 24 12:13:59 CEST 2003 - ro@suse.de
- added make test
- added acl patch, build with acl support
-------------------------------------------------------------------
Fri Oct 17 11:51:23 CEST 2003 - ro@suse.de
- don't build as root
-------------------------------------------------------------------
Mon Aug 18 17:57:59 CEST 2003 - ro@suse.de
- added stop_on_removal and restart_on_update macro calls
-------------------------------------------------------------------
Tue May 13 00:25:51 CEST 2003 - ro@suse.de
- use defattr
-------------------------------------------------------------------
Wed Mar 5 14:57:57 CET 2003 - ro@suse.de
- add xinetd-config to filelist
-------------------------------------------------------------------
Tue Jan 28 12:05:30 CET 2003 - ro@suse.de
- update to 2.5.6
- can combine ssh and daemon access
- supports URL like syntax rsync://
- IPv6 support in hosts.allow/deny
- recursive hang fixed upstream
-------------------------------------------------------------------
Fri Jan 24 11:48:54 CET 2003 - ro@suse.de
- added xinetd-config snippet
-------------------------------------------------------------------
Wed Jan 15 12:51:34 CET 2003 - ro@suse.de
- added logrotate config
-------------------------------------------------------------------
Tue Oct 8 14:01:34 CEST 2002 - ro@suse.de
- fix recursive hangup in server process on broken pipe
-------------------------------------------------------------------
Wed Aug 14 11:15:11 CEST 2002 - poeml@suse.de
- fix comment in init script
-------------------------------------------------------------------
Thu Aug 1 17:33:29 CEST 2002 - ro@suse.de
- use BuildRoot
- added PreReqs
-------------------------------------------------------------------
Mon Jul 22 10:03:29 CEST 2002 - kukuk@suse.de
- Don't source /etc/rc.config in init script [Bug 17123]
-------------------------------------------------------------------
Mon Jun 17 15:15:52 CEST 2002 - ro@suse.de
- update to 2.5.5
setgroups patch removed, has been integrated
zfree patch removed, rsync has current zlib fixes
unsigned patch removed, has been integrated
-------------------------------------------------------------------
Wed Mar 6 14:46:29 CET 2002 - okir@suse.de
- applied setgroups security fix
-------------------------------------------------------------------
Fri Feb 8 11:00:00 CET 2002 - okir@suse.de
- applied zlib security fix
-------------------------------------------------------------------
Wed Feb 6 14:21:19 CET 2002 - ro@suse.de
- make rsyncd a hardlink (#13041)
-------------------------------------------------------------------
Fri Feb 1 11:55:30 CET 2002 - ro@suse.de
- added patch for segmentation fault
-------------------------------------------------------------------
Mon Jan 21 17:09:58 MET 2002 - draht@suse.de
- corrected diff for log.c
-------------------------------------------------------------------
Mon Jan 21 00:08:25 CET 2002 - ro@suse.de
- applied security patch for various signed/unsigned fixes
-------------------------------------------------------------------
Fri Dec 14 01:33:54 CET 2001 - ro@suse.de
- removed START_RSYNCD
-------------------------------------------------------------------
Tue Aug 28 15:01:10 CEST 2001 - ro@suse.de
- on uninstall, call insserv to cleanup
-------------------------------------------------------------------
Tue Aug 28 13:02:35 CEST 2001 - ro@suse.de
- added rc-script and rc-config variable START_RSYNCD
if someone wants to run rsyncd standalone (w/o inetd) (#9496)
-------------------------------------------------------------------
Mon Sep 25 15:31:45 CEST 2000 - ro@suse.de
- sorted
-------------------------------------------------------------------
Wed Sep 13 13:51:34 CEST 2000 - aj@suse.de
- Work with LFS; fix spec file to not print while building.
-------------------------------------------------------------------
Mon Sep 11 14:24:35 CEST 2000 - ro@suse.de
- update to 2.4.6
-------------------------------------------------------------------
Fri Aug 18 01:59:08 CEST 2000 - ro@suse.de
- update to 2.4.4
-------------------------------------------------------------------
Thu Jan 20 14:28:39 CET 2000 - aj@suse.de
- rsync 2.3.2, install man pages -> /usr/share/man.
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Fri Aug 13 15:16:27 MEST 1999 - fehr@suse.de
- update to 2.3.1
- added rsyncstats shell script
-------------------------------------------------------------------
Thu Dec 17 16:21:44 MET 1998 - ro@suse.de
- update to 2.2.1
-------------------------------------------------------------------
Sat Nov 28 22:02:28 MET 1998 - bs@suse.de
- added symlink /usr/sbin/rsyncd (to let it work with tcpd)
- added example configs
-------------------------------------------------------------------
Tue Nov 24 10:20:14 MET 1998 - ro@suse.de
- update to 2.2.0
-------------------------------------------------------------------
Sat Sep 19 19:29:34 MEST 1998 - ro@suse.de
- defined _GNU_SOURCE where getopt_long is needed
-------------------------------------------------------------------
Mon Aug 24 12:17:19 MEST 1998 - ro@suse.de
- update to 2.1.0
added manpage for rsyncd.conf
-------------------------------------------------------------------
Tue May 12 11:29:45 MEST 1998 - ro@suse.de
- update to 1.7.4
generate tech_report.ps from tex-src
-------------------------------------------------------------------
Mon Nov 10 22:38:30 MET 1997 - kfr@suse.de
- first version for S.u.S.E. (1.6.3)

281
rsync.spec Normal file
View File

@ -0,0 +1,281 @@
#
# spec file for package rsync (Version 2.6.8)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: rsync
BuildRequires: libacl-devel libpng openslp-devel te_ams te_latex
License: GPL
Group: Productivity/Networking/Other
PreReq: %fillup_prereq %insserv_prereq
Autoreqprov: on
Version: 2.6.8
Release: 8
Summary: Replacement for RCP/mirror that has Many More Features
Source: samba.org/ftp/rsync/rsync-%{version}.tar.bz2
Source1: logrotate.rsync
Source2: rsync.xinetd
Source3: rsyncd.rc
Source4: rsyncd.conf
Source5: rsyncd.secrets
Patch: rsync-2.6.3-tzenv.diff
Patch1: rsync-tag-3.patch
Patch2: rsync-xattrs-fix.patch
URL: http://rsync.samba.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
rsync uses the "rsync algorithm" which provides a very fast method for
bringing remote files into sync. It does this by sending just the
differences in the files across the link, without requiring that both
sets of files be present at one of the ends of the link beforehand. At
first glance, this may seem impossible because the calculation of diffs
between two files normally requires local access to both files.
A technical report describing the rsync algorithm is included with this
package.
Authors:
--------
Andrew Tridgell <tridge@samba.org>
Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
%prep
%setup -q
%patch2
cp configure configure.orig
patch -p1 < patches/acls.diff
patch -p1 < patches/xattrs.diff
cp configure.orig configure
patch -p1 < patches/slp.diff
cp configure.orig configure
%patch -p1
%patch1 -p1
%build
autoheader
autoconf
CFLAGS=$RPM_OPT_FLAGS \
./configure --prefix=/usr \
--infodir=/usr/share/info \
--mandir=%{_mandir} \
--enable-slp \
--enable-acl-support \
--enable-xattr-support
make
%ifarch s390x
make test || :
%else
make test
%endif
latex tech_report
latex tech_report
dvips tech_report -o tech_report.ps
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/usr/sbin/rsyncd
install -d $RPM_BUILD_ROOT/etc/logrotate.d
install -d $RPM_BUILD_ROOT/etc/init.d
install -d $RPM_BUILD_ROOT/etc/xinetd.d
install -d $RPM_BUILD_ROOT/usr/sbin
ln -f $RPM_BUILD_ROOT/usr/bin/rsync $RPM_BUILD_ROOT/usr/sbin/rsyncd
install -m 755 support/rsyncstats $RPM_BUILD_ROOT/usr/bin
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/rsync
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/xinetd.d/rsync
install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/rsyncd
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/rsyncd.conf
install -m 600 %{SOURCE5} $RPM_BUILD_ROOT/etc/rsyncd.secrets
ln -sf ../../etc/init.d/rsyncd $RPM_BUILD_ROOT/usr/sbin/rcrsyncd
%preun
%stop_on_removal rsyncd
%post
%fillup_and_insserv rsyncd
%postun
%restart_on_update rsyncd
%insserv_cleanup
%files
%defattr(-,root,root)
%config(noreplace) /etc/rsyncd.conf
%config(noreplace) /etc/rsyncd.secrets
%config(noreplace) /etc/logrotate.d/rsync
%config(noreplace) /etc/xinetd.d/rsync
%config /etc/init.d/rsyncd
/usr/sbin/rcrsyncd
/usr/bin/rsync
/usr/sbin/rsyncd
/usr/bin/rsyncstats
%doc %{_mandir}/man1/rsync.1.gz
%doc %{_mandir}/man5/rsyncd.conf.5.gz
%doc COPYING README tech_report.ps tech_report.tex
%changelog -n rsync
* Tue Sep 12 2006 - ro@suse.de
- apply fix for xattr.diff from rsync mailing list
* Tue Aug 22 2006 - ro@suse.de
- apply patches/xattr.diff as well (fate#300565)
* Thu Aug 10 2006 - dmueller@suse.de
- fix rc script error code when there's an error in the config
file (#198406)
* Wed Jun 21 2006 - ro@suse.de
- added tag-3 patch from cvs (will be in 2.6.9)
to avoid aborts with "unexpected tag 3"
* Mon Jun 12 2006 - ro@suse.de
- update to version 2.6.8
- use slp patch as included upstream
- several bugfixes
- errors now include version number
- special files as pipes now printed as "S", no longer "D"
- escaping of unreadable chars has changed
- new --append, --min-size and --prune-empty-dirs options
* Tue Apr 18 2006 - ro@suse.de
- ignore testsuite failure on s390x (filesystem mtimes)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 - schwab@suse.de
- Don't strip binaries.
* Fri Oct 14 2005 - ro@suse.de
- fix problem in configure to re-enable ACLs (#128323)
* Tue Aug 02 2005 - ro@suse.de
- added acl-fix.patch from wayne to make testsuite pass with acls
* Fri Jul 29 2005 - ro@suse.de
- update to 2.6.6
* Mon Jun 06 2005 - ro@suse.de
- update to 2.6.5
- use acl patch as shipped in rsync/patches directory
* Fri Feb 18 2005 - mmj@suse.de
- Glibc doesn't cache the timezone as much as it used to, so export
the TZ variable after doing chroot. [#49878]
* Thu Feb 10 2005 - ro@suse.de
- added libpng to neededforbuild (for tetex)
* Wed Dec 01 2004 - ro@suse.de
- re-register before SLP really times out
* Wed Dec 01 2004 - ro@suse.de
- re-worked slp.diff
do not use a timer but hook into central select call
* Thu Nov 11 2004 - ro@suse.de
- update to 2.6.3 final
* Mon Aug 16 2004 - bk@suse.de
- updated to 2.6.3-pre1, which is currently in release-testing
(and includes a security fix)
* Fri Jul 23 2004 - ro@suse.de
- fixing problems apparently introduced with the update to 2.6.2:
- fix from cvs to not abort trying to create already created
backup directories (#42780)
- fix from cvs to avoid crash on large trees (#42933)
* Mon May 10 2004 - ro@suse.de
- update to 2.6.2 / ported patches
- fixes a problem with non-chroot modules
* Thu Apr 01 2004 - mls@suse.de
- fix hostname calculation in slp registration code
* Tue Mar 16 2004 - ro@suse.de
- add -4 and -6 options to manpage (#36144)
* Tue Jan 13 2004 - ro@suse.de
- update to version 2.6.0
* Thu Dec 04 2003 - ro@suse.de
- update to real 2.5.7
* Thu Dec 04 2003 - okir@suse.de
- fix heap overflow (#33478)
* Sun Nov 23 2003 - adrian@suse.de
- add patch for SLP support, based on Brad Hards demo implementation
* Thu Nov 06 2003 - schwab@suse.de
- Fix quoting in configure script.
* Fri Oct 24 2003 - ro@suse.de
- added make test
- added acl patch, build with acl support
* Fri Oct 17 2003 - ro@suse.de
- don't build as root
* Mon Aug 18 2003 - ro@suse.de
- added stop_on_removal and restart_on_update macro calls
* Tue May 13 2003 - ro@suse.de
- use defattr
* Wed Mar 05 2003 - ro@suse.de
- add xinetd-config to filelist
* Tue Jan 28 2003 - ro@suse.de
- update to 2.5.6
- can combine ssh and daemon access
- supports URL like syntax rsync://
- IPv6 support in hosts.allow/deny
- recursive hang fixed upstream
* Fri Jan 24 2003 - ro@suse.de
- added xinetd-config snippet
* Wed Jan 15 2003 - ro@suse.de
- added logrotate config
* Tue Oct 08 2002 - ro@suse.de
- fix recursive hangup in server process on broken pipe
* Wed Aug 14 2002 - poeml@suse.de
- fix comment in init script
* Thu Aug 01 2002 - ro@suse.de
- use BuildRoot
- added PreReqs
* Mon Jul 22 2002 - kukuk@suse.de
- Don't source /etc/rc.config in init script [Bug 17123]
* Mon Jun 17 2002 - ro@suse.de
- update to 2.5.5
setgroups patch removed, has been integrated
zfree patch removed, rsync has current zlib fixes
unsigned patch removed, has been integrated
* Wed Mar 06 2002 - okir@suse.de
- applied setgroups security fix
* Fri Feb 08 2002 - okir@suse.de
- applied zlib security fix
* Wed Feb 06 2002 - ro@suse.de
- make rsyncd a hardlink (#13041)
* Fri Feb 01 2002 - ro@suse.de
- added patch for segmentation fault
* Mon Jan 21 2002 - draht@suse.de
- corrected diff for log.c
* Mon Jan 21 2002 - ro@suse.de
- applied security patch for various signed/unsigned fixes
* Fri Dec 14 2001 - ro@suse.de
- removed START_RSYNCD
* Tue Aug 28 2001 - ro@suse.de
- on uninstall, call insserv to cleanup
* Tue Aug 28 2001 - ro@suse.de
- added rc-script and rc-config variable START_RSYNCD
if someone wants to run rsyncd standalone (w/o inetd) (#9496)
* Mon Sep 25 2000 - ro@suse.de
- sorted
* Wed Sep 13 2000 - aj@suse.de
- Work with LFS; fix spec file to not print while building.
* Mon Sep 11 2000 - ro@suse.de
- update to 2.4.6
* Fri Aug 18 2000 - ro@suse.de
- update to 2.4.4
* Thu Jan 20 2000 - aj@suse.de
- rsync 2.3.2, install man pages -> /usr/share/man.
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Aug 13 1999 - fehr@suse.de
- update to 2.3.1
- added rsyncstats shell script
* Thu Dec 17 1998 - ro@suse.de
- update to 2.2.1
* Sat Nov 28 1998 - bs@suse.de
- added symlink /usr/sbin/rsyncd (to let it work with tcpd)
- added example configs
* Tue Nov 24 1998 - ro@suse.de
- update to 2.2.0
* Sat Sep 19 1998 - ro@suse.de
- defined _GNU_SOURCE where getopt_long is needed
* Mon Aug 24 1998 - ro@suse.de
- update to 2.1.0
added manpage for rsyncd.conf
* Tue May 12 1998 - ro@suse.de
- update to 1.7.4
generate tech_report.ps from tex-src
* Mon Nov 10 1997 - kfr@suse.de
- first version for S.u.S.E. (1.6.3)

12
rsync.xinetd Normal file
View File

@ -0,0 +1,12 @@
# default: off
# description: rsync file transfer daemon
service rsync
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/rsyncd
server_args = --daemon
disable = yes
}

14
rsyncd.conf Normal file
View File

@ -0,0 +1,14 @@
gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
hosts allow = trusted.hosts
slp refresh = 300
#[Example]
# path = /home/Example
# comment = An Example
# auth users = user
# secrets file = /etc/rsyncd.secrets

137
rsyncd.rc Normal file
View File

@ -0,0 +1,137 @@
#! /bin/sh
# Copyright (c) 1996, 1997, 1998 S.u.S.E. GmbH
# Copyright (c) 1998, 1999, 2000, 2001 SuSE GmbH
# Copyright (c) 2002 SuSE Linux AG
#
# Author: Kurt Garloff <feedback@suse.de>
#
# init.d/rsyncd
#
# and symbolic its link
#
# /sbin/rcrsyncd
#
# System startup script for the rsync daemon
#
### BEGIN INIT INFO
# Provides: rsync
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# X-UnitedLinux-Should-Start: slpd
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the rsync server daemon
### END INIT INFO
RSYNCD_BIN=/usr/sbin/rsyncd
test -x $RSYNCD_BIN || exit 5
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_failed <num> set local and overall rc status to <num><num>
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status
. /etc/rc.status
# First reset status of this service
rc_reset
# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signalling is not supported) are
# considered a success.
case "$1" in
start)
echo -n "Starting rsync daemon"
## Start daemon with startproc(8). If this fails
## the echo return value is set appropriate.
# NOTE: startproc return 0, even if service is
# already running to match LSB spec.
startproc -t 1 $RSYNCD_BIN --daemon
# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down rsync daemon"
## Stop daemon with killproc(8) and if this fails
## set echo the echo return value.
killproc -TERM $RSYNCD_BIN
# Remember status and be verbose
rc_status -v
;;
try-restart)
## Stop the service and if this succeeds (i.e. the
## service was running before), start it again.
## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
$0 status >/dev/null && $0 restart
# Remember status and be quiet
rc_status
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
force-reload)
## Signal the daemon to reload its config. Most daemons
## do this on signal 1 (SIGHUP).
## If it does not support it, restart.
echo -n "Reload service rsync"
killproc -HUP $RSYNCD_BIN
rc_status -v
;;
reload)
## Like force-reload, but if daemon does not support
## signalling, do nothing (!)
# If it supports signalling:
echo -n "Reload service rsync"
killproc -HUP $RSYNCD_BIN
rc_status -v
;;
status)
echo -n "Checking for rsync daemon: "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
# Status has a slightly different for the status command:
# 0 - service running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running
# NOTE: checkproc returns LSB compliant status values.
checkproc $RSYNCD_BIN
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
exit 1
;;
esac
rc_exit

1
rsyncd.secrets Normal file
View File

@ -0,0 +1 @@
# user:passwd