| 16 |
16 |
|
| 17 |
17 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
| 18 |
18 |
else
|
|
19 |
# For >3.5.1, see https://github.com/RsyncProject/rsync/issues/1097
|
|
20 |
# releases might be signed by non-tridge.
|
| 19 |
21 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/andrewtridgell.asc
|
| 20 |
22 |
inherit verify-sig
|
| 21 |
23 |
|
| ... | ... | |
| 36 |
38 |
RESTRICT="fetch"
|
| 37 |
39 |
else
|
| 38 |
40 |
SRC_DIR="src"
|
| 39 |
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
|
41 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
|
| 40 |
42 |
|
| 41 |
43 |
SRC_URI="
|
| 42 |
44 |
https://rsync.samba.org/ftp/rsync/${SRC_DIR}/${P/_/}.tar.gz
|
| ... | ... | |
| 50 |
52 |
fi
|
| 51 |
53 |
fi
|
| 52 |
54 |
|
| 53 |
|
LICENSE="GPL-3"
|
|
55 |
# GPL-2 for init script
|
|
56 |
LICENSE="GPL-3 GPL-3+ GPL-2"
|
| 54 |
57 |
SLOT="0"
|
| 55 |
|
IUSE="acl examples iconv lz4 rrsync ssl stunnel system-zlib test xattr +xxhash zstd"
|
|
58 |
IUSE="acl examples iconv idn lz4 rrsync ssl stunnel system-zlib test xattr +xxhash zstd"
|
| 56 |
59 |
RESTRICT+=" !test? ( test )"
|
| 57 |
60 |
REQUIRED_USE+="
|
| 58 |
61 |
examples? ( ${PYTHON_REQUIRED_USE} )
|
| ... | ... | |
| 67 |
70 |
${PYTHON_DEPS}
|
| 68 |
71 |
dev-lang/perl
|
| 69 |
72 |
)
|
|
73 |
iconv? ( virtual/libiconv )
|
|
74 |
idn? ( net-dns/libidn2:= )
|
| 70 |
75 |
lz4? ( app-arch/lz4:= )
|
| 71 |
76 |
rrsync? (
|
| 72 |
77 |
${PYTHON_DEPS}
|
| ... | ... | |
| 78 |
83 |
system-zlib? ( virtual/zlib:= )
|
| 79 |
84 |
xxhash? ( >=dev-libs/xxhash-0.8 )
|
| 80 |
85 |
zstd? ( >=app-arch/zstd-1.4:= )
|
| 81 |
|
iconv? ( virtual/libiconv )"
|
|
86 |
"
|
| 82 |
87 |
DEPEND="${RDEPEND}"
|
| 83 |
88 |
BDEPEND="
|
| 84 |
89 |
examples? ( ${PYTHON_DEPS} )
|
| ... | ... | |
| 135 |
140 |
--enable-ipv6
|
| 136 |
141 |
$(use_enable acl acl-support)
|
| 137 |
142 |
$(use_enable iconv)
|
|
143 |
$(use_enable idn)
|
| 138 |
144 |
$(use_enable lz4)
|
| 139 |
145 |
$(use_with rrsync)
|
| 140 |
146 |
$(use_enable ssl openssl)
|
| ... | ... | |
| 155 |
161 |
emake DESTDIR="${D}" install
|
| 156 |
162 |
|
| 157 |
163 |
newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
|
| 158 |
|
newinitd "${FILESDIR}"/rsyncd.init.d-r1 rsyncd
|
|
164 |
newinitd "${FILESDIR}"/rsyncd.init.d-r2 rsyncd
|
| 159 |
165 |
|
| 160 |
166 |
dodoc NEWS.md README.md TODO tech_report.tex
|
| 161 |
167 |
|
| ... | ... | |
| 163 |
169 |
newins "${FILESDIR}"/rsyncd.conf-3.2.7-r5 rsyncd.conf
|
| 164 |
170 |
|
| 165 |
171 |
insinto /etc/logrotate.d
|
| 166 |
|
newins "${FILESDIR}"/rsyncd.logrotate rsyncd
|
|
172 |
newins "${FILESDIR}"/rsyncd.logrotate-r1 rsyncd
|
| 167 |
173 |
|
| 168 |
174 |
insinto /etc/xinetd.d
|
| 169 |
175 |
newins "${FILESDIR}"/rsyncd.xinetd-3.0.9-r1 rsyncd
|
| ... | ... | |
| 188 |
194 |
eprefixify "${ED}"/etc/{,xinetd.d}/rsyncd*
|
| 189 |
195 |
|
| 190 |
196 |
systemd_newunit packaging/systemd/rsync.service rsyncd.service
|
|
197 |
systemd_newunit packaging/systemd/rsync@.service 'rsyncd@.service'
|
|
198 |
systemd_newunit packaging/systemd/rsync.socket rsyncd.socket
|
| 191 |
199 |
}
|
| 192 |
200 |
|
| 193 |
201 |
pkg_postinst() {
|