From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- app-laptop/hdapsd/Manifest | 2 +- app-laptop/hdapsd/hdapsd-20141203-r1.ebuild | 72 ---------------------------- app-laptop/hdapsd/hdapsd-20141203-r2.ebuild | 73 +++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 73 deletions(-) delete mode 100644 app-laptop/hdapsd/hdapsd-20141203-r1.ebuild create mode 100644 app-laptop/hdapsd/hdapsd-20141203-r2.ebuild (limited to 'app-laptop/hdapsd') diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest index 05418c9ff662..4211834f4d07 100644 --- a/app-laptop/hdapsd/Manifest +++ b/app-laptop/hdapsd/Manifest @@ -1,5 +1,5 @@ AUX hdapsd.conf-20141024 739 BLAKE2B ebd52e9bc5d4849b842cb579ca4ea0892227c94c483d9ec0b9b1dbcf975bfdfb0079460a29dedb6e60236cf9a37814efdd900c6e8c8d4791deb2e81f37dfbbd6 SHA512 e03c7f02af2789a784284f10eed10e10edb82e2ad16d3794299cc9622c00a047f30df7f7d553ef572e265815684d1e783932e0f3b219cca44f0e1f74dc045944 AUX hdapsd.init-20141024 2177 BLAKE2B c790b9899ca67ecee13a3af54dc821020f551ec35e94866328e28b00ea79eb2f8ba88e618d6b1d854add6024abb75f7fdc1393bfff853f16e2ab4bfb16e03799 SHA512 e45b7e6fafd047c6fe7b172ad552c23b0000b90099a9a12e5a09133258e90d5f121bfa5e8a638f1dcd35110e54fc1da2462cdd501ebb65878286f623c7baa6dc DIST hdapsd-20141203.tar.gz 128818 BLAKE2B 0219e30e032032dfd729e97f526eb7402fe4cb72245589ef03cca28f75a6e1f2cbfa55c5aa5599b24f496bbe662467077415fbec47caa1db17d6108e07292daa SHA512 19c1a8b362f15864b71f4fb221c0993b43b3b2d965d5826af06fb9f6b0e345e5da99181493e13e230c7fe77060ae5b373027e8ec90a511566a6ccaef43998178 -EBUILD hdapsd-20141203-r1.ebuild 2159 BLAKE2B 9f6a089e3495fb1568c1799f26d6329c3bf9b88e76bbb277f45fa093ff058aaaf0c7ddb02f0c7c0b5823884528319a7469d07786fe20e93c29fef1e3f708c547 SHA512 37efbeab2f59de16efcb530cd95a54a6331aa6c7ce314fa587b30ad3a23505bee2f339900cc8c4bc6c122faaedc1bb99387868d5c63ac47e84a9100b755e67ff +EBUILD hdapsd-20141203-r2.ebuild 2183 BLAKE2B ebbebdd87b20ed6a4681d1b270ba69b462da528e0e7c5e553c7cda28c8dae71744089de747f4e9e03890cb35560eb6e23a163c855a622870e25637a87c36b583 SHA512 2b154fd3c40fa8e46822ee0cd8da3b554cf579c46f572ad0a0b9873f0402a826165a49dd8bec9179a5763f31fed758c211e952134b086978ab446d1dc56870e6 MISC metadata.xml 673 BLAKE2B d0dd1b8ff7d65cf628b0bd9841072a578953fec9d343a87ff91666de3f74079e911ce578a732b32cd6a3709c92ae6dcf13ac899d635f84e67c770af6212a315a SHA512 296b864ed6a816faa8dd2e65471cb74a0b8a99b29dcf315bc4d31cb81f77a1c7982cc1f1929b2331ae57d0bef3a73273793b0b8da04142d0df13d364c3ab6545 diff --git a/app-laptop/hdapsd/hdapsd-20141203-r1.ebuild b/app-laptop/hdapsd/hdapsd-20141203-r1.ebuild deleted file mode 100644 index d3cea62d792d..000000000000 --- a/app-laptop/hdapsd/hdapsd-20141203-r1.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit linux-info readme.gentoo systemd - -DESCRIPTION="IBM ThinkPad Hard Drive Active Protection System (HDAPS) daemon" -HOMEPAGE="https://github.com/evgeni/hdapsd/" -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 either the - # kernel itself (CONFIG_SENSORS_HDAPS) 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[hdaps] or " - ERROR_SENSORS_HDAPS+="kernel support for CONFIG_SENSORS_HDAPS enabled" - linux-info_pkg_setup - fi -} - -src_configure() { - econf \ - $(use_enable libconfig) \ - --with-systemdsystemunitdir=$(systemd_get_unitdir) \ - --docdir="/usr/share/doc/${PF}" -} - -src_install() { - default - newconfd "${FILESDIR}/hdapsd.conf-20141024" hdapsd - newinitd "${FILESDIR}/hdapsd.init-20141024" hdapsd - readme.gentoo_create_doc -} - -pkg_postinst() { - [[ -z $(ls "${ROOT}"sys/block/*/queue/protect 2>/dev/null) ]] && \ - [[ -z $(ls "${ROOT}"sys/block/*/device/unload_heads 2>/dev/null) ]] && \ - ewarn "Your kernel does NOT support shock protection." - - readme.gentoo_print_elog -} - -DISABLE_AUTOFORMATTING=1 -DOC_CONTENTS=" -${PN} requires a kernel module to function properly. The recommended -approach is to install app-laptop/tp_smapi[hdaps], but the in-tree -module provided by CONFIG_SENSORS_HDAPS may work as well. - -Common daemon parameters can be set in ${EROOT}etc/conf.d/${PN}. If the -package was installed with USE=libconfig, then the parameters can also -be set in ${EROOT}etc/${PN}.conf, although the former will take -precedence over the latter if both are used. - -You can change the default sampling rate by modifing - - /sys/devices/platform/hdaps/sampling_rate - -and you may need to enable shock protection manually by running - - # echo -1 > /sys/block//device/unload_heads - -as root. -" diff --git a/app-laptop/hdapsd/hdapsd-20141203-r2.ebuild b/app-laptop/hdapsd/hdapsd-20141203-r2.ebuild new file mode 100644 index 000000000000..831a25bcbe7e --- /dev/null +++ b/app-laptop/hdapsd/hdapsd-20141203-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-info readme.gentoo-r1 systemd + +DESCRIPTION="IBM ThinkPad Hard Drive Active Protection System (HDAPS) daemon" +HOMEPAGE="https://github.com/evgeni/hdapsd/" +SRC_URI="https://github.com/evgeni/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="libconfig" + +BDEPEND="" +DEPEND="libconfig? ( dev-libs/libconfig:= )" +RDEPEND="${DEPEND}" + +pkg_setup() { + # We require the hdaps module which can either come from either the + # kernel itself (CONFIG_SENSORS_HDAPS) 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[hdaps] or " + ERROR_SENSORS_HDAPS+="kernel support for CONFIG_SENSORS_HDAPS enabled" + linux-info_pkg_setup + fi +} + +src_configure() { + econf \ + $(use_enable libconfig) \ + --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \ + --docdir="/usr/share/doc/${PF}" +} + +src_install() { + default + newconfd "${FILESDIR}/hdapsd.conf-20141024" hdapsd + newinitd "${FILESDIR}/hdapsd.init-20141024" hdapsd + readme.gentoo_create_doc +} + +pkg_postinst() { + [[ -z $(ls "${ROOT}"/sys/block/*/queue/protect 2>/dev/null) ]] && \ + [[ -z $(ls "${ROOT}"/sys/block/*/device/unload_heads 2>/dev/null) ]] && \ + ewarn "Your kernel does NOT support shock protection." + + readme.gentoo_print_elog +} + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS=" +${PN} requires a kernel module to function properly. The recommended +approach is to install app-laptop/tp_smapi[hdaps], but the in-tree +module provided by CONFIG_SENSORS_HDAPS may work as well. + +Common daemon parameters can be set in ${EROOT}/etc/conf.d/${PN}. If the +package was installed with USE=libconfig, then the parameters can also +be set in ${EROOT}/etc/${PN}.conf, although the former will take +precedence over the latter if both are used. + +You can change the default sampling rate by modifing + + /sys/devices/platform/hdaps/sampling_rate + +and you may need to enable shock protection manually by running + + # echo -1 > /sys/block//device/unload_heads + +as root. +" -- cgit v1.2.3