summaryrefslogtreecommitdiff
path: root/app-laptop/mbpfan
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-laptop/mbpfan
reinit the tree, so we can have metadata
Diffstat (limited to 'app-laptop/mbpfan')
-rw-r--r--app-laptop/mbpfan/Manifest9
-rw-r--r--app-laptop/mbpfan/mbpfan-1.9.1.ebuild33
-rw-r--r--app-laptop/mbpfan/mbpfan-2.0.0.ebuild45
-rw-r--r--app-laptop/mbpfan/mbpfan-2.0.1.ebuild44
-rw-r--r--app-laptop/mbpfan/mbpfan-9999.ebuild44
-rw-r--r--app-laptop/mbpfan/metadata.xml18
6 files changed, 193 insertions, 0 deletions
diff --git a/app-laptop/mbpfan/Manifest b/app-laptop/mbpfan/Manifest
new file mode 100644
index 000000000000..2498323ad37e
--- /dev/null
+++ b/app-laptop/mbpfan/Manifest
@@ -0,0 +1,9 @@
+DIST mbpfan-1.9.1.tar.gz 24393 SHA256 a7cf850a393ebfce21427b992436b84cc4b20e1cb8d673d45d2c8b991c69e68c SHA512 04f1f70697ccd182c329588623c6664979e1cc25db8a39a2ea9f6d1ec49f3914172c3ada392fabc9ac51a811f36087dc600426c34c201d02a5d7b791b04f0f3b WHIRLPOOL a97cc5eb8ebb25353e5fe7b86854daf52bfa99b6ad3a490ef3006fdd9162b8c96840692d1939071e4404438535e4f44f0a5b41cc5cb43b115046fe4b3fd89a8a
+DIST mbpfan-2.0.0.tar.gz 37912 SHA256 4e8874c7302b8d237faa8bf706acf5bf0ea8ec4ebff2debfc9717bca7d9ea15b SHA512 9a7f930afe0a151fe50bf3ef1a06a5cecaced0c47f7088a83b91e25dff85d4b0d53494eac5eb1b624bde6ff1d3307a0d9fe6ba392fdacbe58e241d93d11cda6d WHIRLPOOL 051406f3dafc0aecfc0d1afac1e10d9f2a0d9b2a8ddde12282b767b007e1211b88f8e5d48f03d7b46bd5e6b0a9d17088c7011364d16f0b3f09bbafd1bbe552c9
+DIST mbpfan-2.0.1.tar.gz 37805 SHA256 72bc27fc3dfb4c01c1c476ae74084fc66c7a1039057a7c73441606981adfa311 SHA512 8fd2e37b9b81720ff7efa490d285da5980ef5dcc858fef4b0c24166a8f0df46aa230ea18fca5775b222271918e5ca6df1bfbbdced068182c20eeb86192ed2019 WHIRLPOOL dd7c98f7cf6fe84d40c4c070d3daa1640641c971659632bd3778eed24b319f30aa308728b8ee1026a03d8a6f8f9de01eabd8182727263da10779cc097e68cbcc
+EBUILD mbpfan-1.9.1.ebuild 766 SHA256 20826403d2d3d7fddfceab00577e428236c10ddc72a6bd0f7822b764206b6270 SHA512 e805289f5db3b918a975028a2d16e3eef35f48ccb3db18c9f3cc12b51b4871e5420f8d90c2729e90b6b607a12aac95e88b45ed7ebf3de2e6c2818e7383d2c18b WHIRLPOOL 1696c23e14b0ddd38fcb7a46b1c2893eda2a370ca78b07e662620ced4e0e2b82c45a06022e8bc6c808ee844ad7b0a468e8fe4807fcbd0fd3993521e9901fdba2
+EBUILD mbpfan-2.0.0.ebuild 1239 SHA256 ba8668272f488836037f25595ed582ced6635377927ef335708e8d3064aa55c3 SHA512 84a5ff0e5f7bd141a13177760baf22d6e5c0f156aff187600b9b1c803d6616d6d9528c61303b40792d59b9a8f905c2d214b2e568b62c7da120b8e3b86cd298bb WHIRLPOOL 196f264a0abd38d15f6de3ebd8dd60f61d7650a6a17c3715d68175c5403a67c28e5336fdaaee1e3b8666c4a590e88f2694c6fafd83e4c71138a97f0b0fc54d6f
+EBUILD mbpfan-2.0.1.ebuild 1175 SHA256 7053601f4ff2e3f6cc97dbf3cd5fdf82e1154918b9ee28949766054666946b63 SHA512 82368d46789134ec2b7c86d671096c9a5e64db7956075dd599b858400d069a2ca07db94b41c89152493b577409aa5f458abd5caf502df472ac4c82a6fc6514a9 WHIRLPOOL 7f138d2ab8e27b928a6aee1e10fe3c22f5ec4a3f625c4ed525d9936a0404a2b0a534fe8eb1cd034e7a878b87b4a82ffb8eadb543ae983920252e9c25d99ef62b
+EBUILD mbpfan-9999.ebuild 1175 SHA256 7053601f4ff2e3f6cc97dbf3cd5fdf82e1154918b9ee28949766054666946b63 SHA512 82368d46789134ec2b7c86d671096c9a5e64db7956075dd599b858400d069a2ca07db94b41c89152493b577409aa5f458abd5caf502df472ac4c82a6fc6514a9 WHIRLPOOL 7f138d2ab8e27b928a6aee1e10fe3c22f5ec4a3f625c4ed525d9936a0404a2b0a534fe8eb1cd034e7a878b87b4a82ffb8eadb543ae983920252e9c25d99ef62b
+MISC ChangeLog 566 SHA256 49a7587368e59ed39b40535f86b8c1c6c5da09307d12b940df6796f3d4cfd980 SHA512 01901815f097981fa26d6cf77a456decaead48c738df6a4c871aa298b6a2b8230a005b2b57a1e78a438b89d8a71f10274319261ab1e4bf842bdc6913b744232a WHIRLPOOL 21dd2b1fef797f6bb0411c58d57df3b4bdbf41d5a47c742fa29fcd12bec97d9b702d0a632cb19a018077e4e6cb6c8182d7cb83bfa418490af9eebd188ef767de
+MISC metadata.xml 689 SHA256 3c89e11296987ff47694b78b21853707501dc5433a24c47702451706e9310afc SHA512 8edd05f68f3781e684706e61cc28a1d8d5877746c7022ed5a247bb5e686de7f75cbcca2253962b51ccfc06d47445d553399e90b465a9ae466d45cd47d7d05c36 WHIRLPOOL a40bc0c8def8d2f58d8c7522cd8f222469407bac5586f05ea503e9c8dd2a2ca0e3346c2e3237b97847bdb05b330467ae0bb69565add2fc73adf424bacc76e6fc
diff --git a/app-laptop/mbpfan/mbpfan-1.9.1.ebuild b/app-laptop/mbpfan/mbpfan-1.9.1.ebuild
new file mode 100644
index 000000000000..58ae75eb0cb0
--- /dev/null
+++ b/app-laptop/mbpfan/mbpfan-1.9.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
+HOMEPAGE="https://github.com/dgraziotin/mbpfan"
+SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="test" # will fail if the hardware is unavailable, not useful
+
+CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
+
+src_prepare() {
+ sed -i -e "s:g++:$(tc-getCXX):g" Makefile || die
+ default
+}
+
+src_install() {
+ dosbin bin/mbpfan
+
+ insinto /etc
+ doins ${PN}.conf
+
+ newinitd ${PN}.init.gentoo ${PN}
+ systemd_dounit ${PN}.service
+
+ einstalldocs
+}
diff --git a/app-laptop/mbpfan/mbpfan-2.0.0.ebuild b/app-laptop/mbpfan/mbpfan-2.0.0.ebuild
new file mode 100644
index 000000000000..fb1fc7c3f9dc
--- /dev/null
+++ b/app-laptop/mbpfan/mbpfan-2.0.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
+HOMEPAGE="https://github.com/dgraziotin/mbpfan"
+LICENSE="GPL-3+"
+SLOT="0"
+RESTRICT="test" # will fail if the hardware is unavailable, not useful
+
+if [[ "${PV}" = 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ # There's a double linking problem in install
+ emake DESTDIR="${ED}" CC="$(tc-getCC)" install
+
+ # Remove the empty systemd unit directory
+ # It doesn't actually install the unit file
+ rmdir --ignore-fail-on-non-empty -p "${ED%/}/lib/systemd/system" || die
+ # Actually install the sytstemd unit file
+ systemd_dounit ${PN}.service
+ # Install openrc init file
+ newinitd ${PN}.init.gentoo ${PN}
+
+ # make install doesn't install the docs in the right place
+ rm -rf "${ED%/}/usr/share/doc/${PN}" || die
+
+ einstalldocs
+}
diff --git a/app-laptop/mbpfan/mbpfan-2.0.1.ebuild b/app-laptop/mbpfan/mbpfan-2.0.1.ebuild
new file mode 100644
index 000000000000..357bf95cf287
--- /dev/null
+++ b/app-laptop/mbpfan/mbpfan-2.0.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
+HOMEPAGE="https://github.com/dgraziotin/mbpfan"
+LICENSE="GPL-3+"
+SLOT="0"
+RESTRICT="test" # will fail if the hardware is unavailable, not useful
+
+if [[ "${PV}" = 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ # Remove the empty systemd unit directory
+ # It doesn't actually install the unit file
+ rmdir --ignore-fail-on-non-empty -p "${ED%/}/lib/systemd/system" || die
+ # Actually install the sytstemd unit file
+ systemd_dounit ${PN}.service
+ # Install openrc init file
+ newinitd ${PN}.init.gentoo ${PN}
+
+ # make install doesn't install the docs in the right place
+ rm -rf "${ED%/}/usr/share/doc/${PN}" || die
+
+ einstalldocs
+}
diff --git a/app-laptop/mbpfan/mbpfan-9999.ebuild b/app-laptop/mbpfan/mbpfan-9999.ebuild
new file mode 100644
index 000000000000..357bf95cf287
--- /dev/null
+++ b/app-laptop/mbpfan/mbpfan-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info systemd toolchain-funcs
+
+DESCRIPTION="A simple daemon to control fan speed on all Macbook/Macbook Pros"
+HOMEPAGE="https://github.com/dgraziotin/mbpfan"
+LICENSE="GPL-3+"
+SLOT="0"
+RESTRICT="test" # will fail if the hardware is unavailable, not useful
+
+if [[ "${PV}" = 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/dgraziotin/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/dgraziotin/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+CONFIG_CHECK="~SENSORS_APPLESMC ~SENSORS_CORETEMP"
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ # Remove the empty systemd unit directory
+ # It doesn't actually install the unit file
+ rmdir --ignore-fail-on-non-empty -p "${ED%/}/lib/systemd/system" || die
+ # Actually install the sytstemd unit file
+ systemd_dounit ${PN}.service
+ # Install openrc init file
+ newinitd ${PN}.init.gentoo ${PN}
+
+ # make install doesn't install the docs in the right place
+ rm -rf "${ED%/}/usr/share/doc/${PN}" || die
+
+ einstalldocs
+}
diff --git a/app-laptop/mbpfan/metadata.xml b/app-laptop/mbpfan/metadata.xml
new file mode 100644
index 000000000000..95aa53e5c65e
--- /dev/null
+++ b/app-laptop/mbpfan/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gokturk@gentoo.org</email>
+ <name>Göktürk Yüksek</name>
+ </maintainer>
+ <longdescription>
+ mbpfan is a daemon that uses input from coretemp module and sets
+ the fan speed using the applesmc module. This is an enhanced
+ version of Allan McRae mbpfan. This enhanced version assumes any
+ number of processors and fans.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/dgraziotin/mbpfan/issues</bugs-to>
+ <remote-id type="github">dgraziotin/mbpfan</remote-id>
+ </upstream>
+</pkgmetadata>