diff options
Diffstat (limited to 'app-laptop/hdapsd')
-rw-r--r-- | app-laptop/hdapsd/ChangeLog | 39 | ||||
-rw-r--r-- | app-laptop/hdapsd/Manifest | 29 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/digest-hdapsd-20070524 | 6 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/hdaps-Z60m.patch | 10 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/hdapsd.conf | 11 | ||||
-rw-r--r-- | app-laptop/hdapsd/files/hdapsd.init | 49 | ||||
-rw-r--r-- | app-laptop/hdapsd/hdapsd-20070524.ebuild | 94 | ||||
-rw-r--r-- | app-laptop/hdapsd/metadata.xml | 11 |
8 files changed, 0 insertions, 249 deletions
diff --git a/app-laptop/hdapsd/ChangeLog b/app-laptop/hdapsd/ChangeLog deleted file mode 100644 index 326950c..0000000 --- a/app-laptop/hdapsd/ChangeLog +++ /dev/null @@ -1,39 +0,0 @@ -# ChangeLog for app-laptop/hdapsd -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.7 2007/08/29 18:55:52 genstef Exp $ - -*hdapsd-20060409-r1.ebuild (29 Aug 2007) -*hdapsd-20060409.ebuild (29 Aug 2007) - - 29 Aug 2007; Stefan Schweizer <genstef@gentoo.org> hdapsd-20060409.ebuild, - hdapsd-20060409-r1.ebuild: - Fix config checks, thanks jieryn <jieryn@gmail.com> in bug 190047 - - 19 Apr 2007; Tony Vroon <chainsaw@gentoo.org> metadata.xml: - Taking maintainership. - - 23 Jan 2007; Marius Mauch <genone@gentoo.org> hdapsd-20060409.ebuild, - hdapsd-20060409-r1.ebuild: - Replacing einfo with elog - -*hdapsd-20060409-r1 (05 Dec 2006) - - 05 Dec 2006; Roy Marples <uberlord@gentoo.org> files/hdapsd.init, - +hdapsd-20060409-r1.ebuild: - Bump for a new patchset, works on 2.6.18 and 2.6.19 kernels. - Fixes #142376 and #148423 - - 28 Jun 2006; Roy Marples <uberlord@gentoo.org> hdapsd-20060409.ebuild: - Remove syslog stuff as it was invalid for scsi/sata systems. - Detect patched kernel via /sys in pkg_postinst as kernel sources may not be - installed and the warning may be in error. - - 27 Jun 2006; Roy Marples <uberlord@gentoo.org> +files/hdaps-Z60m.patch, - hdapsd-20060409.ebuild: - Added a kernel patch so --config can enable hdaps on my Z60m - -*hdapsd-20060409 (26 Jun 2006) - - 26 Jun 2006; Roy Marples <uberlord@gentoo.org> +files/hdapsd.conf, - +files/hdapsd.init, +metadata.xml, +hdapsd-20060409.ebuild: - Initial import based on the work by Michael Gaber and Jeff Grafton, #119845. diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest deleted file mode 100644 index 6b3de3c..0000000 --- a/app-laptop/hdapsd/Manifest +++ /dev/null @@ -1,29 +0,0 @@ -AUX hdaps-Z60m.patch 352 RMD160 963be45785af235fa3e0d74d68d2e75fad663396 SHA1 317de158fdacdd379a94b0652b54ed48525a71bc SHA256 05b0def085f637bae8561a825d7ff3ffc51bdd33609b1520e2d30aa807f00016 -MD5 d2dc49b9cfea10c6e8b09fc8a3077bc4 files/hdaps-Z60m.patch 352 -RMD160 963be45785af235fa3e0d74d68d2e75fad663396 files/hdaps-Z60m.patch 352 -SHA256 05b0def085f637bae8561a825d7ff3ffc51bdd33609b1520e2d30aa807f00016 files/hdaps-Z60m.patch 352 -AUX hdapsd.conf 321 RMD160 5bb760d34bca3f5a12aeb057b78de7e2a9065bc3 SHA1 ade013dab6278a385b4658aad7e871b743380689 SHA256 22e1acf385427052a12858db005fd73d42d9f6818fb253b032cd326101df2e34 -MD5 ef4095f13d4c1a5363c3ed2e0528bd08 files/hdapsd.conf 321 -RMD160 5bb760d34bca3f5a12aeb057b78de7e2a9065bc3 files/hdapsd.conf 321 -SHA256 22e1acf385427052a12858db005fd73d42d9f6818fb253b032cd326101df2e34 files/hdapsd.conf 321 -AUX hdapsd.init 1267 RMD160 1ae521bcf38ace4904d97d64eedb4d72eaaffa23 SHA1 24bd54b9a322dcfc0c54d82093160a1965a8e118 SHA256 3555618d1613c3d60d5164b9f9e70fd7ac1ccf6f6b1f30d53aac33a901487964 -MD5 5adbdfabe13cf2add3346679d02eb2d2 files/hdapsd.init 1267 -RMD160 1ae521bcf38ace4904d97d64eedb4d72eaaffa23 files/hdapsd.init 1267 -SHA256 3555618d1613c3d60d5164b9f9e70fd7ac1ccf6f6b1f30d53aac33a901487964 files/hdapsd.init 1267 -DIST hdaps_protect-patches-2.tar.bz2 10203 RMD160 899a109b58b7aa4949012cd447275d2f3957951e SHA1 67599f3c1a5daaa298f6f1d30168ab0f6c45f407 SHA256 59cfe2535f3d11d1fe54d3c6acb3d2471c461af7770816aeec02411566d38c4b -DIST hdapsd-20070524.c 16425 RMD160 06a4ef3f1fb9b1ece95a37fc08480c6b63a2b2bb SHA1 bc8f1a41996e365a9d6071546bc7aef97edd2d9a SHA256 3a72755fc66bfaddc52fb7df4ac94308e2fb3ea706ba96684036e68786249784 -EBUILD hdapsd-20070524.ebuild 2435 RMD160 90a1799151c45cb970e009c6b34908b51e6f1efb SHA1 340e0c77084285ff0f7f6761ca0fc10beaf673bd SHA256 312f93a1e470fc4487937de6033f369873b1681bf089877c805a3baddf9548a4 -MD5 141b64ed820d45b19e511140f5840e63 hdapsd-20070524.ebuild 2435 -RMD160 90a1799151c45cb970e009c6b34908b51e6f1efb hdapsd-20070524.ebuild 2435 -SHA256 312f93a1e470fc4487937de6033f369873b1681bf089877c805a3baddf9548a4 hdapsd-20070524.ebuild 2435 -MISC ChangeLog 1572 RMD160 b445fb3578154d8da87d4c7c7f96882248dbc19f SHA1 c720473a0aee835d0f62b6336838b26b495804a8 SHA256 45c81b6f6f8233742db0ba727b06242c7898c9a8d2595ff55eb7f04da2860d0e -MD5 87743bcc068c8efbe4e5498bd376bfe6 ChangeLog 1572 -RMD160 b445fb3578154d8da87d4c7c7f96882248dbc19f ChangeLog 1572 -SHA256 45c81b6f6f8233742db0ba727b06242c7898c9a8d2595ff55eb7f04da2860d0e ChangeLog 1572 -MISC metadata.xml 355 RMD160 5ca3ed157f7f031a97030b1911fe673ead73b9a5 SHA1 5a27f7151d0cd8f43380b8566f3602e3de423c62 SHA256 44de2fade812b9761d1a27833d5cf9db55dd3838db60788c91cce773ddf1f536 -MD5 3c417f6e4af8066f1ec3381359f78e75 metadata.xml 355 -RMD160 5ca3ed157f7f031a97030b1911fe673ead73b9a5 metadata.xml 355 -SHA256 44de2fade812b9761d1a27833d5cf9db55dd3838db60788c91cce773ddf1f536 metadata.xml 355 -MD5 75dfc04c7d383b290b125f026e889093 files/digest-hdapsd-20070524 500 -RMD160 dc3ef40189e7262b336df2e65f29c394cca61589 files/digest-hdapsd-20070524 500 -SHA256 6b70cfacd0023b252dc4cecc0fafa5b9de4c8a6efd0d8302687f018b2ae1225e files/digest-hdapsd-20070524 500 diff --git a/app-laptop/hdapsd/files/digest-hdapsd-20070524 b/app-laptop/hdapsd/files/digest-hdapsd-20070524 deleted file mode 100644 index b455691..0000000 --- a/app-laptop/hdapsd/files/digest-hdapsd-20070524 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 b7503b856a64783b8920a7c8d48eb3a3 hdaps_protect-patches-2.tar.bz2 10203 -RMD160 899a109b58b7aa4949012cd447275d2f3957951e hdaps_protect-patches-2.tar.bz2 10203 -SHA256 59cfe2535f3d11d1fe54d3c6acb3d2471c461af7770816aeec02411566d38c4b hdaps_protect-patches-2.tar.bz2 10203 -MD5 0332b6bef17424291cafb242ddd97d7c hdapsd-20070524.c 16425 -RMD160 06a4ef3f1fb9b1ece95a37fc08480c6b63a2b2bb hdapsd-20070524.c 16425 -SHA256 3a72755fc66bfaddc52fb7df4ac94308e2fb3ea706ba96684036e68786249784 hdapsd-20070524.c 16425 diff --git a/app-laptop/hdapsd/files/hdaps-Z60m.patch b/app-laptop/hdapsd/files/hdaps-Z60m.patch deleted file mode 100644 index 57c723c..0000000 --- a/app-laptop/hdapsd/files/hdaps-Z60m.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- drivers/hwmon/hdaps.c 2006-06-26 09:37:31.131424200 +0100 -+++ drivers/hwmon/hdaps.c 2006-06-26 09:39:49.000000000 +0100 -@@ -539,6 +539,7 @@ - HDAPS_DMI_MATCH_NORMAL("ThinkPad X41 Tablet"), - HDAPS_DMI_MATCH_NORMAL("ThinkPad X41"), - HDAPS_DMI_MATCH_LENOVO("ThinkPad X60"), -+ HDAPS_DMI_MATCH_NORMAL("ThinkPad Z60m"), - { .ident = NULL } - }; - diff --git a/app-laptop/hdapsd/files/hdapsd.conf b/app-laptop/hdapsd/files/hdapsd.conf deleted file mode 100644 index 6221909..0000000 --- a/app-laptop/hdapsd/files/hdapsd.conf +++ /dev/null @@ -1,11 +0,0 @@ -# The name of the disk device that hdapsd should monitor. -# Usually this is 'hda' or 'sda' the primary master. -DISK="sda" - -# hdapsd sensitivity -# The lower the threshold is the earlier -# the heads are parked when the laptop is shaked -THRESHOLD="10" - -# Set any extra options here, like -a for Adaptive mode -OPTIONS="-a" diff --git a/app-laptop/hdapsd/files/hdapsd.init b/app-laptop/hdapsd/files/hdapsd.init deleted file mode 100644 index a413490..0000000 --- a/app-laptop/hdapsd/files/hdapsd.init +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 - -depend() { - need localmount -} - -checkconfig() { - if [[ -z ${DISK} || -z ${THRESHOLD} ]] ; then - eerror "You should setup DISK and THRESHOLD in /etc/conf.d/hdapsd." - return 1 - fi - - if [[ ! -e /sys/block/${DISK}/queue/protect ]] ; then - eerror "No protect entry for ${DISK}!" - eerror "Make sure your kernel is patched with the blk_freeze patch" - return 1 - fi - - # Load the tp_smapi module first - # This is not a requirement, but it helps hdapsd adaptive mode - if [[ ! -e /sys/devices/platorm/smapi ]] ; then - modprobe tp_smapi 2>/dev/null - fi - - if [[ ! -d /sys/devices/platform/hdaps ]]; then - ebegin "Loading hdaps module" - modprobe hdaps - eend $? || return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting Hard Drive Active Protection System daemon" - start-stop-daemon --start --exec /usr/sbin/hdapsd \ - --pidfile /var/run/hdapsd.pid \ - -- -b -p -d "${DISK}" -s "${THRESHOLD}" ${OPTIONS} - eend $? -} - -stop() { - ebegin "Stopping Hard Drive Active Protection System daemon" - start-stop-daemon --stop --exec /usr/sbin/hdapsd \ - --pidfile /var/run/hdapsd.pid - eend $? -} diff --git a/app-laptop/hdapsd/hdapsd-20070524.ebuild b/app-laptop/hdapsd/hdapsd-20070524.ebuild deleted file mode 100644 index f5b9d33..0000000 --- a/app-laptop/hdapsd/hdapsd-20070524.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild,v 1.3 2007/08/29 18:55:52 genstef Exp $ - -inherit eutils linux-info toolchain-funcs - -PROTECT_VER="2" - -DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" -HOMEPAGE="http://hdaps.sourceforge.net/" -SRC_URI="http://www.dresco.co.uk/hdaps/${P}.c - 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)" - -src_unpack() { - cp "${DISTDIR}"/${P}.c . - unpack hdaps_protect-patches-${PROTECT_VER}.tar.bz2 -} -src_compile() { - $(tc-getCC) ${CFLAGS} "${P}".c -o hdapsd || die "failed to compile" -} - -src_install() { - dosbin hdapsd - newconfd "${FILESDIR}"/hdapsd.conf hdapsd - newinitd "${FILESDIR}"/hdapsd.init hdapsd - - # Install our kernel patches - dodoc *.patch "${FILESDIR}"/hdaps-Z60m.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.gz" - - # 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.gz - fi - - echo - einfo "Now you should rebuild your kernel, its modules" - einfo "and then install them." -} - -pkg_postinst(){ - [[ -n $(ls "${ROOT}"/sys/block/*/queue/protect 2>/dev/null) ]] && return 0 - - 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 -} diff --git a/app-laptop/hdapsd/metadata.xml b/app-laptop/hdapsd/metadata.xml deleted file mode 100644 index 38eab06..0000000 --- a/app-laptop/hdapsd/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>mobile</herd> - <maintainer> - <email>chainsaw@gentoo.org</email> - <name>Tony Vroon</name> - </maintainer> - <longdescription>IBM ThinkPad Harddrive Active Protection disk head parking - daemon</longdescription> -</pkgmetadata> |