Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134514 Details for
Bug 166166
app-laptop/hdapsd has been broken since about 2.6.18 kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for hdapsd-20070524 with new kernel patches for 2.6.20 to 2.6.23
hdapsd-20070524-r2.ebuild (text/plain), 2.98 KB, created by
Nik Raub
on 2007-10-27 23:29:07 UTC
(
hide
)
Description:
ebuild for hdapsd-20070524 with new kernel patches for 2.6.20 to 2.6.23
Filename:
MIME Type:
Creator:
Nik Raub
Created:
2007-10-27 23:29:07 UTC
Size:
2.98 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header $ > >inherit eutils linux-info > >PROTECT_VER="2" > >DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" >HOMEPAGE="http://hdaps.sourceforge.net/" >SRC_URI="http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/993-001.bin > http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/1077-001.bin > http://cache.gmane.org//gmane/linux/drivers/hdaps/devel/1077-002.bin > http://www.zen24593.zen.co.uk/hdaps/${P}.c > mirror://gentoo/hdaps_protect-patches-${PROTECT_VER}.tar.bz2" ># SRC_URI="mirror://gentoo/${P}.c.bz2 ># mirror://gentoo/hdaps_protect-patches-${PROTECT_VER}.tar.bz2" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86" > >IUSE="" >RDEPEND="" > >S="${WORKDIR}" > >CONFIG_CHECK="~SENSORS_HDAPS" >ERROR_SENSORS_HDAPS="${P} requires support for HDAPS (CONFIG_SENSORS_HDAPS) or app-laptop/tp_smapi" > > >src_unpack() { > cd "${WORKDIR}" > cp "${DISTDIR}"/"${P}".c . ># cp "${DISTDIR}"/hdaps_protect-2.6.20.patch.bz2 . ># bunzip2 hdaps_protect-2.6.20.patch.bz2 > cp "${DISTDIR}"/993-001.bin hdaps_protect-2.6.20.patch > cp "${DISTDIR}"/993-001.bin hdaps_protect-2.6.21.patch > cp "${DISTDIR}"/1077-001.bin hdaps_protect-2.6.22.patch > cp "${DISTDIR}"/1077-002.bin hdaps_protect-2.6.23.patch > tar -xjf "${DISTDIR}"/hdaps_protect-patches-"${PROTECT_VER}".tar.bz2 >} > >src_compile() { > cd "${WORKDIR}" > gcc ${CFLAGS} "${P}".c -o hdapsd || die "failed to compile" >} > >src_install() { > dosbin "${WORKDIR}"/hdapsd > newconfd "${FILESDIR}"/hdapsd.conf hdapsd > newinitd "${FILESDIR}"/hdapsd.init hdapsd > > # Install our kernel patches > dodoc *.patch "${FILESDIR}"/*.patch >} > ># Yes, this sucks as the source location may change, kernel sources may not be ># installed, but we try our best anyway >kernel_patched() { > get_version > > if grep -qs "blk_protect_register" "${KERNEL_DIR}"/block/ll_rw_blk.c ; then > einfo "Your kernel has already been patched for blk_freeze" > return 0 > fi > > return 1 >} > >pkg_config() { > kernel_patched && return 0 > > local docdir="${ROOT}/usr/share/doc/${PF}/" > local p="hdaps_protect-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.patch.bz2" > > # We need to find our FILESDIR as it's now lost > if [[ ! -e ${docdir}/${p} ]] ; then > eerror "We don't have a patch for kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} yet" > return 1 > fi > > if [[ ! -d ${KERNEL_DIR} ]] ; then > eerror "Kernel sources not found!" > return 1 > fi > > cd "${KERNEL_DIR}" > epatch "${docdir}/${p}" > > # This is just a nice to have for me as I use a Z60m myself > if ! grep -q "Z60m" "${KERNEL_DIR}"/drivers/hwmon/hdaps.c ; then > epatch "${docdir}"/hdaps-Z60m.patch.bz2 > fi > > echo > einfo "Now you should rebuild your kernel, its modules" > einfo "and then install them." > ewarn "Be sure to look at" > ewarn "http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993" >} > >pkg_postinst(){ > if ! kernel_patched ; then > ewarn "Your kernel has NOT been patched for blk_freeze" > elog "The ebuild can attempt to patch your kernel like so" > elog " emerge --config =${PF}" > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 166166
:
121020
|
125631
| 134514 |
146829
|
167586
|
173738
|
175470
|
175473
|
179153
|
180324
|
187844
|
187845
|
187928