1 |
commit: d7e57fded90449f06950c4e78fdd65da1f047b19 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 08:42:24 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 08:42:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7e57fde |
7 |
|
8 |
net-misc/rsync: Bump to version 3.2.2_pre1 |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-misc/rsync/Manifest | 1 + |
14 |
net-misc/rsync/rsync-3.2.2_pre1.ebuild | 152 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 153 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/rsync/Manifest b/net-misc/rsync/Manifest |
18 |
index ea52537c282..cd247855aa0 100644 |
19 |
--- a/net-misc/rsync/Manifest |
20 |
+++ b/net-misc/rsync/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST rsync-3.2.0.tar.gz 1048009 BLAKE2B 641be077a88958a09b083fd9658ae7f40ce3565bee1959f0c7ef82c61356a070e7ca1e0ceeb96b7a1b31a5ee031a84733ade3965aaa93f9e18795df16a6c1460 SHA512 01a109e1e061bb7f4734b694e1f15a83efdd8fcb1995e5eeea75a8d245eead4412c09b37b0fcdfe522e368673768e4fa5ed8891ccf3ae42f60293e4e68d506c2 |
23 |
DIST rsync-3.2.1.tar.gz 1051665 BLAKE2B de1ee047b9a378cd16fceb188d0a2e14e78751c8295263e183888b464ced9263be600bbb04b7793d48e7aa1fd2ab0709d717234f346cc6a5a028c3daddcb019e SHA512 80d639ab56a993de8016115fe15794bb9aa7012e4a8300402954760566a821c230af9dcdb19143d70663497a830289212ce329fb0c4fd5c4b6f392d850e5fd8c |
24 |
+DIST rsync-3.2.2pre1.tar.gz 1055617 BLAKE2B 4035c77f9e86a84bfd173903f5f6d4a954344b4eb1d1b267c1a86a5a74bd61d190f9fbcffa0b838278b89b29ebce47244eafc05d012753ae1b3a5d77682de3f2 SHA512 a8f1ddc62307615f9173cbe45ee4b2f6eab93833441ab76582b0226f44b58bb18f2e2cb0ce03092c8b4c153b4ae616ccf2c15411003360857611383b05aca25e |
25 |
|
26 |
diff --git a/net-misc/rsync/rsync-3.2.2_pre1.ebuild b/net-misc/rsync/rsync-3.2.2_pre1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c02794fd0b9 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/rsync/rsync-3.2.2_pre1.ebuild |
31 |
@@ -0,0 +1,152 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit flag-o-matic prefix systemd |
38 |
+ |
39 |
+DESCRIPTION="File transfer program to keep remote files into sync" |
40 |
+HOMEPAGE="https://rsync.samba.org/" |
41 |
+if [[ "${PV}" == *9999 ]] ; then |
42 |
+ PYTHON_COMPAT=( python3_{6,7,8} ) |
43 |
+ inherit autotools git-r3 python-any-r1 |
44 |
+ EGIT_REPO_URI="https://github.com/WayneD/rsync.git" |
45 |
+else |
46 |
+ if [[ "${PV}" == *_pre* ]] ; then |
47 |
+ SRC_DIR="src-previews" |
48 |
+ else |
49 |
+ SRC_DIR="src" |
50 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+ fi |
52 |
+ SRC_URI="https://rsync.samba.org/ftp/rsync/${SRC_DIR}/${P/_/}.tar.gz" |
53 |
+ S="${WORKDIR}/${P/_/}" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="GPL-3" |
57 |
+SLOT="0" |
58 |
+IUSE_CPU_FLAGS_X86=" sse2" |
59 |
+IUSE="acl examples iconv ipv6 libressl lz4 ssl static stunnel system-zlib xattr xxhash zstd" |
60 |
+IUSE+=" ${IUSE_CPU_FLAGS_X86// / cpu_flags_x86_}" |
61 |
+ |
62 |
+LIB_DEPEND="acl? ( virtual/acl[static-libs(+)] ) |
63 |
+ lz4? ( app-arch/lz4[static-libs(+)] ) |
64 |
+ ssl? ( |
65 |
+ !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) |
66 |
+ libressl? ( dev-libs/libressl:0=[static-libs(+)] ) |
67 |
+ ) |
68 |
+ system-zlib? ( sys-libs/zlib[static-libs(+)] ) |
69 |
+ xattr? ( kernel_linux? ( sys-apps/attr[static-libs(+)] ) ) |
70 |
+ xxhash? ( dev-libs/xxhash[static-libs(+)] ) |
71 |
+ zstd? ( app-arch/zstd[static-libs(+)] ) |
72 |
+ >=dev-libs/popt-1.5[static-libs(+)]" |
73 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
74 |
+ iconv? ( virtual/libiconv )" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ static? ( ${LIB_DEPEND} )" |
77 |
+ |
78 |
+if [[ "${PV}" == *9999 ]] ; then |
79 |
+ BDEPEND="${PYTHON_DEPS} |
80 |
+ $(python_gen_any_dep ' |
81 |
+ dev-python/commonmark[${PYTHON_USEDEP}] |
82 |
+ ')" |
83 |
+fi |
84 |
+ |
85 |
+# Only required for live ebuild |
86 |
+python_check_deps() { |
87 |
+ has_version "dev-python/commonmark[${PYTHON_USEDEP}]" |
88 |
+} |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ if [[ "${PV}" == *9999 ]] ; then |
93 |
+ eaclocal -I m4 |
94 |
+ eautoconf -o configure.sh |
95 |
+ eautoheader && touch config.h.in |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ use static && append-ldflags -static |
101 |
+ local myeconfargs=( |
102 |
+ --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf |
103 |
+ --without-included-popt |
104 |
+ $(use_enable acl acl-support) |
105 |
+ $(use_enable iconv) |
106 |
+ $(use_enable ipv6) |
107 |
+ $(use_enable lz4) |
108 |
+ $(use_enable ssl openssl) |
109 |
+ $(use_with !system-zlib included-zlib) |
110 |
+ $(use_enable xattr xattr-support) |
111 |
+ $(use_enable xxhash) |
112 |
+ $(use_enable zstd) |
113 |
+ ) |
114 |
+ |
115 |
+ if [[ "${ARCH}" == "amd64" ]] ; then |
116 |
+ # SIMD is only available for x86_64 right now (#728868) |
117 |
+ myeconfargs+=( $(use_enable cpu_flags_x86_sse2 simd) ) |
118 |
+ else |
119 |
+ myeconfargs+=( --disable-simd ) |
120 |
+ fi |
121 |
+ |
122 |
+ econf "${myeconfargs[@]}" |
123 |
+ [[ "${PV}" == *9999 ]] || touch proto.h-tstamp #421625 |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ emake DESTDIR="${D}" install |
128 |
+ |
129 |
+ newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd |
130 |
+ newinitd "${FILESDIR}"/rsyncd.init.d-r1 rsyncd |
131 |
+ |
132 |
+ dodoc NEWS.md README.md TODO tech_report.tex |
133 |
+ |
134 |
+ insinto /etc |
135 |
+ newins "${FILESDIR}"/rsyncd.conf-3.0.9-r1 rsyncd.conf |
136 |
+ |
137 |
+ insinto /etc/logrotate.d |
138 |
+ newins "${FILESDIR}"/rsyncd.logrotate rsyncd |
139 |
+ |
140 |
+ insinto /etc/xinetd.d |
141 |
+ newins "${FILESDIR}"/rsyncd.xinetd-3.0.9-r1 rsyncd |
142 |
+ |
143 |
+ # Install stunnel helpers |
144 |
+ if use stunnel ; then |
145 |
+ emake DESTDIR="${D}" install-ssl-daemon |
146 |
+ fi |
147 |
+ |
148 |
+ # Install the useful contrib scripts |
149 |
+ if use examples ; then |
150 |
+ exeinto /usr/share/rsync |
151 |
+ doexe support/* |
152 |
+ rm -f "${ED}"/usr/share/rsync/{Makefile*,*.c} |
153 |
+ fi |
154 |
+ |
155 |
+ eprefixify "${ED}"/etc/{,xinetd.d}/rsyncd* |
156 |
+ |
157 |
+ systemd_dounit "${FILESDIR}/rsyncd.service" |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \ |
162 |
+ "${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; then |
163 |
+ ewarn "You have disabled chroot support in your rsyncd.conf. This" |
164 |
+ ewarn "is a security risk which you should fix. Please check your" |
165 |
+ ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'." |
166 |
+ fi |
167 |
+ if use stunnel ; then |
168 |
+ einfo "Please install \">=net-misc/stunnel-4\" in order to use stunnel feature." |
169 |
+ einfo |
170 |
+ einfo "You maybe have to update the certificates configured in" |
171 |
+ einfo "${EROOT}/etc/stunnel/rsync.conf" |
172 |
+ fi |
173 |
+ if use system-zlib ; then |
174 |
+ ewarn "Using system-zlib is incompatible with <rsync-3.1.1 when" |
175 |
+ ewarn "using the --compress option." |
176 |
+ ewarn |
177 |
+ ewarn "When syncing with >=rsync-3.1.1 built with bundled zlib," |
178 |
+ ewarn "and the --compress option, add --new-compress (-zz)." |
179 |
+ ewarn |
180 |
+ ewarn "For syncing the portage tree, add:" |
181 |
+ ewarn "PORTAGE_RSYNC_EXTRA_OPTS=\"--new-compress\" to make.conf" |
182 |
+ fi |
183 |
+} |