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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 14 18:36:25 2014 UTC (6 years, 4 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Mark stable on amd64, tested by me and robbat2@.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20