From 3b9dba49d3b2cff2dfda2a781bb4286b4e0ae358 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 26 Oct 2014 23:57:05 -0400 Subject: [PATCH] Use versioned init/conf files and clean up the ebuild a little. --- app-laptop/hdapsd/Manifest | 6 ++--- .../{hdapsd.conf.3 => hdapsd.conf-20141024} | 0 .../{hdapsd.init.3 => hdapsd.init-20141024} | 0 app-laptop/hdapsd/hdapsd-20141024.ebuild | 25 +++++++++++++------ 4 files changed, 21 insertions(+), 10 deletions(-) rename app-laptop/hdapsd/files/{hdapsd.conf.3 => hdapsd.conf-20141024} (100%) rename app-laptop/hdapsd/files/{hdapsd.init.3 => hdapsd.init-20141024} (100%) diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest index 01c0e3e..941acb9 100644 --- a/app-laptop/hdapsd/Manifest +++ b/app-laptop/hdapsd/Manifest @@ -1,5 +1,5 @@ -AUX hdapsd.conf.3 739 SHA256 dd37f05c2d2e76e9e12f7b5398a1b4a64b765ecf97c48320a7d278411e808e33 SHA512 e03c7f02af2789a784284f10eed10e10edb82e2ad16d3794299cc9622c00a047f30df7f7d553ef572e265815684d1e783932e0f3b219cca44f0e1f74dc045944 WHIRLPOOL fadc681435c884bbd56115989ce9ee461bd81c8f4aa6b77a607464ee48bf11389b6659401bccd509b1ce057cef28ff08a98b87b9b6a2ae70a746c4afc4ef0ec8 -AUX hdapsd.init.3 2176 SHA256 7a78680ea4db28bf3aed9d777550d2f08e3b1b6b29e91f44ee549b9d14b11615 SHA512 2b6826f27a5c0308d29dc993c0685feee1d21615ce7222a1fc8dbcc4451ef9ea7913c91068459ac25bbdce2d656ad3f2d51a57e6e9b3eb0db99deee262c21885 WHIRLPOOL 0e0ae497280d903e78d8dcb4df3e53f0ad632aa480bf0263386494cc8a48a007cf1e1d2bbebd1c5b49cc6d44641b0f209c02c773b931f7f67c9a73483888b1e4 +AUX hdapsd.conf-20141024 739 SHA256 dd37f05c2d2e76e9e12f7b5398a1b4a64b765ecf97c48320a7d278411e808e33 SHA512 e03c7f02af2789a784284f10eed10e10edb82e2ad16d3794299cc9622c00a047f30df7f7d553ef572e265815684d1e783932e0f3b219cca44f0e1f74dc045944 WHIRLPOOL fadc681435c884bbd56115989ce9ee461bd81c8f4aa6b77a607464ee48bf11389b6659401bccd509b1ce057cef28ff08a98b87b9b6a2ae70a746c4afc4ef0ec8 +AUX hdapsd.init-20141024 2176 SHA256 7a78680ea4db28bf3aed9d777550d2f08e3b1b6b29e91f44ee549b9d14b11615 SHA512 2b6826f27a5c0308d29dc993c0685feee1d21615ce7222a1fc8dbcc4451ef9ea7913c91068459ac25bbdce2d656ad3f2d51a57e6e9b3eb0db99deee262c21885 WHIRLPOOL 0e0ae497280d903e78d8dcb4df3e53f0ad632aa480bf0263386494cc8a48a007cf1e1d2bbebd1c5b49cc6d44641b0f209c02c773b931f7f67c9a73483888b1e4 DIST hdapsd-20141024.tar.gz 128580 SHA256 4a9f7c4d6351bd31757f236ad832ceccf10280d32bcaf4c25d15dc4ecc84581f SHA512 2d956ce1e6691f41d0f39a4d29c244b5a7ed7ebed4c979a39131e311a4cea3374150cd4ca1da4033e483c3ea0da4e8ca01f20e599a65278dd0674e29a086c540 WHIRLPOOL ed1c536fde7e212e38af8ba54d8a712d70b550d647ec93aff05c866ee7e2e41a563adb73fd20e3e540c87c90089a41c60fe3ec8c8406785bc59446d7f0b94831 -EBUILD hdapsd-20141024.ebuild 1820 SHA256 7669d3f0b6604956134c62766e2a26d247fa8f273121793081353bd717617e72 SHA512 3dcc516289d690fbfaebe138cec07f8193794ce64feb509325b485a7f817b41403338dc4fccbbb00234bc0f0a4ad29996b251354529f1f22f37465ee06b5c517 WHIRLPOOL 85d2683c3e2898bacfd48d7434189168be6c8b833cad5463082bb7608354778f5a09574561e42c7af17bad0985311b9615363767c57d593155d8168c002242d4 +EBUILD hdapsd-20141024.ebuild 1922 SHA256 82ad9d48f5c10afdea423dadcd6622c70cf31240646e90c856c408d722f857e5 SHA512 5d9338e12ffc240ae178962627a24ecb0343e7921600ba92cfeb07a565337b01ddf4fa5e9e1bf3d8b4332adb86b9d8bddf27c724c53f12f5027c59118a6039f1 WHIRLPOOL dd91fae5343e17aed64a9538355a62d539478a44a50dbfa687349a21cd4d053abac785c02972b1f593656cd4592acc9f49c156736ea9c6b25ede896d1e159de7 MISC metadata.xml 411 SHA256 7b1b223aca5553979c2d593e5c8611ab4a2c4d3135b35511213fba3fb626c3c0 SHA512 4430613ede7fc6207250a505e246f9e81e68cb7f23bea4ac79a60ef2001a4f62f4e0db09c28b0a71cdbdcf547e5c62c669db210780cede0b5fa3e079866e10dd WHIRLPOOL 1c50cc056fa80da79ecfe890b319121b56cd12ed9ab1775858e3dcb41d3d30d427d8091ed49341508fd45099022df4de7f848cc25fd3531f344ca4c9498bf2a2 diff --git a/app-laptop/hdapsd/files/hdapsd.conf.3 b/app-laptop/hdapsd/files/hdapsd.conf-20141024 similarity index 100% rename from app-laptop/hdapsd/files/hdapsd.conf.3 rename to app-laptop/hdapsd/files/hdapsd.conf-20141024 diff --git a/app-laptop/hdapsd/files/hdapsd.init.3 b/app-laptop/hdapsd/files/hdapsd.init-20141024 similarity index 100% rename from app-laptop/hdapsd/files/hdapsd.init.3 rename to app-laptop/hdapsd/files/hdapsd.init-20141024 diff --git a/app-laptop/hdapsd/hdapsd-20141024.ebuild b/app-laptop/hdapsd/hdapsd-20141024.ebuild index a4e29e0..d3af8e8 100644 --- a/app-laptop/hdapsd/hdapsd-20141024.ebuild +++ b/app-laptop/hdapsd/hdapsd-20141024.ebuild @@ -22,13 +22,11 @@ pkg_setup() { # 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" + ERROR_SENSORS_HDAPS="${P} requires app-laptop/tp_smapi (with hdaps " + ERROR_SENSORS_HDAPS+="USE enabled) or kernel support for " + ERROR_SENSORS_HDAPS+="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(){ @@ -40,8 +38,8 @@ src_configure(){ src_install() { default - newconfd "${FILESDIR}"/hdapsd.conf.3 hdapsd - newinitd "${FILESDIR}"/hdapsd.init.3 hdapsd + newconfd "${FILESDIR}/hdapsd.conf-${PV}" hdapsd + newinitd "${FILESDIR}/hdapsd.init-${PV}" hdapsd readme.gentoo_create_doc } @@ -57,3 +55,16 @@ pkg_postinst(){ readme.gentoo_print_elog } + +DISABLE_AUTOFORMATTING=1 +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: + + # echo -1 > /sys/block/DEVICE/device/unload_heads + +as root. +' -- 2.43.2