diff options
Diffstat (limited to 'app-laptop/zenbook-als')
-rw-r--r-- | app-laptop/zenbook-als/Manifest | 5 | ||||
-rw-r--r-- | app-laptop/zenbook-als/files/zenbook-als.initd | 37 | ||||
-rw-r--r-- | app-laptop/zenbook-als/metadata.xml | 8 | ||||
-rw-r--r-- | app-laptop/zenbook-als/zenbook-als-0_p20140502.ebuild | 39 | ||||
-rw-r--r-- | app-laptop/zenbook-als/zenbook-als-9999.ebuild | 39 |
5 files changed, 128 insertions, 0 deletions
diff --git a/app-laptop/zenbook-als/Manifest b/app-laptop/zenbook-als/Manifest new file mode 100644 index 0000000..99fcb78 --- /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 85ebb0a98487659839482d9ffcfe01cd873e616a76caae3b1803978a35895156 SHA512 cee798f8752764716438d9951e699df298d6efb22e6fe3524b2bdf38b8c810ac2e0d2eb5ff256b864392083123e261ed2213f1d05b60cf008e97e70564944692 WHIRLPOOL 879999d142150e8041166ec17917a639bb726bb4ebbb82a4d92b16add04009484f986ad5d7b922d45e5a259438ac58106ad38eace578b36e1bbeac20492846eb +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..4f26d1f --- /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/Displacer/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 +} |