1 |
commit: 6d59fdbe4d1fdf770040ff7396c5b0e7a43ac160 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Aug 26 20:50:22 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 25 02:55:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d59fdbe |
7 |
|
8 |
app-shells/pdsh: EAPI8, no git in autoconf |
9 |
|
10 |
Closes: https://bugs.gentoo.org/780339 |
11 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
12 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/22121 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
app-shells/pdsh/pdsh-2.34-r1.ebuild | 70 +++++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/app-shells/pdsh/pdsh-2.34-r1.ebuild b/app-shells/pdsh/pdsh-2.34-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..98f5fcc4ae7 |
22 |
--- /dev/null |
23 |
+++ b/app-shells/pdsh/pdsh-2.34-r1.ebuild |
24 |
@@ -0,0 +1,70 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=8 |
29 |
+ |
30 |
+inherit autotools |
31 |
+ |
32 |
+DESCRIPTION="A high-performance, parallel remote shell utility" |
33 |
+HOMEPAGE="https://github.com/chaos/pdsh" |
34 |
+SRC_URI="https://github.com/chaos/pdsh/archive/${P}.tar.gz" |
35 |
+S="${WORKDIR}/${PN}-${P}" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="crypt readline rsh test" |
41 |
+RESTRICT="!test? ( test )" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ crypt? ( net-misc/openssh ) |
45 |
+ rsh? ( net-misc/netkit-rsh ) |
46 |
+ readline? ( sys-libs/readline:0= )" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND="test? ( dev-util/dejagnu )" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}/${PN}-2.34-slibtool.patch" |
52 |
+) |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ PDSH_MODULE_LIST="${PDSH_MODULE_LIST:-netgroup}" |
56 |
+ MODULE_CONFIG="" |
57 |
+ |
58 |
+ local m |
59 |
+ local valid_modules=":xcpu:ssh:exec:qshell:genders:nodeupdown:mrsh:mqshell:dshgroups:netgroup:" |
60 |
+ |
61 |
+ for m in ${PDSH_MODULE_LIST}; do |
62 |
+ if [[ "${valid_modules}" == *:${m}:* ]]; then |
63 |
+ MODULE_CONFIG="${MODULE_CONFIG} --with-${m}" |
64 |
+ fi |
65 |
+ done |
66 |
+ |
67 |
+ elog "Building ${PF} with the following modules:" |
68 |
+ elog " ${PDSH_MODULE_LIST}" |
69 |
+ elog "This list can be changed in /etc/portage/make.conf by setting" |
70 |
+ elog "PDSH_MODULE_LIST=\"module1 module2...\"" |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ sed \ |
76 |
+ -e '/git describe/d' \ |
77 |
+ -e "s|AC_INIT(\[pdsh\],|AC_INIT(\[pdsh\],\[${PV}\])|g" \ |
78 |
+ -i configure.ac \ |
79 |
+ || die |
80 |
+ eautoreconf |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local myconf=( |
85 |
+ ${MODULE_CONFIG} |
86 |
+ --with-machines |
87 |
+ --enable-shared |
88 |
+ --disable-static |
89 |
+ $(use_with crypt ssh) |
90 |
+ $(use_with rsh) |
91 |
+ $(use_with readline) |
92 |
+ ) |
93 |
+ econf "${myconf[@]}" |
94 |
+} |