summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-laptop/zenbook-als-module/Manifest4
-rw-r--r--app-laptop/zenbook-als-module/metadata.xml8
-rw-r--r--app-laptop/zenbook-als-module/zenbook-als-module-0_p20140423.ebuild33
-rw-r--r--app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild33
-rw-r--r--app-laptop/zenbook-als/Manifest5
-rw-r--r--app-laptop/zenbook-als/files/zenbook-als.initd37
-rw-r--r--app-laptop/zenbook-als/metadata.xml8
-rw-r--r--app-laptop/zenbook-als/zenbook-als-0_p20140502.ebuild39
-rw-r--r--app-laptop/zenbook-als/zenbook-als-9999.ebuild39
9 files changed, 206 insertions, 0 deletions
diff --git a/app-laptop/zenbook-als-module/Manifest b/app-laptop/zenbook-als-module/Manifest
new file mode 100644
index 0000000..573c21f
--- /dev/null
+++ b/app-laptop/zenbook-als-module/Manifest
@@ -0,0 +1,4 @@
+DIST zenbook-als-module-0_p20140423-git.tar.gz 2591 SHA256 6a9959d1e9d1b946c68d95f0483c3241cca5d1470af2d351e7528d33bad5ca73 SHA512 0d51973f47e76f772e71c97cfa8f5c63416a156c016d7c50485765cdfcca5ee593af88a2d6664c7f475d368e316329928227dfde8bed9258f38b17ff459c4ecb WHIRLPOOL e43518052ca1c3882c6204fd9eebfb7381371b910a13192de74ba5b9207efe5599cd1b0847f58d1ae19679bed220864b87ebb832735453bf1aefeb2caf1bc4fb
+EBUILD zenbook-als-module-0_p20140423.ebuild 755 SHA256 12e0b2833685662e218f65f8ef419fff1a95b92d9c32910d8942ec6fd4f33b36 SHA512 996e4754ca7c35e436c1eff5e5bc495d7b78bc0d488d8eea994d5370b737160328ce3cc73f2bf9419df2c95619ad1615abe9788f0dea071729deef2003b72334 WHIRLPOOL a932250318ba936107bfe4b03fbca4664f6da48e32abe24c8683872dcfc7efe1d238267b5e46361f1e212bb7f81d637a52ac699f014657be0c7533e16cfc8693
+EBUILD zenbook-als-module-9999.ebuild 755 SHA256 12e0b2833685662e218f65f8ef419fff1a95b92d9c32910d8942ec6fd4f33b36 SHA512 996e4754ca7c35e436c1eff5e5bc495d7b78bc0d488d8eea994d5370b737160328ce3cc73f2bf9419df2c95619ad1615abe9788f0dea071729deef2003b72334 WHIRLPOOL a932250318ba936107bfe4b03fbca4664f6da48e32abe24c8683872dcfc7efe1d238267b5e46361f1e212bb7f81d637a52ac699f014657be0c7533e16cfc8693
+MISC metadata.xml 231 SHA256 9c04e1ed256c8293b1120d9b56de16e3ee5ff6cdb3967d517d46c5974c23d67a SHA512 0aaf70d152f2b3a4b333fccde6f5c9fbb6cac1a9ecf3e2b2ddb57a1c260b3f0e7bdd215edad17f959b2a3324929bf446164341531783431c3435d1b956d09d83 WHIRLPOOL d631165d8a2dd82731e34fed2e3c09437b8c0d383da28c3e0a5f704196afc1810a7efee388e6b558493e82fa61cc799ab3b93eb1b7b17464dd380efdcba60d06
diff --git a/app-laptop/zenbook-als-module/metadata.xml b/app-laptop/zenbook-als-module/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/app-laptop/zenbook-als-module/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-laptop/zenbook-als-module/zenbook-als-module-0_p20140423.ebuild b/app-laptop/zenbook-als-module/zenbook-als-module-0_p20140423.ebuild
new file mode 100644
index 0000000..3de6d29
--- /dev/null
+++ b/app-laptop/zenbook-als-module/zenbook-als-module-0_p20140423.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit linux-mod
+
+if [[ "${PV}" = "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://github.com/danieleds/als.git"
+ KEYWORDS=""
+else
+ COMMIT_ID="150684d1b73e1405609502e1166ba878c42dbb18"
+ SRC_URI="https://github.com/danieleds/als/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
+ KEYWORDS="~amd64"
+ S=${WORKDIR}/als-${COMMIT_ID}
+fi
+
+DESCRIPTION="A kernel module for the ASUS Zenbook Ambient Light Sensor Driver"
+HOMEPAGE="http://github.com/danieleds/als"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+MODULE_NAMES="als(misc:${S})"
+BUILD_TARGETS="all"
+
+src_compile(){
+ BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
+ linux-mod_src_compile
+}
diff --git a/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild b/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild
new file mode 100644
index 0000000..3de6d29
--- /dev/null
+++ b/app-laptop/zenbook-als-module/zenbook-als-module-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit linux-mod
+
+if [[ "${PV}" = "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://github.com/danieleds/als.git"
+ KEYWORDS=""
+else
+ COMMIT_ID="150684d1b73e1405609502e1166ba878c42dbb18"
+ SRC_URI="https://github.com/danieleds/als/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
+ KEYWORDS="~amd64"
+ S=${WORKDIR}/als-${COMMIT_ID}
+fi
+
+DESCRIPTION="A kernel module for the ASUS Zenbook Ambient Light Sensor Driver"
+HOMEPAGE="http://github.com/danieleds/als"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+MODULE_NAMES="als(misc:${S})"
+BUILD_TARGETS="all"
+
+src_compile(){
+ BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
+ linux-mod_src_compile
+}
diff --git a/app-laptop/zenbook-als/Manifest b/app-laptop/zenbook-als/Manifest
new file mode 100644
index 0000000..0318f85
--- /dev/null
+++ b/app-laptop/zenbook-als/Manifest
@@ -0,0 +1,5 @@
+AUX zenbook-als.initd 1025 SHA256 e5f882fccd205fafd80ec1e5cd766b7a286f69e7be14f6b3e88215df243bb34e SHA512 2af1e1bbc52e6149b4516300df15dfb5e9e22c1810572447697c765c38b279a4a8ddd512b671346deba73a73980ae6e5435606d7e80edb52e840a767cb164149 WHIRLPOOL 27cadbe2493cc43990a512ff80b1bf74d0d553bc4fa4441be74563fae4e2117282be7b4faed10cd1423cfc564cccabb5e49d822b58a4eb93173d525c2675da45
+DIST zenbook-als-0_p20140502-git.tar.gz 17782 SHA256 f7efa74444061a8431fd0218180d45d568a3e1be09509254cd229daa4542471d SHA512 5bac08041f32697288861ab8126f97c27d7a0f274a4737c5e7e76e19e729928949128c52525b54845c22e9ffded93a73d17805ed753971615019a5844a748099 WHIRLPOOL 89634142ab2624ff6f1419dc3595c5af6cffbd2f9692940f753122f7c9363a08671c4ff6a711bc0b78368359409106e6e1f8dbf1798b6f33a7d2361067884ea4
+EBUILD zenbook-als-0_p20140502.ebuild 977 SHA256 a93fa697c4a566fb5c5ef8842c9510ce418533ec5e66da2c8a0f0ce561910d32 SHA512 13fea848a25f248e7a66acaefc0646272965f1b6a437ace435ce6171ff40c1c1267b0029b58e9d3de6115569d6659d801e79d98778c6b37289fa403b2251d10f WHIRLPOOL d9a22d4340169223352ade553a7172d5816fd1158f47feca584f2ffea1b26d3ac53e02848600a2909c419b7e75b180f9ea5ae1d9c2dafe47a50fc94b85b0169c
+EBUILD zenbook-als-9999.ebuild 977 SHA256 a93fa697c4a566fb5c5ef8842c9510ce418533ec5e66da2c8a0f0ce561910d32 SHA512 13fea848a25f248e7a66acaefc0646272965f1b6a437ace435ce6171ff40c1c1267b0029b58e9d3de6115569d6659d801e79d98778c6b37289fa403b2251d10f WHIRLPOOL d9a22d4340169223352ade553a7172d5816fd1158f47feca584f2ffea1b26d3ac53e02848600a2909c419b7e75b180f9ea5ae1d9c2dafe47a50fc94b85b0169c
+MISC metadata.xml 231 SHA256 9c04e1ed256c8293b1120d9b56de16e3ee5ff6cdb3967d517d46c5974c23d67a SHA512 0aaf70d152f2b3a4b333fccde6f5c9fbb6cac1a9ecf3e2b2ddb57a1c260b3f0e7bdd215edad17f959b2a3324929bf446164341531783431c3435d1b956d09d83 WHIRLPOOL d631165d8a2dd82731e34fed2e3c09437b8c0d383da28c3e0a5f704196afc1810a7efee388e6b558493e82fa61cc799ab3b93eb1b7b17464dd380efdcba60d06
diff --git a/app-laptop/zenbook-als/files/zenbook-als.initd b/app-laptop/zenbook-als/files/zenbook-als.initd
new file mode 100644
index 0000000..010efa0
--- /dev/null
+++ b/app-laptop/zenbook-als/files/zenbook-als.initd
@@ -0,0 +1,37 @@
+#!/sbin/runscript # Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+command="/usr/sbin/als-controller"
+description="Controller for Asus Zenbook ambient light sensor"
+pidfile="/var/run/als-controller.pid"
+
+checkconfig() {
+ if [ ! -L "/sys/bus/acpi/devices/ACPI0008:00" ]; then
+ eerror "Missing device ACPI0008:00."
+ eerror "Probably your grub bootline has wrong acpi_osi setting."
+ return 1
+ fi
+ return 0
+}
+
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting Asus Zenbook ambient light sensor controller"
+ start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Asus Zenbook ambient light sensor controller"
+ start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
+ eend $?
+
+}
+
+reload() {
+ stop
+ sleep 3
+ start
+}
diff --git a/app-laptop/zenbook-als/metadata.xml b/app-laptop/zenbook-als/metadata.xml
new file mode 100644
index 0000000..bfcb697
--- /dev/null
+++ b/app-laptop/zenbook-als/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-laptop/zenbook-als/zenbook-als-0_p20140502.ebuild b/app-laptop/zenbook-als/zenbook-als-0_p20140502.ebuild
new file mode 100644
index 0000000..5877c35
--- /dev/null
+++ b/app-laptop/zenbook-als/zenbook-als-0_p20140502.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit qmake-utils
+
+if [[ "${PV}" = "9999" ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller.git"
+ KEYWORDS=""
+else
+ COMMIT_ID="ba447bc47271dbf69ac4a4bad11cfadc04df69c3"
+ SRC_URI="https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
+ KEYWORDS="~amd64"
+ S=${WORKDIR}/Asus-Zenbook-Ambient-Light-Sensor-Controller-${COMMIT_ID}
+fi
+
+DESCRIPTION="ASUS Zenbook Ambient Light Sensor Controller"
+HOMEPAGE="http://github.com/victorenator/als"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-libs/libbsd"
+RDEPEND="${DEPEND}
+ app-laptop/zenbook-als-module"
+
+src_configure() {
+ eqmake4 service/als-controller.pro
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/${PN}.initd als-controller
+ dodoc README.md
+ dosbin als-controller
+}
diff --git a/app-laptop/zenbook-als/zenbook-als-9999.ebuild b/app-laptop/zenbook-als/zenbook-als-9999.ebuild
new file mode 100644
index 0000000..5877c35
--- /dev/null
+++ b/app-laptop/zenbook-als/zenbook-als-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit qmake-utils
+
+if [[ "${PV}" = "9999" ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller.git"
+ KEYWORDS=""
+else
+ COMMIT_ID="ba447bc47271dbf69ac4a4bad11cfadc04df69c3"
+ SRC_URI="https://github.com/danieleds/Asus-Zenbook-Ambient-Light-Sensor-Controller/archive/${COMMIT_ID}.tar.gz -> ${P}-git.tar.gz"
+ KEYWORDS="~amd64"
+ S=${WORKDIR}/Asus-Zenbook-Ambient-Light-Sensor-Controller-${COMMIT_ID}
+fi
+
+DESCRIPTION="ASUS Zenbook Ambient Light Sensor Controller"
+HOMEPAGE="http://github.com/victorenator/als"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-libs/libbsd"
+RDEPEND="${DEPEND}
+ app-laptop/zenbook-als-module"
+
+src_configure() {
+ eqmake4 service/als-controller.pro
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/${PN}.initd als-controller
+ dodoc README.md
+ dosbin als-controller
+}