]> git.ipfire.org Git - ipfire-3.x.git/blame - rsync/rsync.nm
clamav: Update to 0.101.4
[ipfire-3.x.git] / rsync / rsync.nm
CommitLineData
ca81edda 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
ca81edda
MT
4###############################################################################
5
802ea3af 6name = rsync
7473defb 7version = 3.1.2
22f8b3bc 8release = 2
ca81edda 9
802ea3af
MT
10groups = Applications/Internet
11url = http://rsync.samba.org/
12license = GPLv3+
13summary = A program for synchronizing files over a network.
ca81edda 14
802ea3af 15description
ca81edda
MT
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
22 package.
802ea3af
MT
23end
24
25source_dl = http://rsync.samba.org/ftp/rsync/
26sources += %{name}-patches-%{version}.tar.gz
27
28build
29 requires
30 autoconf
31 libacl-devel
32 libattr-devel
33 popt-devel
7473defb
SS
34 zlib-devel
35
36 # Testsuite.
37 %{bindir}/setfacl
802ea3af 38 end
ca81edda 39
7473defb
SS
40 configure_options += \
41 --without-included-popt \
42 --without-included-zlib
43
44
802ea3af
MT
45 prepare_cmds
46 # Fix permission issure.
47 cd %{DIR_APP} && chmod -x support/*
ca81edda 48
802ea3af
MT
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
ca81edda 53
802ea3af
MT
54 # Remove cache.
55 rm -fr autum4te.cache
ca81edda 56
802ea3af
MT
57 # Regenerate build environment.
58 autoconf
59 autoheader
60 end
ca81edda 61
802ea3af 62 make_build_targets = proto all
ca81edda 63
7473defb
SS
64 test
65 # Fix permissions of testsuite helper script.
66 #
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
70
71 make check
72 end
73
802ea3af
MT
74 make_install_targets += \
75 INSTALLCMD="install -p" \
76 INSTALLMAN="install -p"
ca81edda 77
802ea3af 78 install_cmds
7473defb
SS
79
80 # Install config file.
81 mkdir -pv %{BUILDROOT}%{sysconfdir}
82
83 install -m 0644 %{DIR_SOURCE}/rsyncd.conf \
84 %{BUILDROOT}%{sysconfdir}/
85
86 # Create directory for pidfile.
87 mkdir -pv %{BUILDROOT}/run/rsyncd
802ea3af 88 end
7473defb 89
802ea3af 90end
ca81edda 91
802ea3af
MT
92packages
93 package %{name}
7473defb
SS
94 configfiles
95 %{sysconfdir}/rsyncd.conf
96 end
97
98 script postin
99 systemctl daemon-reload >/dev/null 2>&1 || :
100 end
101
102 script preun
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 || :
108 end
109
110 script postun
111 systemctl daemon-reload >/dev/null 2>&1 || :
112 end
113
114 script postup
115 systemctl daemon-reload >/dev/null 2>&1 || :
116 systemctl try-restart rsyncd.service >/dev/null 2>&1 || :
117 end
802ea3af 118 end
1f9bc2f0
MT
119
120 package %{name}-debuginfo
121 template DEBUGINFO
122 end
802ea3af 123end