Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rsync/
Date: Fri, 30 Sep 2022 21:11:58
Message-Id: 1664571215.1ebe0b8fa12b7f481eebe1d5fb764b9981b2b95e.sam@gentoo
1 commit: 1ebe0b8fa12b7f481eebe1d5fb764b9981b2b95e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 20:46:01 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 20:53:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ebe0b8f
7
8 net-misc/rsync: add 3.2.7_pre1
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/rsync/Manifest | 2 +
13 net-misc/rsync/rsync-3.2.7_pre1.ebuild | 167 +++++++++++++++++++++++++++++++++
14 2 files changed, 169 insertions(+)
15
16 diff --git a/net-misc/rsync/Manifest b/net-misc/rsync/Manifest
17 index 5503dee54155..a6ef7293f59b 100644
18 --- a/net-misc/rsync/Manifest
19 +++ b/net-misc/rsync/Manifest
20 @@ -4,3 +4,5 @@ DIST rsync-3.2.5.tar.gz 1129957 BLAKE2B a0d1c4a2dbebe37bad4f6e2e5e4fae41c53529d9
21 DIST rsync-3.2.5.tar.gz.asc 195 BLAKE2B 9ca9034afc39299c2178190412b188f561d274d8e38d58a988487f2db14a8135840acf3413096d26f080358b69779fa3b48e292670ba6b23ae4eb0c05f9df614 SHA512 b384f48b2fd459a51715c8ab2a14e540c5fa7f7f12453282db770893d6121b1b3c9809e667ccacaf910fd90548abeb700a2c717d76fbea22fe3d6a22aa6b2c44
22 DIST rsync-3.2.6.tar.gz 1138593 BLAKE2B fa0c4aa9cdffbc9ffd4f81e8c3cdc1fda7080f80c1923084c6d705e6872caaba31c13de4603c9462f312dbbdae76520c27d3f4f40b327f1e66c7127b1d05ea73 SHA512 d141d04732c91e055708e8d1f14b976f9483208a93076bb66dc75cbf87d54f2dcbffc11423f0c9c005d2d4e20cb9c147a7672f7a9c0b987f4e2c39b4c3645cfe
23 DIST rsync-3.2.6.tar.gz.asc 195 BLAKE2B 945c60ca67aa4234bc9d5b38c9228125f3040bccecf60c08892286c1b4fa32878d92bfc78ee664d4f6453ccaaf6d394dbe203f0a8be149e557fabede1c111b07 SHA512 1316b358dfa87ad7c35b2b5d11e0be111a182041150cf9c9ae30f73e0af1430a59136250dc853f784e9e80d0ee20cc46e9a34b07cc7c7a48040db168a8c8941b
24 +DIST rsync-3.2.7pre1.tar.gz 1146970 BLAKE2B a41ef2acdff2b4e6703beb47b6ac90ec40d56bb53492b0a7aba268ebaf4e6bc19a7bde8fbac1ae35ed9062f2d37dd9a5ef0dd17ce8f78a0dab9f184959fd2ce5 SHA512 98eac7e0734e7dc8874fa51265419b40431b9bdc1861a16f8ccec6aa2b42df86532fb7585c19f2c814ad2e71ebf420414120cef434c6712279e453b14fd853f9
25 +DIST rsync-3.2.7pre1.tar.gz.asc 195 BLAKE2B bb497c19f53e7b465771425c4ee20582b46ea8af652232a58602d8e007fa4a10a237303e46ef22e78432606e95462161930de200b064ab1d2addcadc9dceae50 SHA512 6fb46e8b3a510dd7602003d6ced6d8cda57e5e2c8df4e1f2036c169e51fe21b460b6e6a42fc1c9c8fdc31c37d9992c287d64f529e019d629f35b4a43ab1eb1d8
26
27 diff --git a/net-misc/rsync/rsync-3.2.7_pre1.ebuild b/net-misc/rsync/rsync-3.2.7_pre1.ebuild
28 new file mode 100644
29 index 000000000000..804909ae11e6
30 --- /dev/null
31 +++ b/net-misc/rsync/rsync-3.2.7_pre1.ebuild
32 @@ -0,0 +1,167 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +# Uncomment when introducing a patch which touches configure
39 +#RSYNC_NEEDS_AUTOCONF=1
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +inherit prefix python-single-r1 systemd
42 +
43 +DESCRIPTION="File transfer program to keep remote files into sync"
44 +HOMEPAGE="https://rsync.samba.org/"
45 +if [[ ${PV} == *9999 ]] ; then
46 + EGIT_REPO_URI="https://github.com/WayneD/rsync.git"
47 + inherit autotools git-r3
48 +
49 + REQUIRED_USE="${PYTHON_REQUIRED_USE}"
50 +else
51 + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/waynedavison.asc
52 + inherit verify-sig
53 +
54 + if [[ -n ${RSYNC_NEEDS_AUTOCONF} ]] ; then
55 + inherit autotools
56 + fi
57 +
58 + if [[ ${PV} == *_pre* ]] ; then
59 + SRC_DIR="src-previews"
60 + else
61 + SRC_DIR="src"
62 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
63 + fi
64 +
65 + SRC_URI="https://rsync.samba.org/ftp/rsync/${SRC_DIR}/${P/_/}.tar.gz
66 + verify-sig? ( https://rsync.samba.org/ftp/rsync/${SRC_DIR}/${P/_/}.tar.gz.asc )"
67 + S="${WORKDIR}"/${P/_/}
68 +fi
69 +
70 +LICENSE="GPL-3"
71 +SLOT="0"
72 +IUSE="acl examples iconv lz4 ssl stunnel system-zlib xattr xxhash zstd"
73 +REQUIRED_USE+=" examples? ( ${PYTHON_REQUIRED_USE} )"
74 +
75 +RDEPEND="
76 + >=dev-libs/popt-1.5
77 + acl? ( virtual/acl )
78 + examples? (
79 + ${PYTHON_DEPS}
80 + dev-lang/perl
81 + )
82 + lz4? ( app-arch/lz4:= )
83 + ssl? ( dev-libs/openssl:= )
84 + system-zlib? ( sys-libs/zlib )
85 + xattr? ( kernel_linux? ( sys-apps/attr ) )
86 + xxhash? ( >=dev-libs/xxhash-0.8 )
87 + zstd? ( >=app-arch/zstd-1.4:= )
88 + iconv? ( virtual/libiconv )"
89 +DEPEND="${RDEPEND}"
90 +BDEPEND="examples? ( ${PYTHON_DEPS} )"
91 +
92 +if [[ ${PV} == *9999 ]] ; then
93 + BDEPEND+=" ${PYTHON_DEPS}
94 + $(python_gen_cond_dep '
95 + dev-python/commonmark[${PYTHON_USEDEP}]
96 + ')"
97 +else
98 + BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-waynedavison )"
99 +fi
100 +
101 +pkg_setup() {
102 + # - USE=examples needs Python itself at runtime, but nothing else
103 + # - 9999 needs commonmark at build time
104 + if [[ ${PV} == *9999 ]] || use examples ; then
105 + python-single-r1_pkg_setup
106 + fi
107 +}
108 +
109 +src_prepare() {
110 + default
111 +
112 + if [[ ${PV} == *9999 || -n ${RSYNC_NEEDS_AUTOCONF} ]] ; then
113 + eaclocal -I m4
114 + eautoconf -o configure.sh
115 + eautoheader && touch config.h.in
116 + fi
117 +}
118 +
119 +src_configure() {
120 + local myeconfargs=(
121 + --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
122 + --without-included-popt
123 + --enable-ipv6
124 + $(use_enable acl acl-support)
125 + $(use_enable iconv)
126 + $(use_enable lz4)
127 + $(use_enable ssl openssl)
128 + $(use_with !system-zlib included-zlib)
129 + $(use_enable xattr xattr-support)
130 + $(use_enable xxhash)
131 + $(use_enable zstd)
132 + )
133 +
134 + econf "${myeconfargs[@]}"
135 +}
136 +
137 +src_install() {
138 + emake DESTDIR="${D}" install
139 +
140 + newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
141 + newinitd "${FILESDIR}"/rsyncd.init.d-r1 rsyncd
142 +
143 + dodoc NEWS.md README.md TODO tech_report.tex
144 +
145 + insinto /etc
146 + newins "${FILESDIR}"/rsyncd.conf-3.0.9-r1 rsyncd.conf
147 +
148 + insinto /etc/logrotate.d
149 + newins "${FILESDIR}"/rsyncd.logrotate rsyncd
150 +
151 + insinto /etc/xinetd.d
152 + newins "${FILESDIR}"/rsyncd.xinetd-3.0.9-r1 rsyncd
153 +
154 + # Install stunnel helpers
155 + if use stunnel ; then
156 + emake DESTDIR="${D}" install-ssl-daemon
157 + fi
158 +
159 + # Install the useful contrib scripts
160 + if use examples ; then
161 + python_fix_shebang support/
162 +
163 + exeinto /usr/share/rsync
164 + doexe support/*
165 +
166 + rm -f "${ED}"/usr/share/rsync/{Makefile*,*.c}
167 + fi
168 +
169 + eprefixify "${ED}"/etc/{,xinetd.d}/rsyncd*
170 +
171 + systemd_newunit packaging/systemd/rsync.service rsyncd.service
172 +}
173 +
174 +pkg_postinst() {
175 + if grep -Eqis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
176 + "${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; then
177 + ewarn "You have disabled chroot support in your rsyncd.conf. This"
178 + ewarn "is a security risk which you should fix. Please check your"
179 + ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
180 + fi
181 +
182 + if use stunnel ; then
183 + einfo "Please install \">=net-misc/stunnel-4\" in order to use stunnel feature."
184 + einfo
185 + einfo "You maybe have to update the certificates configured in"
186 + einfo "${EROOT}/etc/stunnel/rsync.conf"
187 + fi
188 +
189 + if use system-zlib ; then
190 + ewarn "Using system-zlib is incompatible with <rsync-3.1.1 when"
191 + ewarn "using the --compress option."
192 + ewarn
193 + ewarn "When syncing with >=rsync-3.1.1 built with bundled zlib,"
194 + ewarn "and the --compress option, add --new-compress (-zz)."
195 + ewarn
196 + ewarn "For syncing the portage tree, add:"
197 + ewarn "PORTAGE_RSYNC_EXTRA_OPTS=\"--new-compress\" to make.conf"
198 + fi
199 +}