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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Mar 1 22:12:26 2014 UTC (6 years, 8 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Update libgcrypt dep to use slot :0.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

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.2.2.ebuild,v 1.3 2013/02/28 19:51:26 idl0r Exp $
4
5 EAPI=4
6
7 inherit autotools eutils
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"
21
22 RDEPEND="dev-libs/libgcrypt:0"
23 DEPEND="${RDEPEND}
24 virtual/os-headers"
25 RDEPEND="${RDEPEND}
26 sys-apps/openrc"
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${PN}-1.1.1-strictaliasing.patch
31
32 AT_M4DIR="config" eautoreconf
33 }
34
35 src_configure() {
36 econf \
37 $(use_enable debug) \
38 --disable-dependency-tracking \
39 --enable-fast-install \
40 --disable-static \
41 --disable-init-scripts \
42 --localstatedir=/var
43 }
44
45 # There are no tests
46 src_test() { :; }
47
48 src_install() {
49 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install
50 find "${D}" -name '*.la' -delete
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 dodoc AUTHORS ChangeLog* DISCLAIMER* NEWS README* TODO doc/*.txt
67
68 keepdir \
69 /var/cache/ipmimonitoringsdrcache \
70 /var/lib/freeipmi \
71 /var/log/ipmiconsole
72
73 # starting from version 1.2.0 the two daemons are similar enough
74 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmidetectd
75 newconfd "${FILESDIR}"/ipmidetectd.confd ipmidetectd
76
77 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 bmc-watchdog
78 newconfd "${FILESDIR}"/bmc-watchdog.confd bmc-watchdog
79
80 newinitd "${FILESDIR}"/bmc-watchdog.initd.4 ipmiseld
81 newconfd "${FILESDIR}"/ipmiseld.confd ipmiseld
82 }

  ViewVC Help
Powered by ViewVC 1.1.20