Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374163
Collapse All | Expand All

(-)hddtemp-0.3_beta15-r4.orig (-9 / +11 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild,v 1.3 2011/06/12 13:18:20 spock Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta15-r4.ebuild,v 1.3 2011/06/12 13:18:20 spock Exp $
4
4
5
EAPI=4
6
5
inherit eutils autotools
7
inherit eutils autotools
6
8
7
MY_P=${P/_beta/-beta}
9
MY_P=${P/_beta/-beta}
Lines 20-28 Link Here
20
22
21
S="${WORKDIR}/${MY_P}"
23
S="${WORKDIR}/${MY_P}"
22
24
23
src_unpack() {
25
src_prepare() {
24
	unpack ${A}
25
	cd "${S}"
26
	epatch "${FILESDIR}"/${P}-satacmds.patch
26
	epatch "${FILESDIR}"/${P}-satacmds.patch
27
	epatch "${FILESDIR}"/${P}-byteswap.patch
27
	epatch "${FILESDIR}"/${P}-byteswap.patch
28
	epatch "${FILESDIR}"/${P}-execinfo.patch
28
	epatch "${FILESDIR}"/${P}-execinfo.patch
Lines 31-48 Link Here
31
	AT_M4DIR="m4" eautoreconf
31
	AT_M4DIR="m4" eautoreconf
32
}
32
}
33
33
34
src_compile() {
34
src_configure() {
35
	local myconf
35
	local myconf
36
36
37
	myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
37
	myconf="--with-db-path=/usr/share/hddtemp/hddtemp.db"
38
	# disabling nls breaks compiling
38
	# disabling nls breaks compiling
39
	use nls || myconf="--disable-nls ${myconf}"
39
	use nls || myconf="--disable-nls ${myconf}"
40
	econf ${myconf} || die
40
	econf ${myconf}
41
	emake || die
41
}
42
43
src_compile() {
44
	emake
42
}
45
}
43
46
44
src_install() {
47
src_install() {
45
	make DESTDIR="${D}" install || die
48
	default
46
	dodoc README TODO ChangeLog
49
	dodoc README TODO ChangeLog
47
50
48
	insinto /usr/share/hddtemp
51
	insinto /usr/share/hddtemp
Lines 58-65 Link Here
58
	if use network-cron ; then
61
	if use network-cron ; then
59
		exeinto /etc/cron.monthly
62
		exeinto /etc/cron.monthly
60
		echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
63
		echo -e "#!/bin/sh\n/usr/sbin/update-hddtemp.db" > "${T}"/hddtemp.cron
61
		newexe "${T}"/hddtemp.cron update-hddtemp.db \
64
		newexe "${T}"/hddtemp.cron update-hddtemp.db
62
			|| die "Failed to install update cronjob"
63
	fi
65
	fi
64
}
66
}
65
67

Return to bug 374163