diff --git a/SPECS/rsync-3.1.3.tar.gz b/SPECS/rsync-3.1.3.tar.gz new file mode 100644 index 0000000..4e5cc3d Binary files /dev/null and b/SPECS/rsync-3.1.3.tar.gz differ diff --git a/SPECS/rsync-patches-3.1.3.tar.gz b/SPECS/rsync-patches-3.1.3.tar.gz new file mode 100644 index 0000000..155b2f5 Binary files /dev/null and b/SPECS/rsync-patches-3.1.3.tar.gz differ diff --git a/SPECS/rsyncd.conf b/SPECS/rsyncd.conf new file mode 100644 index 0000000..6e058aa --- /dev/null +++ b/SPECS/rsyncd.conf @@ -0,0 +1,20 @@ +# /etc/rsyncd: configuration file for rsync daemon mode + +# See rsyncd.conf man page for more options. + +# configuration example: + +# uid = nobody +# gid = nobody +# use chroot = yes +# max connections = 4 +# pid file = /var/run/rsyncd.pid +# exclude = lost+found/ +# transfer logging = yes +# timeout = 900 +# ignore nonreadable = yes +# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 + +# [ftp] +# path = /home/ftp +# comment = ftp export area diff --git a/SPECS/rsyncd.service b/SPECS/rsyncd.service new file mode 100644 index 0000000..d2d6362 --- /dev/null +++ b/SPECS/rsyncd.service @@ -0,0 +1,12 @@ +[Unit] +Description=fast remote file copy program daemon +ConditionPathExists=/etc/rsyncd.conf +Wants=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=/etc/sysconfig/rsyncd +ExecStart=/usr/bin/rsync --daemon --no-detach "$OPTIONS" + +[Install] +WantedBy=multi-user.target diff --git a/SPECS/rsyncd.socket b/SPECS/rsyncd.socket new file mode 100644 index 0000000..7306ad0 --- /dev/null +++ b/SPECS/rsyncd.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Rsync Server Socket +Conflicts=rsyncd.service + +[Socket] +ListenStream=873 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/SPECS/rsyncd.sysconfig b/SPECS/rsyncd.sysconfig new file mode 100644 index 0000000..90a5a43 --- /dev/null +++ b/SPECS/rsyncd.sysconfig @@ -0,0 +1 @@ +OPTIONS="" diff --git a/SPECS/rsyncd@.service b/SPECS/rsyncd@.service new file mode 100644 index 0000000..89f9621 --- /dev/null +++ b/SPECS/rsyncd@.service @@ -0,0 +1,8 @@ +[Unit] +Description=fast remote file copy program daemon +ConditionPathExists=/etc/rsyncd.conf + +[Service] +EnvironmentFile=/etc/sysconfig/rsyncd +ExecStart=/usr/bin/rsync --daemon --no-detach "$OPTIONS" +StandardInput=socket