blob: 7ba09fb153902cac5f2c3df7af4c0278d4fc7775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/xmbmon/xmbmon-2.0.5.ebuild,v 1.1 2005/02/05 03:32:54 matsuu Exp $
inherit gnuconfig eutils
MY_P="${PN}${PV//.}"
DESCRIPTION="Mother Board Monitor Program for X Window System"
HOMEPAGE="http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html"
SRC_URI="http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}.tar.gz
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}_fflush.patch"
# http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}_A7N8X-VM.patch
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="X"
DEPEND="virtual/libc
X? ( virtual/x11 )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
# epatch ${DISTDIR}/${MY_P}_A7N8X-VM.patch
epatch ${DISTDIR}/${MY_P}_fflush.patch
epatch ${FILESDIR}/${P}-amd64.patch
sed -i -e "/^CFLAGS=/s/-O3/${CFLAGS}/" Makefile.in || die
}
src_compile() {
gnuconfig_update
econf || die "Configure failed"
emake mbmon || die "Make mbmon failed"
if use X ; then
emake xmbmon || die "Make xmbmon failed"
fi
}
src_install() {
dosbin mbmon
doman mbmon.1
if use X ; then
dosbin xmbmon
doman xmbmon.1x
insinto /etc/X11/app-defaults/
newins xmbmon.resources XMBmon
fi
dodoc ChangeLog* ReadMe* mbmon-rrd.pl
}
pkg_postinst() {
echo
einfo "These programs access SMBus/ISA-IO ports without any kind"
einfo "of checking. It is, therefore, very dangerous and may cause"
einfo "a system-crash. Make sure you read ReadMe,"
einfo "section 4, 'How to use!'"
echo
}
|