1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Internet
11 url = http://rsync.samba.org/
13 summary = A program for synchronizing files over a network.
16 Rsync uses a reliable algorithm to bring remote and host files into
17 sync very quickly. Rsync is fast because it just sends the differences
18 in the files over the network instead of sending the complete
19 files. Rsync is often used as a very powerful mirroring process or
20 just as a more capable replacement for the rcp command. A technical
21 report which describes the rsync algorithm is included in this
25 source_dl = http://rsync.samba.org/ftp/rsync/
26 sources += %{name}-patches-%{version}.tar.gz
40 configure_options += \
41 --without-included-popt \
42 --without-included-zlib
46 # Fix permission issure.
47 cd %{DIR_APP} && chmod -x support/*
49 # Apply upstream patches.
50 patch -Np1 -i patches/acls.diff
51 patch -Np1 -i patches/xattrs.diff
52 patch -Np1 -i patches/copy-devices.diff
57 # Regenerate build environment.
62 make_build_targets = proto all
65 # Fix permissions of testsuite helper script.
67 # Otherwise some tests of the testsuite will fail,
68 # because the script is not allowed to be executed.
69 chmod +x ./support/lsh.sh
74 make_install_targets += \
75 INSTALLCMD="install -p" \
76 INSTALLMAN="install -p"
80 # Install config file.
81 mkdir -pv %{BUILDROOT}%{sysconfdir}
83 install -m 0644 %{DIR_SOURCE}/rsyncd.conf \
84 %{BUILDROOT}%{sysconfdir}/
86 # Create directory for pidfile.
87 mkdir -pv %{BUILDROOT}/run/rsyncd
95 %{sysconfdir}/rsyncd.conf
99 systemctl daemon-reload >/dev/null 2>&1 || :
103 systemctl --no-reload disable rsyncd.service >/dev/null 2>&1 || :
104 systemctl --no-reload disable rsyncd.socket >/dev/null 2>&1 || :
105 systemctl stop rsyncd.service >/dev/null 2>&1 || :
106 systemctl stop rsyncd.socket >/dev/null 2>&1 || :
107 systemctl stop rsyncd@.service >/dev/null 2>&1 || :
111 systemctl daemon-reload >/dev/null 2>&1 || :
115 systemctl daemon-reload >/dev/null 2>&1 || :
116 systemctl try-restart rsyncd.service >/dev/null 2>&1 || :
120 package %{name}-debuginfo