diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2015-07-04 13:58:29 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2015-07-04 13:58:29 +0000 |
commit | 139388279aaadf74d85504cdb55fae8b2ebef00a (patch) | |
tree | 8f6b7a51f09f2fdafeacd1f2a584780dd5a846b2 /app-misc | |
parent | Initial version. (diff) | |
download | historical-139388279aaadf74d85504cdb55fae8b2ebef00a.tar.gz historical-139388279aaadf74d85504cdb55fae8b2ebef00a.tar.bz2 historical-139388279aaadf74d85504cdb55fae8b2ebef00a.zip |
Initial version.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/ckb/Manifest | 3 | ||||
-rw-r--r-- | app-misc/ckb/ckb-0.1.5.ebuild | 46 | ||||
-rw-r--r-- | app-misc/ckb/files/ckb.initd | 29 | ||||
-rw-r--r-- | app-misc/ckb/metadata.xml | 8 |
4 files changed, 85 insertions, 1 deletions
diff --git a/app-misc/ckb/Manifest b/app-misc/ckb/Manifest index 1db35fd87502..053c40089a5d 100644 --- a/app-misc/ckb/Manifest +++ b/app-misc/ckb/Manifest @@ -1,4 +1,5 @@ AUX ckb.initd 658 SHA256 aee15fa4a8ef6a3d111b987070f7ac8cdef08a68615a8f541cbd7d8d09c969a4 SHA512 cc3b1b1aa1ae210d5d9534991107e2134b2a0f33e687156b6b3fe69d45d413bee5cd67f9013899ac4dd714c04617448ec0b4157d7b8f6f3f841a4c7505e27106 WHIRLPOOL 8176cb25f7027986c4fc6988eaf4fe6251b83dfc2d5cca85b4dc2f0a1c865f0f8c1ef48ac1d44c4b1525d699344e230f54b05683749c4d5379a70b86269d4bc9 DIST ckb-0.1.5.tar.gz 370107 SHA256 944e2735ca397287fbbadcff4f6946a7bcfd2a1a4d12f5e121a79e6b4fd39f8a SHA512 2f6b876e09c3f012c09d7d0f80ce21c80325d2588427074aeb9eb287b2aae58fdb66290bbd3643eeb7d6523d8230b6787c6517dd8a996db5af13c00fc8e84414 WHIRLPOOL 2b3fe82e407246487464d3888b908126c034965f6cdd89fd9155e3cc64d6dee9e6b388c4f7ce83e9085992d663a8f773b5582a56da95e8460cba97a1af5364cd -EBUILD ckb-0.1.5.ebuild 1015 SHA256 9b5adff68b2c5aafcfdfe106051055da8beea5828adf1285ad21369f0442020e SHA512 cb405cd94519bc9bd2c1045acd8499754eb0bac9795c15c511e7060213fe3bcaea11d591d4d4766e52ee92c3ca3cf46cb22c2d231bf42f5a78d2b62b319bf9c6 WHIRLPOOL db86a36d001c60e9a2ec2a0657ff601a4a0527513764e21654e5e1b21297d7c6d9ec797e97c27cfcbe585fd9b542fa3fca1abb5c81502c02c8145daf913d9911 +EBUILD ckb-0.1.5.ebuild 1105 SHA256 46c5420f713a6574bc0afb914888e4423e1a3be8e4d9bfc44b536355162c7381 SHA512 0619a3d39022cb617d59539c5b014eb863f6579300b00bba52bea782104b61bba7a03c703b4faed9c30370e302ccd377d0488ff93748ba3b855312028f173fe2 WHIRLPOOL 35eeb9c7b04e2b1f1642f8dca6a9f61399f77c109117e794e73f8f3d097c9986b0db6fa5ce88140f0fce0db54d34c221bb7ba4655f5a5156945b3e056eee99d1 +MISC ChangeLog 343 SHA256 e45df31ad9962455bb43caf6fc5bb3720ca6c051377659da4f95f97e9d097aad SHA512 6cf988ef626588a4ad7a166db1297d6458a23fed081602455d3f1ae338d7d25196d61f419ea50b819d57cdad9f8d2144197dbb7f5ff8d0fe0e099f9bd07aabd8 WHIRLPOOL b09afab67e1f02140f2c156167ae7a2df61556bd972f3b2d5214f77f68befc9ee545196c24d2db5bd586b5aae7b049b3995d350ad3a44ab00e5f72f20328185c MISC metadata.xml 231 SHA256 9c04e1ed256c8293b1120d9b56de16e3ee5ff6cdb3967d517d46c5974c23d67a SHA512 0aaf70d152f2b3a4b333fccde6f5c9fbb6cac1a9ecf3e2b2ddb57a1c260b3f0e7bdd215edad17f959b2a3324929bf446164341531783431c3435d1b956d09d83 WHIRLPOOL d631165d8a2dd82731e34fed2e3c09437b8c0d383da28c3e0a5f704196afc1810a7efee388e6b558493e82fa61cc799ab3b93eb1b7b17464dd380efdcba60d06 diff --git a/app-misc/ckb/ckb-0.1.5.ebuild b/app-misc/ckb/ckb-0.1.5.ebuild new file mode 100644 index 000000000000..b2df8d42b307 --- /dev/null +++ b/app-misc/ckb/ckb-0.1.5.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/ckb/ckb-0.1.5.ebuild,v 1.1 2015/07/04 13:58:25 mrueg Exp $ + +EAPI=5 + +inherit qmake-utils systemd + +DESCRIPTION="Corsair K65/K70/K95 Driver" +HOMEPAGE="https://github.com/ccMSC/ckb" +SRC_URI="https://github.com/ccMSC/ckb/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-libs/quazip[qt5] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5" +RDEPEND="${DEPEND}" + +DOCS=( README.md BUILD.md DAEMON.md ) + +src_prepare() { + sed -i -e "s/-Werror=all//" src/ckb-daemon/ckb-daemon.pro || die + sed -i -e "/quazip/d" -e "s/^.*QUAZIP_STATIC/LIBS += -lquazip/" src/ckb/ckb.pro || die +} + +src_configure() { + eqmake5 +} + +src_install() { + dobin bin/ckb bin/ckb-daemon + dodir /usr/bin/ckb-animations + exeinto /usr/bin/ckb-animations + doexe bin/ckb-animations/* + + newinitd "${FILESDIR}"/ckb.initd ckb-daemon + domenu usr/ckb.desktop + doicon usr/ckb.png + systemd_dounit service/systemd/ckb-daemon.service +} diff --git a/app-misc/ckb/files/ckb.initd b/app-misc/ckb/files/ckb.initd new file mode 100644 index 000000000000..856d37c9e7d7 --- /dev/null +++ b/app-misc/ckb/files/ckb.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript +## Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" +command="/usr/bin/ckb-daemon" +description="Controller for Corsair Keyboard Driver" +pidfile="/run/ckb.pid" +logfile="/var/run/ckb.log" + +start() { + ebegin "Starting Corsair Keyboard Driver" + start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" --background \ + --stdout "${logfile}" --stderr "${logfile}" + eend $? +} + +stop() { + ebegin "Stopping Corsair Keyboard Driver" + start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}" + eend $? + +} + +reload() { + stop + sleep 3 + start +} diff --git a/app-misc/ckb/metadata.xml b/app-misc/ckb/metadata.xml new file mode 100644 index 000000000000..bfcb6974f1c4 --- /dev/null +++ b/app-misc/ckb/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> |