blob: c2ef44a58b865c1c776387a08c961aa1dacab40b (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic toolchain-funcs
DESCRIPTION="openGuru is an utility used to read Abit uGuru sensors"
HOMEPAGE="http://forum.abit-usa.com/showpost.php?p=532726"
SRC_URI="http://hem.bredband.net/b330708/oguru/oguru.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}
src_compile() {
! has_hardened && CFLAGS="${CFLAGS} -Wl,-z,now"
$(tc-getCC) ${CFLAGS} -o ${PN} main.c openGuru.c || die "Compile failed"
}
src_install() {
into /usr
dobin openguru
# segfaults if not run with root privs
fowners root:wheel /usr/bin/openguru
fperms 4510 /usr/bin/openguru
}
pkg_postinst() {
elog "Now you can run ${PN} as root to read sensors values."
ewarn "If you want non-root users to be able to use ${PN} as well,"
ewarn "you must add them to wheel group - see man usermod."
}
|