Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 387394 Details for
Bug 526872
=app-laptop/hdapsd-20141024: version bump request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
hdapsd-20141024.ebuild
hdapsd-20141024.ebuild (text/plain), 1.78 KB, created by
Michael Orlitzky
on 2014-10-26 02:00:22 UTC
(
hide
)
Description:
hdapsd-20141024.ebuild
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2014-10-26 02:00:22 UTC
Size:
1.78 KB
patch
obsolete
># Copyright 1999-2014 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=5 >inherit linux-info readme.gentoo systemd > >DESCRIPTION="IBM ThinkPad Hard Drive Active Protection System (HDAPS) daemon" >HOMEPAGE="https://github.com/evgeni/${PN}/" >SRC_URI="https://github.com/evgeni/${PN}/releases/download/${PV}/${P}.tar.gz" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="libconfig" > >DEPEND="libconfig? ( dev-libs/libconfig )" >RDEPEND="${DEPEND}" > >pkg_setup() { > # We require the hdaps module which can either come from kernel sources > # or from the tp_smapi package. > if ! has_version app-laptop/tp_smapi[hdaps]; then > CONFIG_CHECK="~SENSORS_HDAPS" > ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi (with hdaps USE enabled) or support for CONFIG_SENSORS_HDAPS enabled" > linux-info_pkg_setup > fi > > DOC_CONTENTS="You can change the default frequency by modifing /sys/devices/platform/hdaps/sampling_rate. > You might need to enable shock protection manually by running:\n > # echo -1 > /sys/block/DEVICE/device/unload_heads" >} > >src_configure(){ > econf \ > $(use_enable libconfig) \ > --with-systemdsystemunitdir=$(systemd_get_unitdir) \ > --docdir="${EROOT}usr/share/doc/${PF}" >} > >src_install() { > default > newconfd "${FILESDIR}"/hdapsd.conf.3 hdapsd > newinitd "${FILESDIR}"/hdapsd.init.3 hdapsd > readme.gentoo_create_doc >} > >pkg_postinst(){ > [[ -z $(ls "${EROOT}"sys/block/*/queue/protect 2>/dev/null) ]] && \ > [[ -z $(ls "${EROOT}"sys/block/*/device/unload_heads 2>/dev/null) ]] && \ > ewarn "Your kernel does NOT support shock protection." > > if ! has_version app-laptop/tp_smapi[hdaps]; then > ewarn "Using the hdaps module provided by app-laptop/tp_smapi instead" > ewarn "of the in-kernel driver is strongly recommended!" > fi > > readme.gentoo_print_elog >}
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 526872
: 387394 |
387396
|
387398
|
387400