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

(-)hdapsd-20060409-r1.ebuild.old (-5 / +6 lines)
Lines 34-40 Link Here
34
	newinitd "${FILESDIR}"/hdapsd.init hdapsd
34
	newinitd "${FILESDIR}"/hdapsd.init hdapsd
35
35
36
	# Install our kernel patches
36
	# Install our kernel patches
37
	dodoc *.patch "${FILESDIR}"/hdaps-Z60m.patch
37
	insinto /usr/share/${PN}
38
	doins *.patch "${FILESDIR}"/hdaps-Z60m.patch
38
}
39
}
39
40
40
# Yes, this sucks as the source location may change, kernel sources may not be
41
# Yes, this sucks as the source location may change, kernel sources may not be
Lines 53-63 Link Here
53
pkg_config() {
54
pkg_config() {
54
	kernel_patched && return 0
55
	kernel_patched && return 0
55
56
56
	local docdir="${ROOT}/usr/share/doc/${PF}/"
57
	local dir="${ROOT}/usr/share/${PN}"
57
	local p="hdaps_protect-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.patch.gz"
58
	local p="hdaps_protect-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.patch.gz"
58
59
59
	# We need to find our FILESDIR as it's now lost
60
	# We need to find our FILESDIR as it's now lost
60
	if [[ ! -e ${docdir}/${p} ]] ; then
61
	if [[ ! -e ${dir}/${p} ]] ; then
61
		eerror "We don't have a patch for kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} yet"
62
		eerror "We don't have a patch for kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} yet"
62
		return 1
63
		return 1
63
	fi
64
	fi
Lines 68-78 Link Here
68
	fi
69
	fi
69
70
70
	cd "${KERNEL_DIR}"
71
	cd "${KERNEL_DIR}"
71
	epatch "${docdir}/${p}"
72
	epatch "${dir}/${p}"
72
73
73
	# This is just a nice to have for me as I use a Z60m myself
74
	# This is just a nice to have for me as I use a Z60m myself
74
	if ! grep -q "Z60m" "${KERNEL_DIR}"/drivers/hwmon/hdaps.c ; then
75
	if ! grep -q "Z60m" "${KERNEL_DIR}"/drivers/hwmon/hdaps.c ; then
75
		epatch "${docdir}"/hdaps-Z60m.patch.gz
76
		epatch "${dir}"/hdaps-Z60m.patch.gz
76
	fi
77
	fi
77
78
78
	echo
79
	echo

Return to bug 164518