/[gentoo-x86]/sys-libs/freeipmi/freeipmi-1.4.8.ebuild
Gentoo

Contents of /sys-libs/freeipmi/freeipmi-1.4.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 7 20:02:22 2015 UTC (5 years, 9 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/freeipmi/freeipmi-1.4.6-r1.ebuild,v 1.1 2014/11/12 01:16:31 flameeyes Exp $
4
5 EAPI=5
6
7 #AUTOTOOLS_AUTORECONF=1
8 AT_M4DIR="config"
9
10 inherit eutils multilib autotools-utils
11
12 DESCRIPTION="Provides Remote-Console and System Management Software as per IPMI v1.5/2.0"
13 HOMEPAGE="http://www.gnu.org/software/freeipmi/"
14
15 MY_P="${P/_/.}"
16 S="${WORKDIR}"/${MY_P}
17 [[ ${MY_P} == *.beta* ]] && ALPHA="-alpha"
18 SRC_URI="mirror://gnu${ALPHA}/${PN}/${MY_P}.tar.gz"
19
20 LICENSE="GPL-3"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23 IUSE="debug nagios"
24
25 RDEPEND="dev-libs/libgcrypt:0"
26 DEPEND="${RDEPEND}
27 virtual/os-headers"
28 RDEPEND="${RDEPEND}
29 nagios? (
30 || ( net-analyzer/icinga net-analyzer/nagios )
31 dev-lang/perl
32 )
33 sys-apps/openrc"
34
35 src_configure() {
36 local myeconfargs=(
37 $(use_enable debug)
38 --disable-static
39 --disable-init-scripts
40 --localstatedir=/var
41 )
42
43 autotools-utils_src_configure
44 }
45
46 # There are no tests
47 src_test() { :; }
48
49 src_install() {
50 autotools-utils_src_install
51
52 # freeipmi by defaults install _all_ commands to /usr/sbin, but
53 # quite a few can be run remotely as standard user, so move them
54 # in /usr/bin afterwards.
55 dodir /usr/bin
56 for file in ipmi{detect,ping,power,console}; do
57 mv "${D}"/usr/{s,}bin/${file} || die
58
59 # The default install symlinks these commands to add a dash
60 # after the ipmi prefix; we repeat those after move for
61 # consistency.
62 rm "${D}"/usr/sbin/${file/ipmi/ipmi-}
63 dosym ${file} /usr/bin/${file/ipmi/ipmi-}
64 done
65
66 # Install the nagios plugin in its proper place, if desired
67 if use nagios; then
68 dodir /usr/$(get_libdir)/nagios/plugins
69 mv "${D}"/usr/share/doc/${PF}/contrib/nagios/nagios_ipmi_sensors.pl \
70 "${D}"/usr/$(get_libdir)/nagios/plugins/ || die
71 fperms 0755 /usr/$(get_libdir)/nagios/plugins/nagios_ipmi_sensors.pl
72
73 insinto /etc/icinga/conf.d
74 newins "${FILESDIR}"/freeipmi.icinga freeipmi-command.cfg
75 fi
76
77 dodoc AUTHORS ChangeLog* DISCLAIMER* NEWS README* TODO doc/*.txt
78
79 keepdir \
80 /var/cache/ipmimonitoringsdrcache \
81 /var/lib/freeipmi \
82 /var/log/ipmiconsole
83
84 # starting from version 1.2.0 the two daemons are similar enough
85 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmidetectd
86 newconfd "${FILESDIR}"/ipmidetectd.confd ipmidetectd
87
88 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 bmc-watchdog
89 newconfd "${FILESDIR}"/bmc-watchdog.confd bmc-watchdog
90
91 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmiseld
92 newconfd "${FILESDIR}"/ipmiseld.confd ipmiseld
93 }

  ViewVC Help
Powered by ViewVC 1.1.20