/[gentoo-x86]/app-shells/pdsh/pdsh-2.18-r1.ebuild
Gentoo

Contents of /app-shells/pdsh/pdsh-2.18-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 10 18:22:03 2014 UTC (5 years, 6 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/pdsh/pdsh-2.18-r1.ebuild,v 1.3 2010/04/22 17:08:14 ssuominen Exp $
4
5 EAPI="2"
6
7 inherit eutils autotools
8
9 DESCRIPTION="A high-performance, parallel remote shell utility"
10 HOMEPAGE="https://computing.llnl.gov/linux/pdsh.html"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="crypt readline rsh"
16 RDEPEND="crypt? ( net-misc/openssh )
17 rsh? ( net-misc/netkit-rsh )
18 readline? ( sys-libs/readline )"
19 DEPEND="${RDEPEND}"
20
21 # Feel free to debug the test suite. Running the tests
22 # by hand instead of using pdsh.exp seems to print out
23 # what is expected, so the error is most likely in the
24 # testsuite itself.
25 # You'll also need dev-util/dejagnu
26 RESTRICT="test"
27
28 pkg_setup() {
29 local m
30 local valid_modules=":xcpu:ssh:exec:qshell:genders:nodeupdown:mrsh:mqshell:dshgroups:netgroup:"
31
32 PDSH_MODULE_LIST="${PDSH_MODULE_LIST:-netgroup}"
33 MODULE_CONFIG=""
34 for m in ${PDSH_MODULE_LIST}; do
35 if [[ "${valid_modules}" == *:${m}:* ]]; then
36 MODULE_CONFIG="${MODULE_CONFIG} --with-${m}"
37 fi
38 done
39
40 elog "Building ${PF} with the following modules:"
41 elog " ${PDSH_MODULE_LIST}"
42 elog "This list can be changed in /etc/make.conf by setting"
43 elog "PDSH_MODULE_LIST=\"module1 module2...\""
44 }
45
46 src_prepare() {
47 epatch "${FILESDIR}"/pdsh-2.18-unbundle-libtool.patch
48 eautoreconf
49 }
50
51 src_configure() {
52 econf ${MODULE_CONFIG} \
53 --with-machines \
54 $(use_with crypt ssh) \
55 $(use_with rsh) \
56 $(use_with readline) \
57 || die "configure failed"
58 }
59
60 src_install() {
61 emake DESTDIR="${D}" install || die "emake install failed"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20