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