From 24fd814c326e282c4321965c31f341dad77e270d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 8 Jan 2021 11:28:34 +0000 Subject: gentoo resync : 08.01.2021 --- app-laptop/Manifest.gz | Bin 3242 -> 3241 bytes app-laptop/hdapsd/Manifest | 2 +- app-laptop/hdapsd/hdapsd-20141203-r1.ebuild | 72 ++++++++++++++++++++++++++++ app-laptop/hdapsd/hdapsd-20141203.ebuild | 72 ---------------------------- 4 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 app-laptop/hdapsd/hdapsd-20141203-r1.ebuild delete mode 100644 app-laptop/hdapsd/hdapsd-20141203.ebuild (limited to 'app-laptop') diff --git a/app-laptop/Manifest.gz b/app-laptop/Manifest.gz index 2de472fe62dd..2e1a6b5cda4d 100644 Binary files a/app-laptop/Manifest.gz and b/app-laptop/Manifest.gz differ diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest index 7f2a6cc9eeab..05418c9ff662 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.ebuild 2157 BLAKE2B 85898ad7c8d8a0a94f4674771e474d830987535c03fd0278963b57bd9eb99cc6af7b28a12d0bacea85728b3afa0cd2cf466bdf751d925c9311c76e656e492f4b SHA512 d4a8a80d26e4541dd5f34d5d6bd837b20ff8e9f1ec6d562a8fd96c8101ab8b5f20dea480625281726a3b4473aa93e78cff50b7b3f9010fa2013770eb10cad61d +EBUILD hdapsd-20141203-r1.ebuild 2159 BLAKE2B 9f6a089e3495fb1568c1799f26d6329c3bf9b88e76bbb277f45fa093ff058aaaf0c7ddb02f0c7c0b5823884528319a7469d07786fe20e93c29fef1e3f708c547 SHA512 37efbeab2f59de16efcb530cd95a54a6331aa6c7ce314fa587b30ad3a23505bee2f339900cc8c4bc6c122faaedc1bb99387868d5c63ac47e84a9100b755e67ff 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 new file mode 100644 index 000000000000..d3cea62d792d --- /dev/null +++ b/app-laptop/hdapsd/hdapsd-20141203-r1.ebuild @@ -0,0 +1,72 @@ +# 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.ebuild b/app-laptop/hdapsd/hdapsd-20141203.ebuild deleted file mode 100644 index ca4d09f54cee..000000000000 --- a/app-laptop/hdapsd/hdapsd-20141203.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2020 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. -" -- cgit v1.2.3