diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-power/bbswitch |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-power/bbswitch')
-rw-r--r-- | sys-power/bbswitch/Manifest | 9 | ||||
-rw-r--r-- | sys-power/bbswitch/bbswitch-0.8-r1.ebuild | 54 | ||||
-rw-r--r-- | sys-power/bbswitch/bbswitch-0.8.ebuild | 42 | ||||
-rw-r--r-- | sys-power/bbswitch/bbswitch-9999.ebuild | 54 | ||||
-rw-r--r-- | sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch | 18 | ||||
-rw-r--r-- | sys-power/bbswitch/files/bbswitch.modprobe | 1 | ||||
-rw-r--r-- | sys-power/bbswitch/metadata.xml | 27 |
7 files changed, 205 insertions, 0 deletions
diff --git a/sys-power/bbswitch/Manifest b/sys-power/bbswitch/Manifest new file mode 100644 index 000000000000..ce9a67ccd721 --- /dev/null +++ b/sys-power/bbswitch/Manifest @@ -0,0 +1,9 @@ +AUX bbswitch-0.8-kernel-4.12.patch 528 SHA256 826d7fd3c2cea968f21cf9c27b2aa6ae69775126d48a09ee7806c5287451702e SHA512 52b8f8cc378d915f0671fff193041c13d756db4d4b8db01594d9411a1422e1d8ff0e364d041f472b15b7c581a2fec583ecd86bcb5477b3703c9d993504a6ab61 WHIRLPOOL 8d4978bad9042a8f8a4d0c9186af521e97987425a4bedb118de54fa144d03185995f2770cea08f09fcf2ac204f4c4e578b1d7c3c430809451e0f27205bb5d97e +AUX bbswitch.modprobe 46 SHA256 e87a481ce095be46efe970769b070d865cb26c91e3a672f61341421acb52e82f SHA512 a4fa992d66b401e039c995b64ac5f3b2491c3ccf4412e211d50d1e514253f9341dc77a6d8da808f03988735e44a97bb973f3303ed3c0eeed6f4e21794d3545b6 WHIRLPOOL 0b913611bcede225d408c9e4a59a3ec9b8044a58fe2613f3e5d4d85b349a7c84e028f7f398b9742787c11e93dcc080baade824d37f8126c8ef3409c6e90f1848 +DIST bbswitch-0.8.tar.gz 15800 SHA256 76cabd3f734fb4fe6ebfe3ec9814138d0d6f47d47238521ecbd6a986b60d1477 SHA512 11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c WHIRLPOOL 4215bb74779d5bfaacd1177f89636a9006fbce369c381e620868e7012092756417f7df732b373341254fad75e08f6de4536921f5478f0032d2961d22d56a3c15 +EBUILD bbswitch-0.8-r1.ebuild 1067 SHA256 3a1eda51db695c9dad4bd43bbaa4e442ff10a41c2b4b745b7bb916ffe8e06f90 SHA512 4130a6c02e65506877a61590c42bb7afa86a9dcc485b53d7b64a265f8c153d3ab71c8bff03c9bdca758dbb91bff5966c648aa4afa653f24c6346592e445f98bc WHIRLPOOL 33643b3456c6f2c9033576d1801e9f5eb0c96f4bcbcdd53ca5d12714f406dbcf5f6f256cd0f4fe348ff66f3d6ad6f68f1290df3e910416a198a9b26d6fd562c4 +EBUILD bbswitch-0.8.ebuild 870 SHA256 af76c7e173c37d83e41143e4742defc73dac8fd04aed283ee7813f1845f9ca0e SHA512 8fc0d492a417cec27ec87d6e0235758e9017f44b1549b8464b187f30173505a391eefb270b74183784613bbc38930e4df2aa99d67445b80938dc3616c0252418 WHIRLPOOL 4e44bc26b4c44cb0c2e0bfc40896b06544e12c5ba19630ed1a4d36ba2952fa8310b04caae39846474f22df453ba2628a051f08445a35c96248f2b7fd8d67bf5b +EBUILD bbswitch-9999.ebuild 1067 SHA256 3a1eda51db695c9dad4bd43bbaa4e442ff10a41c2b4b745b7bb916ffe8e06f90 SHA512 4130a6c02e65506877a61590c42bb7afa86a9dcc485b53d7b64a265f8c153d3ab71c8bff03c9bdca758dbb91bff5966c648aa4afa653f24c6346592e445f98bc WHIRLPOOL 33643b3456c6f2c9033576d1801e9f5eb0c96f4bcbcdd53ca5d12714f406dbcf5f6f256cd0f4fe348ff66f3d6ad6f68f1290df3e910416a198a9b26d6fd562c4 +MISC ChangeLog 3107 SHA256 62d70ebe1a90bf7b527aa775d5ffb8dc9b5d68a4982ea025719f6b892fc783fe SHA512 22740b78176d912dff71a0d2c213f7e29afdb77762ccfeb5257053b6d5051c1e9c29c8ff725686705f1b1841a27f8c6a51f13f0dcf60d36f195a05edc46adbcf WHIRLPOOL 3663cf9d79106e99644368b28e734495362d4a35a8777d147c5ff6f8db2f170c7af79c836ff9fbaa742674f926f0697c031a2d3f74501f70dacd454b37a821f0 +MISC ChangeLog-2015 2552 SHA256 4a7253c990f38e296a4b72455f5b799834bb55a3b3d99edcb5afa730951e93ee SHA512 16f69184217a479d079496f55c1878b7f1a9ca7d2bc5d2c5e1c7bb7c58906001d173df2691a9e91bfd8e732408f1f21c8ea0d5432edc85742618e9aff358dccb WHIRLPOOL 8a4c3642c7ec119eeab39fd1dd4479c52e56a6107e8fad708f7b57d251153eef5595bc4d9195adcbc0fe685dff88e450362eb9fe6e61ef80c67b3b53cb03e862 +MISC metadata.xml 866 SHA256 377195f3e5895d279128fcb0e29e2b88067293d63786230ffa1f277ec1742cf9 SHA512 0a39acf63faef61a12277e39d96fc866ff30822336ab098a0ab6affdcbc63054ff9c78bcbcddae952e205927ac6f00c04dce803bc825ae1c2853bfaded81124d WHIRLPOOL 902b03d8772a95c6f08368f93302225b29b53bd8ffc9fa3dc7eb6225c36432839a282b203cbc8121b64a3c45361e172031138a26519e21d8ddbbeb75dbf25943 diff --git a/sys-power/bbswitch/bbswitch-0.8-r1.ebuild b/sys-power/bbswitch/bbswitch-0.8-r1.ebuild new file mode 100644 index 000000000000..bb29cb2fd85b --- /dev/null +++ b/sys-power/bbswitch/bbswitch-0.8-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-mod + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN}.git" + EGIT_BRANCH="develop" +else + PATCHES=( "${FILESDIR}/${PN}-0.8-kernel-4.12.patch" ) + SRC_URI="https://github.com/Bumblebee-Project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card" +HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch" + +SLOT="0" +LICENSE="GPL-3+" +IUSE="" + +DEPEND=" + virtual/linux-sources + sys-kernel/linux-headers +" +RDEPEND="" + +MODULE_NAMES="bbswitch(acpi)" + +pkg_setup() { + linux-mod_pkg_setup + + BUILD_TARGETS="default" + BUILD_PARAMS="KVERSION=${KV_FULL}" +} + +src_prepare() { + # Fix build failure, bug #513542 + sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die + + default +} + +src_install() { + einstalldocs + + insinto /etc/modprobe.d + newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf + + linux-mod_src_install +} diff --git a/sys-power/bbswitch/bbswitch-0.8.ebuild b/sys-power/bbswitch/bbswitch-0.8.ebuild new file mode 100644 index 000000000000..6d3bf202702a --- /dev/null +++ b/sys-power/bbswitch/bbswitch-0.8.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils linux-mod + +DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card" +HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch" +SRC_URI="https://github.com/Bumblebee-Project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-3+" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=" + virtual/linux-sources + sys-kernel/linux-headers +" +RDEPEND="" + +MODULE_NAMES="bbswitch(acpi)" + +pkg_setup() { + linux-mod_pkg_setup + + BUILD_TARGETS="default" + BUILD_PARAMS="KVERSION=${KV_FULL}" +} + +src_prepare() { + # Fix build failure, bug #513542 + sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die +} + +src_install() { + insinto /etc/modprobe.d + newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf + dodoc NEWS README.md + + linux-mod_src_install +} diff --git a/sys-power/bbswitch/bbswitch-9999.ebuild b/sys-power/bbswitch/bbswitch-9999.ebuild new file mode 100644 index 000000000000..bb29cb2fd85b --- /dev/null +++ b/sys-power/bbswitch/bbswitch-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-mod + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/Bumblebee-Project/${PN}.git" + EGIT_BRANCH="develop" +else + PATCHES=( "${FILESDIR}/${PN}-0.8-kernel-4.12.patch" ) + SRC_URI="https://github.com/Bumblebee-Project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Toggle discrete NVIDIA Optimus graphics card" +HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch" + +SLOT="0" +LICENSE="GPL-3+" +IUSE="" + +DEPEND=" + virtual/linux-sources + sys-kernel/linux-headers +" +RDEPEND="" + +MODULE_NAMES="bbswitch(acpi)" + +pkg_setup() { + linux-mod_pkg_setup + + BUILD_TARGETS="default" + BUILD_PARAMS="KVERSION=${KV_FULL}" +} + +src_prepare() { + # Fix build failure, bug #513542 + sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die + + default +} + +src_install() { + einstalldocs + + insinto /etc/modprobe.d + newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf + + linux-mod_src_install +} diff --git a/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch new file mode 100644 index 000000000000..1db623d583e9 --- /dev/null +++ b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch @@ -0,0 +1,18 @@ +diff -uNr bbswitch-0.8/bbswitch.c bbswitch-0.8-new/bbswitch.c +--- bbswitch-0.8/bbswitch.c 2013-12-04 18:22:06.000000000 -0500 ++++ bbswitch-0.8-new/bbswitch.c 2017-07-08 01:11:54.588545766 -0400 +@@ -31,7 +31,14 @@ + #include <linux/pci.h> + #include <linux/acpi.h> + #include <linux/module.h> ++#include <linux/version.h> ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0) ++#include <linux/uaccess.h> ++#else + #include <asm/uaccess.h> ++#endif ++ + #include <linux/suspend.h> + #include <linux/seq_file.h> + #include <linux/pm_runtime.h> diff --git a/sys-power/bbswitch/files/bbswitch.modprobe b/sys-power/bbswitch/files/bbswitch.modprobe new file mode 100644 index 000000000000..dd6500c77131 --- /dev/null +++ b/sys-power/bbswitch/files/bbswitch.modprobe @@ -0,0 +1 @@ +options bbswitch load_state=-1 unload_state=-1
\ No newline at end of file diff --git a/sys-power/bbswitch/metadata.xml b/sys-power/bbswitch/metadata.xml new file mode 100644 index 000000000000..437e2daa175e --- /dev/null +++ b/sys-power/bbswitch/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>NP-Hardass@gentoo.org</email> + <name>NP-Hardass</name> + </maintainer> + <maintainer type="person"> + <email>gentoo@mva.name</email> + <name>Vadim A. Misbakh-Soloviov</name> + </maintainer> + <maintainer type="person"> + <email>rei4dan@gmail.com</email> + <name>My Th</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Kernel module which automatically detects the required ACPI calls for two + kinds of Optimus laptops for safe disabling/enabling the discrete graphics card. +</longdescription> + <upstream> + <remote-id type="github">Bumblebee-Project/bbswitch</remote-id> + </upstream> +</pkgmetadata> |