diff options
author | Justin Riley <justin.t.riley@gmail.com> | 2013-08-19 19:08:19 -0400 |
---|---|---|
committer | Justin Riley <justin.t.riley@gmail.com> | 2013-08-19 19:34:07 -0400 |
commit | 5dde0cbe19758ef3d86e77b57bf2459525d49071 (patch) | |
tree | e7c95c5ba4c8795dd70ad4c81ffb1abc251df585 /app-misc | |
parent | vmd: add patch to include thrust/device_ptr (CUDA 5.5) (diff) | |
download | jtriley-5dde0cbe19758ef3d86e77b57bf2459525d49071.tar.gz jtriley-5dde0cbe19758ef3d86e77b57bf2459525d49071.tar.bz2 jtriley-5dde0cbe19758ef3d86e77b57bf2459525d49071.zip |
initial commit of current g15daemon
This makes my next commit mean something :D
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/g15daemon/ChangeLog | 262 | ||||
-rw-r--r-- | app-misc/g15daemon/Manifest | 38 | ||||
-rw-r--r-- | app-misc/g15daemon/files/20g15daemon | 15 | ||||
-rw-r--r-- | app-misc/g15daemon/files/99-g15daemon.rules | 1 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd | 41 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.2.7.confd | 9 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch | 11 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch | 340 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch | 11 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-1.9.5.3.initd | 41 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon-hotplug | 15 | ||||
-rw-r--r-- | app-misc/g15daemon/files/g15daemon.conf | 27 | ||||
-rw-r--r-- | app-misc/g15daemon/g15daemon-1.9.5.3-r7.ebuild | 177 | ||||
-rw-r--r-- | app-misc/g15daemon/g15daemon-1.9.5.3-r8.ebuild | 179 | ||||
-rw-r--r-- | app-misc/g15daemon/g15daemon-9999.ebuild | 191 | ||||
-rw-r--r-- | app-misc/g15daemon/metadata.xml | 7 |
16 files changed, 1365 insertions, 0 deletions
diff --git a/app-misc/g15daemon/ChangeLog b/app-misc/g15daemon/ChangeLog new file mode 100644 index 0000000..4cc83cd --- /dev/null +++ b/app-misc/g15daemon/ChangeLog @@ -0,0 +1,262 @@ +# ChangeLog for app-misc/g15daemon +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.49 2013/08/07 13:27:55 ago Exp $ + + 07 Aug 2013; Agostino Sarubbo <ago@gentoo.org> g15daemon-1.9.5.3-r7.ebuild: + Stable for x86, wrt bug #470332 + + 04 Aug 2013; Agostino Sarubbo <ago@gentoo.org> g15daemon-1.9.5.3-r7.ebuild: + Stable for ppc64, wrt bug #470332 + + 28 Jul 2013; Agostino Sarubbo <ago@gentoo.org> g15daemon-1.9.5.3-r7.ebuild: + Stable for ppc, wrt bug #470332 + + 28 Jul 2013; Agostino Sarubbo <ago@gentoo.org> g15daemon-1.9.5.3-r7.ebuild: + Stable for amd64, wrt bug #470332 + + 13 May 2013; Patrick Lauer <patrick@gentoo.org> metadata.xml: + Remove removed lcd herd from metadata + +*g15daemon-1.9.5.3-r8 (18 Mar 2013) + + 18 Mar 2013; Lars Wendler <polynomial-c@gentoo.org> + -g15daemon-1.9.5.3-r6.ebuild, g15daemon-1.9.5.3-r7.ebuild, + +g15daemon-1.9.5.3-r8.ebuild, files/g15daemon-1.9.5.3.initd: + Non-maintainer commit. Fixed module loading logic. Moved ebuild with g510 + support to -r8. + +*g15daemon-1.9.5.3-r7 (01 Mar 2013) + + 01 Mar 2013; Lars Wendler <polynomial-c@gentoo.org> + g15daemon-1.9.5.3-r6.ebuild, +g15daemon-1.9.5.3-r7.ebuild, + +files/g15daemon-1.9.5.3.initd, g15daemon-9999.ebuild: + Non-maintainer commit. Added rewritten init script to fix bug #451966. Thanks + to Manuel Rüger for reporting this. Moved ebuild with g510 support to -r7. + +*g15daemon-1.9.5.3-r6 (12 Oct 2012) +*g15daemon-9999 (12 Oct 2012) + + 12 Oct 2012; Robin H. Johnson <robbat2@gentoo.org> + +files/g15daemon-1.9.5.3-g510-keys.patch, +g15daemon-1.9.5.3-r6.ebuild, + +g15daemon-9999.ebuild: + More g510 fun. 1.9.5.3-r6 will give you partial support, 9999 will give you + full support. + + 08 Mar 2012; Brent Baude <ranger@gentoo.org> g15daemon-1.9.5.3-r5.ebuild: + Marking g15daemon-1.9.5.3-r5 ppc64 for bug 399941 + + 27 Feb 2012; Brent Baude <ranger@gentoo.org> g15daemon-1.9.5.3-r5.ebuild: + Marking g15daemon-1.9.5.3-r5 ppc for bug 399941 + + 19 Feb 2012; Tomáš Chvátal <scarabeus@gentoo.org> g15daemon-1.9.5.3-r5.ebuild: + Stable on amd64 and x86. + +*g15daemon-1.9.5.3-r5 (09 Sep 2011) + + 09 Sep 2011; Tomáš Chvátal <scarabeus@gentoo.org> + -g15daemon-1.9.5.3-r4.ebuild, +g15daemon-1.9.5.3-r5.ebuild: + Revbump in order to remove static lib and libtool archive. + +*g15daemon-1.9.5.3-r4 (03 Aug 2011) + + 03 Aug 2011; Robin H. Johnson <robbat2@gentoo.org> +files/20g15daemon, + +g15daemon-1.9.5.3-r4.ebuild, files/g15daemon-hotplug, + +files/g15daemon-1.9.5.3-overflow-fix.patch: + Bug #354921, #343133: Fix overflow for amd64. Bug #301340: Fix suspend + behavior. Bug #366863: Improve udev interaction. + + 16 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + g15daemon-1.9.5.3-r3.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #363893). Fix dependency on Perl. + + 28 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> + g15daemon-1.9.5.3-r3.ebuild: + Install 99-g15daemon.rules to /lib/udev instead of /etc/udev. + + 21 Nov 2010; Sebastian Pipping <sping@gentoo.org> + -files/g15daemon-1.2.6a.confd, -files/g15daemon-1.2.6a.initd, + -files/g15daemon-1.2.7-r1.initd, -files/g15daemon-1.2.7.initd: + Remove unused files (bug #342671) + + 09 Mar 2010; Joseph Jezak <josejx@gentoo.org> g15daemon-1.9.5.3-r3.ebuild: + Marked ppc stable for bug #284520. + + 08 Mar 2010; Markus Meier <maekke@gentoo.org> g15daemon-1.9.5.3-r3.ebuild: + amd64 stable, bug #284520 + + 08 Mar 2010; Christian Faulhammer <fauli@gentoo.org> + g15daemon-1.9.5.3-r3.ebuild: + stable x86, security bug 284520 + + 08 Mar 2010; Brent Baude <ranger@gentoo.org> g15daemon-1.9.5.3-r3.ebuild: + Marking g15daemon-1.9.5.3-r3 ppc64 for bug 284520 + +*g15daemon-1.9.5.3-r3 (06 Mar 2010) + + 06 Mar 2010; Robin H. Johnson <robbat2@gentoo.org> + +g15daemon-1.9.5.3-r3.ebuild: + Bug #300352: Fix perl bindings. + + 06 Mar 2010; Robin H. Johnson <robbat2@gentoo.org> + g15daemon-1.2.7-r1.ebuild, g15daemon-1.9.5.3-r2.ebuild: + Bug #300337: the CONFIG_INPUT_UINPUT needs to be safe when no detection of + config options is possible. Just display the warning if we cannot in that + case. Also be non-fatal if the option can be tested and is not set. + + 06 Mar 2010; Robin H. Johnson <robbat2@gentoo.org> metadata.xml: + Changing maintainer per emails of Jan 18th. + + 16 May 2009; Robin H. Johnson <robbat2@gentoo.org> + g15daemon-1.2.7-r1.ebuild, g15daemon-1.9.5.3-r2.ebuild: + Migration to virtual/libusb. Verified by testing hardware. + + 26 Mar 2009; Tomas Chvatal <scarabeus@gentoo.org> + g15daemon-1.9.5.3-r2.ebuild: + Make the ebuild actualy work. I dont see how it could be marked stable + since it was not able to compile at-all. + + 01 Feb 2009; <jokey@gentoo.org> -g15daemon-1.2.7.ebuild, + g15daemon-1.2.7-r1.ebuild, -g15daemon-1.9.5.3-r1.ebuild, + g15daemon-1.9.5.3-r2.ebuild: + Stable on x86 and amd64 + +*g15daemon-1.9.5.3-r2 (01 Feb 2009) + + 01 Feb 2009; <jokey@gentoo.org> +files/g15daemon.conf, + +files/g15daemon-1.9.5.3-forgotten-open-mode.patch, + -g15daemon-1.2.6a-r1.ebuild, -g15daemon-1.9.0-r1.ebuild, + -g15daemon-1.9.1.ebuild, -g15daemon-1.9.2.ebuild, -g15daemon-1.9.3.ebuild, + -g15daemon-1.9.5.3.ebuild, +g15daemon-1.9.5.3-r2.ebuild: + Add a missing open() permission and install default configuration file + +*g15daemon-1.9.5.3-r1 (08 Sep 2008) + + 08 Sep 2008; <chainsaw@gentoo.org> +files/99-g15daemon.rules, + +files/g15daemon-hotplug, +g15daemon-1.9.5.3-r1.ebuild: + Hotplug support by Tais M. Hansen <tais.hansen@osd.dk>, closes bug + #236422. + + 29 May 2008; Ali Polatel <hawking@gentoo.org> g15daemon-1.2.6a-r1.ebuild, + g15daemon-1.2.7.ebuild, g15daemon-1.2.7-r1.ebuild, + g15daemon-1.9.0-r1.ebuild, g15daemon-1.9.1.ebuild, g15daemon-1.9.2.ebuild, + g15daemon-1.9.3.ebuild, g15daemon-1.9.5.3.ebuild: + python_mod_optimize is ROOT aware. + +*g15daemon-1.9.5.3 (21 Feb 2008) + + 21 Feb 2008; Tony Vroon <chainsaw@gentoo.org> +g15daemon-1.9.5.3.ebuild: + Version bump as requested by Efimov Vadim <evadim@evadim.ru>, closes bug + #208771. + +*g15daemon-1.9.3 (28 Dec 2007) + + 28 Dec 2007; Markus Ullmann <jokey@gentoo.org> +g15daemon-1.9.3.ebuild: + Version bump, thanks to robbat2 for the notification + +*g15daemon-1.9.2 (25 Dec 2007) + + 25 Dec 2007; Markus Ullmann <jokey@gentoo.org> +g15daemon-1.9.2.ebuild: + Version bump, bugfix release. more info at + http://sourceforge.net/forum/forum.php?forum_id=767539 + +*g15daemon-1.9.1 (19 Dec 2007) + + 19 Dec 2007; Tony Vroon <chainsaw@gentoo.org> + +files/g15daemon-1.2.7-r2.initd, metadata.xml, +g15daemon-1.9.1.ebuild: + Version bump. Prevent "pid X is not a child of this shell" message by + shutting down the daemon differently. Took maintainership. + +*g15daemon-1.9.0-r1 (04 Oct 2007) +*g15daemon-1.2.7-r1 (04 Oct 2007) + + 04 Oct 2007; Robert Buchholz <rbu@gentoo.org> + +files/g15daemon-1.2.7-r1.initd, +g15daemon-1.2.7-r1.ebuild, + -g15daemon-1.9.0.ebuild, +g15daemon-1.9.0-r1.ebuild: + New POSIX init script by Peter Alfredsen and Roy Marples (bug #194365). + + 01 May 2007; Markus Rothe <corsair@gentoo.org> g15daemon-1.2.7.ebuild: + Stable on ppc64; bug #175120 + + 22 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org> + g15daemon-1.2.7.ebuild: + ppc stable, bug #175120 + + 29 Mar 2007; Markus Ullmann <jokey@gentoo.org> g15daemon-1.2.7.ebuild: + AMD64 stable (welp oleee) + + 15 Mar 2007; Torsten Veller <tove@gentoo.org> g15daemon-1.2.6a-r1.ebuild: + Stable on x86 (#170417) + +*g15daemon-1.9.0 (12 Mar 2007) + + 12 Mar 2007; Robert Buchholz <rbu@gentoo.org> + files/g15daemon-1.2.6a.confd, g15daemon-1.2.6a-r1.ebuild, + g15daemon-1.2.7.ebuild, +g15daemon-1.9.0.ebuild: + Fixes by tove from bug #170417 and version bump + +*g15daemon-1.2.7 (18 Feb 2007) + + 18 Feb 2007; Robert Buchholz <rbu@gentoo.org> + -files/g15daemon-1.2.5.confd, -files/g15daemon-1.2.5.initd, + +files/g15daemon-1.2.7.confd, +files/g15daemon-1.2.7.initd, + -g15daemon-1.2.5.ebuild, g15daemon-1.2.6a-r1.ebuild, + +g15daemon-1.2.7.ebuild: + Version bump, drop old and fix of bug #167240 + + 27 Jan 2007; Joseph Jezak <josejx@gentoo.org> g15daemon-1.2.5.ebuild, + g15daemon-1.2.6a-r1.ebuild: + Marked ~ppc for bug #148072. + +*g15daemon-1.2.6a-r1 (07 Jan 2007) + + 07 Jan 2007; Robert Buchholz <rbu@gentoo.org> + -files/g15daemon-1.2.3.initd, +files/g15daemon-1.2.6a.confd, + +files/g15daemon-1.2.6a.initd, -g15daemon-1.2.3.ebuild, + g15daemon-1.2.5.ebuild, -g15daemon-1.2.6a.ebuild, + +g15daemon-1.2.6a-r1.ebuild: + revbump as init script changed, cleanin out old + +*g15daemon-1.2.6a (06 Dec 2006) + + 06 Dec 2006; Markus Ullmann <jokey@gentoo.org> +g15daemon-1.2.6a.ebuild: + Version bump + +*g15daemon-1.2.5 (13 Nov 2006) + + 13 Nov 2006; Markus Ullmann <jokey@gentoo.org> + -files/g15daemon-1.2.1.initd, +files/g15daemon-1.2.5.confd, + +files/g15daemon-1.2.5.initd, -g15daemon-1.2.1-r2.ebuild, + +g15daemon-1.2.5.ebuild: + Version bump + +*g15daemon-1.2.3 (31 Oct 2006) + + 31 Oct 2006; Markus Ullmann <jokey@gentoo.org> + +files/g15daemon-1.2.3.initd, +g15daemon-1.2.3.ebuild: + Version bump + +*g15daemon-1.2.1-r2 (24 Oct 2006) + + 24 Oct 2006; Markus Ullmann <jokey@gentoo.org> + +files/g15daemon-1.2.1.initd, -files/g15daemon-1.2.1.rc, metadata.xml, + -g15daemon-1.2.1-r1.ebuild, +g15daemon-1.2.1-r2.ebuild: + Revbump to clean up xmms deps + + 18 Oct 2006; Markus Ullmann <jokey@gentoo.org> metadata.xml: + Metadata update + + 14 Oct 2006; Markus Rothe <corsair@gentoo.org> g15daemon-1.2.1-r1.ebuild: + Added ~ppc64; bug #150934 + +*g15daemon-1.2.1-r1 (10 Oct 2006) + + 10 Oct 2006; Markus Ullmann <jokey@gentoo.org> files/g15daemon-1.2.1.rc, + -g15daemon-1.2.1.ebuild, +g15daemon-1.2.1-r1.ebuild: + Adding bindings + +*g15daemon-1.2.1 (04 Oct 2006) + + 04 Oct 2006; Markus Ullmann <jokey@gentoo.org> +files/g15daemon-1.2.1.rc, + +metadata.xml, +g15daemon-1.2.1.ebuild: + Initial import, thanks to Alessio Cassibba in bug #148769 for providing an + ebuild diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest new file mode 100644 index 0000000..0f01743 --- /dev/null +++ b/app-misc/g15daemon/Manifest @@ -0,0 +1,38 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +AUX 20g15daemon 173 SHA256 27be8c2dfa6b4b09203b783b64615947434087d405363141b62dd12bdb17bad6 SHA512 daee2c432860dd3147209724417cbf04ec1ed0c8e882900900722420cbe67d88f32efc81422e04221e54796b66d69e050135b72a96baf40137da58023202d3ca WHIRLPOOL 5ad5f7fd2b4da69d64ba90d5334d8cbe5d8e8fdcc66ff4fa862cb8636a95337a9104a97dfabbd84a4b78710def245a2789a5d18d819ac6428c5413893e429646 +AUX 99-g15daemon.rules 90 SHA256 dab916b3cb839bb55f4b6f599f83de2c4dbdd87005394f737dc59ab4df7d4e84 SHA512 f3ff958bb4e0344b600328fcab86674ce14d852287ec2e083751d0eb855a0591aa17fdae767de4517bcd8a1fa542ab9b559ee79fe284207d2872b8901f2c77f7 WHIRLPOOL 68345a96a004a0a6e1a4aa93f5f91581e210621b9e4b3c2e42de12c57dbd112de6a698ea08b2bab00392d953031fe1765c2b959e42780f5c963e4593708d52e5 +AUX g15daemon-1.2.7-r2.initd 1107 SHA256 37d29b422cdc680bd066d8b0dca874781396aded214cf080014454421c9bb26d SHA512 01c5c6559c42e78df0488886345d67c6be5bad1090ed8cef7675da9d0299efa75fd6cd725e62a426695f1e32ba64220de2ccb1da5745b7342a2564ad850f9228 WHIRLPOOL 338247666a6361e55de34390163cc59b27efba84b9952902512ef570850e90af09ab8b1d8df66c8fe8a0b60e04176bbe6a1622648408d7f5c34e9dc9beef3e1d +AUX g15daemon-1.2.7.confd 329 SHA256 a7977e03f0faaed85f659b077fddc3a589c2e2d4386df1e9afc89133c25bc613 SHA512 ea94ab43c78566c570a510cccb6860ade6c26a281956b6e37ea746eb06608a5a00ed55773752c7aad44bf86cdfec5788e9f1137667fd5030d54b20b97811b43a WHIRLPOOL e3a3a79d94fdbc6a325ad31f61d0e8350d74f3fe8e1f233a1cd475beae52d838d17503c716e4fba975abc8d8bd6c9b588ef6b5a7f3ef5cede7a45150e2133dc0 +AUX g15daemon-1.9.5.3-forgotten-open-mode.patch 639 SHA256 0d97a53d63052d2da325b39b6186330432fbf1a16be3e09eef4f250410f79e38 SHA512 dc603a576eaf6bd8512827de712c3ba6a116905d5f6c692dccda1b499a3bab8480a785155d3b0189b41e2dff099fc5896cb958bcc83357ff54333a82f4b6ca93 WHIRLPOOL b2e8194e4bc32426b498a4852e744c57c5c928c24f331c3629718ca4153438d190ce71f7dcfd418216a7b1527f6703141a2aee375b3a11c0122dd406861a5b5e +AUX g15daemon-1.9.5.3-g510-keys.patch 14094 SHA256 58401dbc85ba620553df236afe2cdfc89b93d0a98afe9d98b0666978a6a10a10 SHA512 1757a499d1bc2abe33db13dab8a5b17add8619494badd963209cbf8e7a14543bcff0ca48e10049a1e3cbd947e1de04560ea5163bf489e118a0e8d89fbb377898 WHIRLPOOL 5de64b9a4271aabecd7fccb70ded31918df686b1977de31c3b0bb0ded53ffcd449753e8803ba40551c82c708447e4bff2f77285ef27f73fecb51559f81f88688 +AUX g15daemon-1.9.5.3-overflow-fix.patch 619 SHA256 0c9c888c4f2e26cf51981714e917e963b371ed2b8d84c6e00b4c13df371afeda SHA512 e5f4494c0890ce985391d5a07d809e7168f765549c17b55457d93436ce816074aa97f991b894067badacf5e0bcc7f482d6b7e1623b0157a04d728f2ca4b1bf27 WHIRLPOOL 56a2674397e61c3c065e3ebe47b1da3617b3a91024ff213b5bbc4eb34ba85b98dc370842b331c7cb4d119355e98421b1f4b19cd700dbf120ca817f8646c99733 +AUX g15daemon-1.9.5.3.initd 1051 SHA256 7f11b0d8686953dae10abf07d0aeda1e52f97b818c370d36d2f6fb31b2663869 SHA512 616558c9d127b8e4af23a8bb590d0a1233ec8643014b9b00df33ac40f193d1bef802765a060e62b3517977efece7aba9947a74077c236f190cd7377109b1e183 WHIRLPOOL 86015624169103e424c51730513ef38feb0edd460fffc00849ce2a4e020b3394586614a32a7d6e8784ee7a9199c84262552c876e9b7d3f59e5a2df04080b716b +AUX g15daemon-hotplug 224 SHA256 ff7fc4857cab25ab57c9ceca9e4c1f9ca365fc140da21e8cfa9788ee9544ba38 SHA512 6384aa8267a665b0b26f45f7339856647374ad5b1860f299b2e19afb0209b8637919f00b3638affbe4fb86adaf115eb93e814b70c17d52f1c878d840e1e464e8 WHIRLPOOL 80c477f97bebb55815746d6361da04139661da111e63497ee7d2c057074a76a67fff479d7beb47bc7acb77667348eb436372afd5bef16d1efb06114ce32d6d5b +AUX g15daemon.conf 516 SHA256 94a79cea3ac0fa566cd6515e32eec22bb6a26e353c83608767dc65d1a2404037 SHA512 e575fd8a91c87f226481ae406a1b66de6d8eb66f061b0ce7f2b89ce63f7bda88470eac50adcc9de97ef866970ee835af8a1bb0402a2e4b4d214251d0b8ebe25c WHIRLPOOL 2b94c324074a8936343bc22bd9d58e2b58a4b9220000b6544d901ff718b2e055bd363e0202fd72fb212520cb8be7e325af3be3ac7423922c0f481339c8813d92 +DIST g15daemon-1.9.5.3.tar.gz 414603 SHA256 40ff07a4186c1fd01ea23d1753a2cb3bef25f92cc496ddddc6abde6a574cd60a SHA512 7a1770d08d1d4155866bba3b676d33bf943363f4519af41a13ab6ec73cc5d6c536b173977b3e3583b594b149b7f01ffbc51123a4678c2a249a51ff0b42c8b69a WHIRLPOOL 216e8d7ef3a79064e161e7b579271946215cbd49566672dccf9c69e0d478b1bf19b8b19334eb180c129bef03e900bd7fb532ba524a5cfd384f6abd9162ae3eb1 +EBUILD g15daemon-1.9.5.3-r3.ebuild 3978 SHA256 a9fe2935b56303c08282836ce857db559c2225123d2e80230c224d06bae33337 SHA512 37a2d1ad50902cdf9956c0539ae73102f10886d7193519c8c24a1eea2a5d5b53646370ed27c1f4d21ff625366fb665ac2f35428371240b4f6eb6d2f7cf391996 WHIRLPOOL a57335278aa6c1b6e509aa5364c2ccd276d36b4bfd4712c0e81416510c20aee1423d656fad8c663c2504d76a196eaa3700947279d923be99ed8fc6dae47e77ad +EBUILD g15daemon-1.9.5.3-r5.ebuild 4164 SHA256 0ab88aed764c41d87420d06120a6b8fa94830cbede39d10a8c2b4c4f66b4f849 SHA512 8c5a89f74a5a7379e7860ac9a49e686fa1e9b3427e66d0509a45b61e4fff7eba913a1f1737bece5e090e01b58b39ea9f0406b618ee571e8b5e1991242fffdfd4 WHIRLPOOL 6279bf6792fd05b291a57d6d49beacf86b43e880e04ea9d99fa27486eacc2d9933e056eee11cb72a21473738780f393717520acb33cc717c51400fc578578a02 +EBUILD g15daemon-1.9.5.3-r7.ebuild 4160 SHA256 8533bc7ab783f105e858c983a6cab5d57c718f5077d84c3bab581393130f4e7b SHA512 3f49cfec47537b5655751bcd853c08274c842d9823d20911ab2560ecda5ba1da8021b22a63528249ae00b0c186a177ff86bc589e8e51b98823bd96f07bff0d33 WHIRLPOOL b7bddbd5de189dd6f9123b34cb25cb2090f2e6817e454a93e038c6392bf3cc677a8e8407f5d0993bb43419d544d3eac07d01defe594e6589ac925ebe022d683b +EBUILD g15daemon-1.9.5.3-r8.ebuild 4186 SHA256 12cc69e35cca34967a706a6b8b84cbb2f824721364fb072d28db194b1ce72289 SHA512 3ccd32dcd72c1776f08e08ab70ba02f7185c106d8dc50845b0bf559f6951ed7388acc46323aea4c84352db9119543bc6325be71783e29bf18a01934f021c7f35 WHIRLPOOL da86c9b5f4f824f3857800e2a5b6cd8a60530ed6499c4e3361ea0eec1b39576a6eaba718320422cd3aecae59b3c7afb738ea2c979c631bb763faa7223e394df2 +EBUILD g15daemon-9999.ebuild 4535 SHA256 8238c3e310972fbe317360ee4bf9739759bf065c65e8ead6778590e543d5f958 SHA512 d46c03e40cdeabdb8166dfddc8871f2073d5720a853c784a221356c2a5e78e0d61625c4df6ea609fb0bf5d84b3040f25b77029f5fdd950f81c9f31d21473913e WHIRLPOOL 6422fcc181a527f964cf2e9d2971e964ef34c333a242afebbbfea49ccedeab5b1c4534b8aa3d5796eb712ab1e1ecec4a3699c2748f622fe4551cbacf7be419a2 +MISC ChangeLog 9814 SHA256 75209dd53116a177c5f12946f6e867089d627765fce713f9600bf3be1aa5593d SHA512 59a494b78b35416e4ba6282faee4138d22a7817a3e66c1b57388c11df28758d7a7b0b09935257701f4f4f1ac0c4c9c6d55aa37582d8b09696bf0c21c6cd71e27 WHIRLPOOL f0e8b5bb38276402605e3f27c74f602182057c87934498214242a27d28788d9cc98c7be05d677d3f61e367d9fffa1c6a0e5f6d2dd97072e88edc21d7afb9296f +MISC metadata.xml 204 SHA256 f3aeb60df346d19b4d43cea2b2916d51674d99dabfce252723548687909cbd6b SHA512 f97ac61dcf6e780d89337c14c3cebae1af93a1246bf521bbec4f008ae43324dd6f3869cd5aec03e4ddde5220b57a9decaa6612dbae880d21a9c59267635e688f WHIRLPOOL aa295b44397d48d7d0ff8917d1812d73389288c4e6fa9d226bbdfc108ffe386cf83d67bfc019428fd28b119fb73cc185df80d377a55399cfadd61acc3853edc3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iQIcBAEBCgAGBQJSAkqbAAoJELp701BxlEWfL9wQAL304tU681pH3PJSwpksJP1q +QYqK2PFmbDnW1HCIBvJMKhVqPc6FVFQuZ9fIxLm2IrkOvrTsjEpUJduwe3zzNLLL +tJ5YMzuTTVt2a7H7ct3GRKs5L7Sm5ddS703R/qIs9cO/NWJ/qtsKAJjgXxrRoTwR +m8yxXMB0AMvFOlJ71N4FddOxJbGS3FsBF2FPMcLM/9fYb8zT7+oARkw7oTDcNxs1 +5Scg/unRK6deCZLdWUW4k28doBLBxZb8eJUfQVfuCLAoZBavyj9uOMcepr8ca8r3 +p8ePkNmF4ja93ytew61J+Uhc/O0mKyIzlu2DGXh+9l6dYjOIz8FCFfYY3PqHqRQu +B2DFAeXXthSZMQEpJe4qiaksbj8ofCI2p/RB2feYuWVU2ROZzzTnPaKbERDxDJQi +Ltf7JGb82EzbFeNo79u6AmxdDlrCgOP4OuAB6MDXiC/RUY9cEH78Pj5i2QYyARwo +PkfvEqmUs5vCHZ1ePO4qr7ykCv35PMAO1Y/aLsqW0Beqd0FJ8Rq107YmKvVS/0Qk +7GY762355lv+4vH4UZXE6vQPmdRCzKfe+0znpoqN7sCM0FhF08ibfImzj8m4dYzl +X8kp/4LqHjGeS1A79egmbayy8Yomwa1TcdzUNVmOi79vNU9q9wgneutJrnVYN2yD +4YUYbSckdQ37St6cYfoJ +=WIyG +-----END PGP SIGNATURE----- diff --git a/app-misc/g15daemon/files/20g15daemon b/app-misc/g15daemon/files/20g15daemon new file mode 100644 index 0000000..ee14225 --- /dev/null +++ b/app-misc/g15daemon/files/20g15daemon @@ -0,0 +1,15 @@ +#!/bin/sh + +. "${PM_FUNCTIONS}" + +case "$1" in + hibernate|suspend) + /etc/init.d/g15daemon stop + ;; + thaw|resume) + /etc/init.d/g15daemon start + ;; + *) + exit $NA + ;; +esac diff --git a/app-misc/g15daemon/files/99-g15daemon.rules b/app-misc/g15daemon/files/99-g15daemon.rules new file mode 100644 index 0000000..d491d68 --- /dev/null +++ b/app-misc/g15daemon/files/99-g15daemon.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usb", ATTR{product}=="G15 Gaming Keyboard", RUN+="/usr/bin/g15daemon-hotplug" diff --git a/app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd b/app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd new file mode 100644 index 0000000..b8e8cd6 --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/files/g15daemon-1.2.7-r2.initd,v 1.1 2007/12/19 17:38:30 chainsaw Exp $ + +# Init script for g15daemon + +depend() { + after hotplug + after usb + after modules +} + +start() { + ebegin "Starting g15daemon" + + # Does the input device already exist? + if [ -e /proc/modules -a ! -e /dev/input/uinput ]; then + # We can load modules, but uinput device does not exist + einfo "Loading uinput module" + /sbin/modprobe uinput > /dev/null 2> /dev/null + fi + + local SWITCHKEY="" + [ "${CLIENT_SWITCH_L1}" = "yes" ] && SWITCHKEY="--switch" + start-stop-daemon --start --background --pidfile /var/run/g15daemon.pid \ + --exec /usr/sbin/g15daemon -- ${SWITCHKEY} + eend $? "Failed to start g15daemon." +} + +stop() { + ebegin "Stopping g15daemon" + local KILLOPT="-k" + if [ $BACKLIGHT_OFF = "yes" ]; then + KILLOPT="-K" + fi + /usr/sbin/g15daemon ${KILLOPT} &>/dev/null + sleep 1 + start-stop-daemon -R 5 --stop --quiet --pidfile /var/run/g15daemon.pid + eend $? +} diff --git a/app-misc/g15daemon/files/g15daemon-1.2.7.confd b/app-misc/g15daemon/files/g15daemon-1.2.7.confd new file mode 100644 index 0000000..08ea97f --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.2.7.confd @@ -0,0 +1,9 @@ +# /etc/conf.d/g15daemon: Configuration for the g15daemon + +# Key to switch the client-screens. Default is the MR key, +# Set to "yes" to use L1 key instead (black round key below the LCD, above the multimedia keys). +CLIENT_SWITCH_L1="no" + +# Set to "yes" to switch off the lcd backlight when stopping g15daemon. +BACKLIGHT_OFF="no" + diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch new file mode 100644 index 0000000..b475f1d --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch @@ -0,0 +1,11 @@ +--- ./g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2008-01-26 06:02:07.000000000 +0100 ++++ ./g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2009-02-01 17:00:55.203009264 +0100 +@@ -356,7 +356,7 @@ + config_items_t * item=NULL; + char line[1024]; + +- config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC); ++ config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC,0664); + if(config_fd){ + snprintf(line,1024,"# G15Daemon Configuration File\n# any items entered before a [section] header\n# will be in the Global config space\n# comments you wish to keep should start with a semicolon';'\n"); + write(config_fd,line,strlen(line)); diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch new file mode 100644 index 0000000..240f21c --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch @@ -0,0 +1,340 @@ +From http://sourceforge.net/tracker/?func=detail&aid=3152167&group_id=167869&atid=844658 + +diff -aNru trunk/g15daemon-wip/plugins/g15_plugin_uinput.c mod/g15daemon-wip/plugins/g15_plugin_uinput.c +--- trunk/g15daemon-wip/plugins/g15_plugin_uinput.c 2011-06-26 06:50:50.000000000 +0000 ++++ mod/g15daemon-wip/plugins/g15_plugin_uinput.c 2011-06-26 06:51:42.000000000 +0000 +@@ -164,146 +164,195 @@ + + static void g15_process_keys(g15daemon_t *masterlist, unsigned int currentkeys, unsigned int lastkeys) + { +- /* 'G' keys */ +- if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1)) +- keydown(GKEY_OFFSET); +- else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1)) +- keyup(GKEY_OFFSET); +- +- if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2)) +- keydown(GKEY_OFFSET+1); +- else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2)) +- keyup(GKEY_OFFSET+1); +- +- if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3)) +- keydown(GKEY_OFFSET+2); +- else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3)) +- keyup(GKEY_OFFSET+2); +- +- if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4)) +- keydown(GKEY_OFFSET+3); +- else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4)) +- keyup(GKEY_OFFSET+3); +- +- if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5)) +- keydown(GKEY_OFFSET+4); +- else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5)) +- keyup(GKEY_OFFSET+4); +- +- if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6)) +- keydown(GKEY_OFFSET+5); +- else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6)) +- keyup(GKEY_OFFSET+5); +- +- if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7)) +- keydown(GKEY_OFFSET+6); +- else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7)) +- keyup(GKEY_OFFSET+6); +- +- if((currentkeys & G15_KEY_G8) && !(lastkeys & G15_KEY_G8)) +- keydown(GKEY_OFFSET+7); +- else if(!(currentkeys & G15_KEY_G8) && (lastkeys & G15_KEY_G8)) +- keyup(GKEY_OFFSET+7); +- +- if((currentkeys & G15_KEY_G9) && !(lastkeys & G15_KEY_G9)) +- keydown(GKEY_OFFSET+8); +- else if(!(currentkeys & G15_KEY_G9) && (lastkeys & G15_KEY_G9)) +- keyup(GKEY_OFFSET+8); +- +- if((currentkeys & G15_KEY_G10) && !(lastkeys & G15_KEY_G10)) +- keydown(GKEY_OFFSET+9); +- else if(!(currentkeys & G15_KEY_G10) && (lastkeys & G15_KEY_G10)) +- keyup(GKEY_OFFSET+9); +- +- if((currentkeys & G15_KEY_G11) && !(lastkeys & G15_KEY_G11)) +- keydown(GKEY_OFFSET+10); +- else if(!(currentkeys & G15_KEY_G11) && (lastkeys & G15_KEY_G11)) +- keyup(GKEY_OFFSET+10); +- +- if((currentkeys & G15_KEY_G12) && !(lastkeys & G15_KEY_G12)) +- keydown(GKEY_OFFSET+11); +- else if(!(currentkeys & G15_KEY_G12) && (lastkeys & G15_KEY_G12)) +- keyup(GKEY_OFFSET+11); +- +- if((currentkeys & G15_KEY_G13) && !(lastkeys & G15_KEY_G13)) +- keydown(GKEY_OFFSET+12); +- else if(!(currentkeys & G15_KEY_G13) && (lastkeys & G15_KEY_G13)) +- keyup(GKEY_OFFSET+12); +- +- if((currentkeys & G15_KEY_G14) && !(lastkeys & G15_KEY_G14)) +- keydown(GKEY_OFFSET+13); +- else if(!(currentkeys & G15_KEY_G14) && (lastkeys & G15_KEY_G14)) +- keyup(GKEY_OFFSET+13); +- +- if((currentkeys & G15_KEY_G15) && !(lastkeys & G15_KEY_G15)) +- keydown(GKEY_OFFSET+14); +- else if(!(currentkeys & G15_KEY_G15) && (lastkeys & G15_KEY_G15)) +- keyup(GKEY_OFFSET+14); +- +- if((currentkeys & G15_KEY_G16) && !(lastkeys & G15_KEY_G16)) +- keydown(GKEY_OFFSET+15); +- else if(!(currentkeys & G15_KEY_G16) && (lastkeys & G15_KEY_G16)) +- keyup(GKEY_OFFSET+15); +- +- if((currentkeys & G15_KEY_G17) && !(lastkeys & G15_KEY_G17)) +- keydown(GKEY_OFFSET+16); +- else if(!(currentkeys & G15_KEY_G17) && (lastkeys & G15_KEY_G17)) +- keyup(GKEY_OFFSET+16); +- +- if((currentkeys & G15_KEY_G18) && !(lastkeys & G15_KEY_G18)) +- keydown(GKEY_OFFSET+17); +- else if(!(currentkeys & G15_KEY_G18) && (lastkeys & G15_KEY_G18)) +- keyup(GKEY_OFFSET+17); +- +- /* 'M' keys */ +- +- if((currentkeys & G15_KEY_M1) && !(lastkeys & G15_KEY_M1)) +- keydown(MKEY_OFFSET); +- else if(!(currentkeys & G15_KEY_M1) && (lastkeys & G15_KEY_M1)) +- keyup(MKEY_OFFSET); +- +- if((currentkeys & G15_KEY_M2) && !(lastkeys & G15_KEY_M2)) +- keydown(MKEY_OFFSET+1); +- else if(!(currentkeys & G15_KEY_M2) && (lastkeys & G15_KEY_M2)) +- keyup(MKEY_OFFSET+1); +- +- if((currentkeys & G15_KEY_M3) && !(lastkeys & G15_KEY_M3)) +- keydown(MKEY_OFFSET+2); +- else if(!(currentkeys & G15_KEY_M3) && (lastkeys & G15_KEY_M3)) +- keyup(MKEY_OFFSET+2); +- +- if((currentkeys & G15_KEY_MR) && !(lastkeys & G15_KEY_MR)) +- keydown(MKEY_OFFSET+3); +- else if(!(currentkeys & G15_KEY_MR) && (lastkeys & G15_KEY_MR)) +- keyup(MKEY_OFFSET+3); +- +- if(map_Lkeys){ +- /* 'L' keys... */ +- if((currentkeys & G15_KEY_L1) && !(lastkeys & G15_KEY_L1)) +- keydown(LKEY_OFFSET); +- else if(!(currentkeys & G15_KEY_L1) && (lastkeys & G15_KEY_L1)) +- keyup(LKEY_OFFSET); +- +- if((currentkeys & G15_KEY_L2) && !(lastkeys & G15_KEY_L2)) +- keydown(LKEY_OFFSET+1); +- else if(!(currentkeys & G15_KEY_L2) && (lastkeys & G15_KEY_L2)) +- keyup(LKEY_OFFSET+1); +- +- if((currentkeys & G15_KEY_L3) && !(lastkeys & G15_KEY_L3)) +- keydown(LKEY_OFFSET+2); +- else if(!(currentkeys & G15_KEY_L3) && (lastkeys & G15_KEY_L3)) +- keyup(LKEY_OFFSET+2); +- +- if((currentkeys & G15_KEY_L4) && !(lastkeys & G15_KEY_L4)) +- keydown(LKEY_OFFSET+3); +- else if(!(currentkeys & G15_KEY_L4) && (lastkeys & G15_KEY_L4)) +- keyup(LKEY_OFFSET+3); +- +- if((currentkeys & G15_KEY_L5) && !(lastkeys & G15_KEY_L5)) +- keydown(LKEY_OFFSET+4); +- else if(!(currentkeys & G15_KEY_L5) && (lastkeys & G15_KEY_L5)) +- keyup(LKEY_OFFSET+4); ++ if(!(currentkeys & G15_KEY_LIGHT)) ++ { ++ /* 'G' keys */ ++ if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1)) ++ keydown(GKEY_OFFSET); ++ else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1)) ++ keyup(GKEY_OFFSET); ++ ++ if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2)) ++ keydown(GKEY_OFFSET+1); ++ else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2)) ++ keyup(GKEY_OFFSET+1); ++ ++ if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3)) ++ keydown(GKEY_OFFSET+2); ++ else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3)) ++ keyup(GKEY_OFFSET+2); ++ ++ if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4)) ++ keydown(GKEY_OFFSET+3); ++ else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4)) ++ keyup(GKEY_OFFSET+3); ++ ++ if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5)) ++ keydown(GKEY_OFFSET+4); ++ else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5)) ++ keyup(GKEY_OFFSET+4); ++ ++ if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6)) ++ keydown(GKEY_OFFSET+5); ++ else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6)) ++ keyup(GKEY_OFFSET+5); ++ ++ if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7)) ++ keydown(GKEY_OFFSET+6); ++ else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7)) ++ keyup(GKEY_OFFSET+6); ++ ++ if((currentkeys & G15_KEY_G8) && !(lastkeys & G15_KEY_G8)) ++ keydown(GKEY_OFFSET+7); ++ else if(!(currentkeys & G15_KEY_G8) && (lastkeys & G15_KEY_G8)) ++ keyup(GKEY_OFFSET+7); ++ ++ if((currentkeys & G15_KEY_G9) && !(lastkeys & G15_KEY_G9)) ++ keydown(GKEY_OFFSET+8); ++ else if(!(currentkeys & G15_KEY_G9) && (lastkeys & G15_KEY_G9)) ++ keyup(GKEY_OFFSET+8); ++ ++ if((currentkeys & G15_KEY_G10) && !(lastkeys & G15_KEY_G10)) ++ keydown(GKEY_OFFSET+9); ++ else if(!(currentkeys & G15_KEY_G10) && (lastkeys & G15_KEY_G10)) ++ keyup(GKEY_OFFSET+9); ++ ++ if((currentkeys & G15_KEY_G11) && !(lastkeys & G15_KEY_G11)) ++ keydown(GKEY_OFFSET+10); ++ else if(!(currentkeys & G15_KEY_G11) && (lastkeys & G15_KEY_G11)) ++ keyup(GKEY_OFFSET+10); ++ ++ if((currentkeys & G15_KEY_G12) && !(lastkeys & G15_KEY_G12)) ++ keydown(GKEY_OFFSET+11); ++ else if(!(currentkeys & G15_KEY_G12) && (lastkeys & G15_KEY_G12)) ++ keyup(GKEY_OFFSET+11); ++ ++ if((currentkeys & G15_KEY_G13) && !(lastkeys & G15_KEY_G13)) ++ keydown(GKEY_OFFSET+12); ++ else if(!(currentkeys & G15_KEY_G13) && (lastkeys & G15_KEY_G13)) ++ keyup(GKEY_OFFSET+12); ++ ++ if((currentkeys & G15_KEY_G14) && !(lastkeys & G15_KEY_G14)) ++ keydown(GKEY_OFFSET+13); ++ else if(!(currentkeys & G15_KEY_G14) && (lastkeys & G15_KEY_G14)) ++ keyup(GKEY_OFFSET+13); ++ ++ if((currentkeys & G15_KEY_G15) && !(lastkeys & G15_KEY_G15)) ++ keydown(GKEY_OFFSET+14); ++ else if(!(currentkeys & G15_KEY_G15) && (lastkeys & G15_KEY_G15)) ++ keyup(GKEY_OFFSET+14); ++ ++ if((currentkeys & G15_KEY_G16) && !(lastkeys & G15_KEY_G16)) ++ keydown(GKEY_OFFSET+15); ++ else if(!(currentkeys & G15_KEY_G16) && (lastkeys & G15_KEY_G16)) ++ keyup(GKEY_OFFSET+15); ++ ++ if((currentkeys & G15_KEY_G17) && !(lastkeys & G15_KEY_G17)) ++ keydown(GKEY_OFFSET+16); ++ else if(!(currentkeys & G15_KEY_G17) && (lastkeys & G15_KEY_G17)) ++ keyup(GKEY_OFFSET+16); ++ ++ if((currentkeys & G15_KEY_G18) && !(lastkeys & G15_KEY_G18)) ++ keydown(GKEY_OFFSET+17); ++ else if(!(currentkeys & G15_KEY_G18) && (lastkeys & G15_KEY_G18)) ++ keyup(GKEY_OFFSET+17); ++ ++ /* 'M' keys */ ++ ++ if((currentkeys & G15_KEY_M1) && !(lastkeys & G15_KEY_M1)) ++ keydown(MKEY_OFFSET); ++ else if(!(currentkeys & G15_KEY_M1) && (lastkeys & G15_KEY_M1)) ++ keyup(MKEY_OFFSET); ++ ++ if((currentkeys & G15_KEY_M2) && !(lastkeys & G15_KEY_M2)) ++ keydown(MKEY_OFFSET+1); ++ else if(!(currentkeys & G15_KEY_M2) && (lastkeys & G15_KEY_M2)) ++ keyup(MKEY_OFFSET+1); ++ ++ if((currentkeys & G15_KEY_M3) && !(lastkeys & G15_KEY_M3)) ++ keydown(MKEY_OFFSET+2); ++ else if(!(currentkeys & G15_KEY_M3) && (lastkeys & G15_KEY_M3)) ++ keyup(MKEY_OFFSET+2); ++ ++ if((currentkeys & G15_KEY_MR) && !(lastkeys & G15_KEY_MR)) ++ keydown(MKEY_OFFSET+3); ++ else if(!(currentkeys & G15_KEY_MR) && (lastkeys & G15_KEY_MR)) ++ keyup(MKEY_OFFSET+3); ++ ++ if(map_Lkeys){ ++ /* 'L' keys... */ ++ if((currentkeys & G15_KEY_L1) && !(lastkeys & G15_KEY_L1)) ++ keydown(LKEY_OFFSET); ++ else if(!(currentkeys & G15_KEY_L1) && (lastkeys & G15_KEY_L1)) ++ keyup(LKEY_OFFSET); ++ ++ if((currentkeys & G15_KEY_L2) && !(lastkeys & G15_KEY_L2)) ++ keydown(LKEY_OFFSET+1); ++ else if(!(currentkeys & G15_KEY_L2) && (lastkeys & G15_KEY_L2)) ++ keyup(LKEY_OFFSET+1); ++ ++ if((currentkeys & G15_KEY_L3) && !(lastkeys & G15_KEY_L3)) ++ keydown(LKEY_OFFSET+2); ++ else if(!(currentkeys & G15_KEY_L3) && (lastkeys & G15_KEY_L3)) ++ keyup(LKEY_OFFSET+2); ++ ++ if((currentkeys & G15_KEY_L4) && !(lastkeys & G15_KEY_L4)) ++ keydown(LKEY_OFFSET+3); ++ else if(!(currentkeys & G15_KEY_L4) && (lastkeys & G15_KEY_L4)) ++ keyup(LKEY_OFFSET+3); ++ ++ if((currentkeys & G15_KEY_L5) && !(lastkeys & G15_KEY_L5)) ++ keydown(LKEY_OFFSET+4); ++ else if(!(currentkeys & G15_KEY_L5) && (lastkeys & G15_KEY_L5)) ++ keyup(LKEY_OFFSET+4); ++ } + } ++ else ++ { ++ // G15_KEY_LIGHT - Key modifier for Logitech G510 Media Keys implementation ++ ++ // XF86AudioPlay ++ if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1)) ++ keydown(KEY_PLAYPAUSE); ++ else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1)) ++ keyup(KEY_PLAYPAUSE); ++ ++ // XF86AudioStop ++ if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2)) ++ keydown(KEY_STOPCD); ++ else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2)) ++ keyup(KEY_STOPCD); ++ ++ // XF86AudioPrev ++ if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3)) ++ keydown(KEY_PREVIOUSSONG); ++ else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3)) ++ keyup(KEY_PREVIOUSSONG); ++ ++ // XF86AudioNext ++ if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4)) ++ keydown(KEY_NEXTSONG); ++ else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4)) ++ keyup(KEY_NEXTSONG); ++ ++ // XF86AudioMute ++ if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5)) ++ keydown(KEY_MUTE); ++ else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5)) ++ keyup(KEY_MUTE); ++ ++ // XF86AudioRaiseVolume ++ if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6)) ++ keydown(KEY_VOLUMEUP); ++ else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6)) ++ keyup(KEY_VOLUMEUP); ++ ++ // XF86AudioLowerVolume ++ if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7)) ++ keydown(KEY_VOLUMEDOWN); ++ else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7)) ++ keyup(KEY_VOLUMEDOWN); ++ } + } + + diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch new file mode 100644 index 0000000..71cbf91 --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch @@ -0,0 +1,11 @@ +--- ./g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c 2008-01-25 05:45:05.000000000 +0100 ++++ ./g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c 2011-02-14 22:51:55.203009264 +0100 +@@ -217,7 +217,7 @@ + if(poll(pfd,1,100)>0){ + if(pfd[0].revents & POLLPRI && !(pfd[0].revents & POLLERR || pfd[0].revents & POLLHUP || pfd[0].revents & POLLNVAL)) { + memset(packet,0,sizeof(packet)); +- msgret = recv(sock, packet, 10 , MSG_OOB); ++ msgret = recv(sock, packet, sizeof(packet), MSG_OOB); + if (msgret < 1) { + return -1; + } diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd new file mode 100644 index 0000000..7976cff --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd,v 1.2 2013/03/18 17:49:55 polynomial-c Exp $ + +# Init script for g15daemon + +pidfile="/var/run/g15daemon.pid" +command="/usr/sbin/g15daemon" +command_args="" +start_stop_daemon_args="--background --pidfile ${pidfile}" + +depend() { + after hotplug + after usb + after modules +} + +start_pre() { + # Does the input device already exist? + if [ -e "/proc/modules" ] ; then + if [ ! -e "/dev/input/uinput" ] && [ ! -e "/dev/uinput" ] ; then + # We can load modules, but uinput device does not exist + einfo "Loading uinput module" + /sbin/modprobe uinput > /dev/null 2> /dev/null + fi + fi + + local SWITCHKEY="" + [ "${CLIENT_SWITCH_L1}" = "yes" ] && command_args="--switch" +} + +stop() { + ebegin "Stopping g15daemon" + local KILLOPT="-k" + if [ $BACKLIGHT_OFF = "yes" ]; then + KILLOPT="-K" + fi + start-stop-daemon -R 5 --exec ${command} -- ${KILLOPT} + eend $? +} diff --git a/app-misc/g15daemon/files/g15daemon-hotplug b/app-misc/g15daemon/files/g15daemon-hotplug new file mode 100644 index 0000000..2ae8be0 --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon-hotplug @@ -0,0 +1,15 @@ +#!/bin/sh + +export IN_HOTPLUG=1 + +case "$ACTION" in + "add") + /etc/init.d/g15daemon --quiet restart + ;; + "remove") + /etc/init.d/g15daemon --quiet stop + ;; + *) + exit 0 + ;; +esac diff --git a/app-misc/g15daemon/files/g15daemon.conf b/app-misc/g15daemon/files/g15daemon.conf new file mode 100644 index 0000000..2d2bfc3 --- /dev/null +++ b/app-misc/g15daemon/files/g15daemon.conf @@ -0,0 +1,27 @@ +# G15Daemon Configuration File +# any items entered before a [section] header +# will be in the Global config space +# comments you wish to keep should start with a semicolon';' + +[Global] +Use MR as Cycle Key: Off + +[PLUGIN_LOAD_ORDER] +0: g15plugin_uinput.so +1: g15plugin_clock.so +2: g15plugin_tcpserver.so +TotalPlugins: 3 + +[PLUGINS] +Linux UINPUT Keyboard Output: Load +Clock: Load +LCDServer: Load + +[Keyboard OS Mapping (uinput)] +device: /dev/input/uinput +Lkeys.mapped: 0 + +[Clock] +24hrFormat: On +ShowDate: Off +Digital: On diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r7.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r7.ebuild new file mode 100644 index 0000000..860bbb5 --- /dev/null +++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r7.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r7.ebuild,v 1.6 2013/08/07 13:27:55 ago Exp $ + +EAPI=4 +GENTOO_DEPEND_ON_PERL="no" +PYTHON_DEPEND="python? *" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils linux-info perl-module python base + +DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver" +HOMEPAGE="http://g15daemon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="perl python static-libs" + +DEPEND="virtual/libusb:0 + >=dev-libs/libg15-1.2.4 + >=dev-libs/libg15render-1.2 + perl? ( + dev-lang/perl + dev-perl/GDGraph + >=dev-perl/Inline-0.4 + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-forgotten-open-mode.patch" + "${FILESDIR}/${P}-overflow-fix.patch" +) +uinput_check() { + ebegin "Checking for uinput support" + local rc=1 + linux_config_exists && linux_chkconfig_present INPUT_UINPUT + rc=$? + + if [[ $rc -ne 0 ]] ; then + eerror "To use g15daemon, you need to compile your kernel with uinput support." + eerror "Please enable uinput support in your kernel config, found at:" + eerror + eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support." + eerror + eerror "Once enabled, you should have the /dev/input/uinput device." + eerror "g15daemon will not work without the uinput device." + fi +} + +pkg_setup() { + linux-info_pkg_setup + uinput_check + if use python; then + python_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + if use perl; then + unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz" + fi + if use python; then + unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2" + fi +} + +src_prepare() { + if use perl; then + perl-module_src_prepare + sed -i \ + -e '1i#!/usr/bin/perl' \ + "${S}"/contrib/testbindings.pl + else + # perl-module_src_prepare always calls base_src_prepare + base_src_prepare + fi +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + $(use_enable static-libs static) + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_configure + fi +} + +src_compile() { + default + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_compile + fi +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm -f {} + + + # remove odd docs installed my make + rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage} + + insinto /usr/share/${PN}/contrib + doins contrib/xmodmaprc + doins contrib/xmodmap.sh + if use perl; then + doins contrib/testbindings.pl + fi + + newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN} + newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN} + dobin "${FILESDIR}/g15daemon-hotplug" + insinto /lib/udev/rules.d + doins "${FILESDIR}/99-g15daemon.rules" + + insinto /etc + doins "${FILESDIR}"/g15daemon.conf + + # Gentoo bug #301340, debian bug #611649 + exeinto /usr/lib/pm-utils/sleep.d + doexe "${FILESDIR}"/20g15daemon + + if use perl; then + ebegin "Installing Perl Bindings (G15Daemon.pm)" + cd "${WORKDIR}/G15Daemon-0.2" + docinto perl + perl-module_src_install + fi + + if use python; then + ebegin "Installing Python Bindings (g15daemon.py)" + cd "${WORKDIR}/pyg15daemon" + + installation() { + insinto $(python_get_sitedir) + doins g15daemon.py + } + python_execute_function installation + + docinto python + dodoc AUTHORS + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize g15daemon.py + echo "" + fi + + elog "To use g15daemon, you need to add g15daemon to the default runlevel." + elog "This can be done with:" + elog "# /sbin/rc-update add g15daemon default" + elog "You can edit some g15daemon options at /etc/conf.d/g15daemon" + elog "" + elog "To have all new keys working in X11, you'll need create a " + elog "specific xmodmap in your home directory or edit the existent one." + elog "" + elog "Create the xmodmap:" + elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap" + elog "" + elog "Adding keycodes to an existing xmodmap:" + elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap" +} + +pkg_postrm() { + if use python; then + python_mod_cleanup g15daemon.py + fi +} diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r8.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r8.ebuild new file mode 100644 index 0000000..dbf1343 --- /dev/null +++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r8.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3-r8.ebuild,v 1.1 2013/03/18 17:49:55 polynomial-c Exp $ + +EAPI=4 +GENTOO_DEPEND_ON_PERL="no" +PYTHON_DEPEND="python? *" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils linux-info perl-module python base + +DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver" +HOMEPAGE="http://g15daemon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="perl python static-libs" + +DEPEND="virtual/libusb:0 + >=dev-libs/libg15-9999 + >=dev-libs/libg15render-1.2 + perl? ( + dev-lang/perl + dev-perl/GDGraph + >=dev-perl/Inline-0.4 + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-forgotten-open-mode.patch" + "${FILESDIR}/${P}-overflow-fix.patch" + "${FILESDIR}/${P}-g510-keys.patch" +) + +uinput_check() { + ebegin "Checking for uinput support" + local rc=1 + linux_config_exists && linux_chkconfig_present INPUT_UINPUT + rc=$? + + if [[ $rc -ne 0 ]] ; then + eerror "To use g15daemon, you need to compile your kernel with uinput support." + eerror "Please enable uinput support in your kernel config, found at:" + eerror + eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support." + eerror + eerror "Once enabled, you should have the /dev/input/uinput device." + eerror "g15daemon will not work without the uinput device." + fi +} + +pkg_setup() { + linux-info_pkg_setup + uinput_check + if use python; then + python_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + if use perl; then + unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz" + fi + if use python; then + unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2" + fi +} + +src_prepare() { + if use perl; then + perl-module_src_prepare + sed -i \ + -e '1i#!/usr/bin/perl' \ + "${S}"/contrib/testbindings.pl + else + # perl-module_src_prepare always calls base_src_prepare + base_src_prepare + fi +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + $(use_enable static-libs static) + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_configure + fi +} + +src_compile() { + default + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_compile + fi +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm -f {} + + + # remove odd docs installed my make + rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage} + + insinto /usr/share/${PN}/contrib + doins contrib/xmodmaprc + doins contrib/xmodmap.sh + if use perl; then + doins contrib/testbindings.pl + fi + + newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN} + newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN} + dobin "${FILESDIR}/g15daemon-hotplug" + insinto /lib/udev/rules.d + doins "${FILESDIR}/99-g15daemon.rules" + + insinto /etc + doins "${FILESDIR}"/g15daemon.conf + + # Gentoo bug #301340, debian bug #611649 + exeinto /usr/lib/pm-utils/sleep.d + doexe "${FILESDIR}"/20g15daemon + + if use perl; then + ebegin "Installing Perl Bindings (G15Daemon.pm)" + cd "${WORKDIR}/G15Daemon-0.2" + docinto perl + perl-module_src_install + fi + + if use python; then + ebegin "Installing Python Bindings (g15daemon.py)" + cd "${WORKDIR}/pyg15daemon" + + installation() { + insinto $(python_get_sitedir) + doins g15daemon.py + } + python_execute_function installation + + docinto python + dodoc AUTHORS + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize g15daemon.py + echo "" + fi + + elog "To use g15daemon, you need to add g15daemon to the default runlevel." + elog "This can be done with:" + elog "# /sbin/rc-update add g15daemon default" + elog "You can edit some g15daemon options at /etc/conf.d/g15daemon" + elog "" + elog "To have all new keys working in X11, you'll need create a " + elog "specific xmodmap in your home directory or edit the existent one." + elog "" + elog "Create the xmodmap:" + elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap" + elog "" + elog "Adding keycodes to an existing xmodmap:" + elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap" +} + +pkg_postrm() { + if use python; then + python_mod_cleanup g15daemon.py + fi +} diff --git a/app-misc/g15daemon/g15daemon-9999.ebuild b/app-misc/g15daemon/g15daemon-9999.ebuild new file mode 100644 index 0000000..3169fcf --- /dev/null +++ b/app-misc/g15daemon/g15daemon-9999.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-9999.ebuild,v 1.2 2013/03/01 23:16:49 polynomial-c Exp $ + +EAPI=4 +GENTOO_DEPEND_ON_PERL="no" +PYTHON_DEPEND="python? *" +SUPPORT_PYTHON_ABIS="1" +ESVN_PROJECT=${PN}/trunk +ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${ESVN_PROJECT}/${PN}-wip" + +inherit eutils linux-info perl-module python base subversion autotools + +DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver" +HOMEPAGE="http://g15daemon.sourceforge.net/" +[[ ${PV} = *9999* ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="perl python static-libs" + +DEPEND="virtual/libusb:0 + >=dev-libs/libg15-9999 + >=dev-libs/libg15render-9999 + perl? ( + dev-lang/perl + dev-perl/GDGraph + >=dev-perl/Inline-0.4 + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.9.5.3-g510-keys.patch" +) +# "${FILESDIR}/${PN}-1.9.5.3-forgotten-open-mode.patch" +# "${FILESDIR}/${PN}-1.9.5.3-overflow-fix.patch" + +uinput_check() { + ebegin "Checking for uinput support" + local rc=1 + linux_config_exists && linux_chkconfig_present INPUT_UINPUT + rc=$? + + if [[ $rc -ne 0 ]] ; then + eerror "To use g15daemon, you need to compile your kernel with uinput support." + eerror "Please enable uinput support in your kernel config, found at:" + eerror + eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support." + eerror + eerror "Once enabled, you should have the /dev/input/uinput device." + eerror "g15daemon will not work without the uinput device." + fi +} + +pkg_setup() { + linux-info_pkg_setup + uinput_check + if use python; then + python_pkg_setup + fi +} + +src_unpack() { + if [[ ${PV} = *9999* ]]; then + subversion_src_unpack + else + unpack ${A} + fi + if use perl; then + unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz" + fi + if use python; then + unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2" + fi +} + +src_prepare() { + if [[ ${PV} = *9999* ]]; then + subversion_wc_info + fi + if use perl; then + perl-module_src_prepare + sed -i \ + -e '1i#!/usr/bin/perl' \ + "${S}"/contrib/testbindings.pl + else + # perl-module_src_prepare always calls base_src_prepare + base_src_prepare + fi + if [[ ${PV} = *9999* ]]; then + eautoreconf + fi +} + +src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + $(use_enable static-libs static) + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_configure + fi +} + +src_compile() { + default + + if use perl; then + cd "${WORKDIR}/G15Daemon-0.2" + perl-module_src_compile + fi +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm -f {} + + + # remove odd docs installed my make + rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage} + + insinto /usr/share/${PN}/contrib + doins contrib/xmodmaprc + doins contrib/xmodmap.sh + if use perl; then + doins contrib/testbindings.pl + fi + + newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN} + newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN} + dobin "${FILESDIR}/g15daemon-hotplug" + insinto /lib/udev/rules.d + doins "${FILESDIR}/99-g15daemon.rules" + + insinto /etc + doins "${FILESDIR}"/g15daemon.conf + + # Gentoo bug #301340, debian bug #611649 + exeinto /usr/lib/pm-utils/sleep.d + doexe "${FILESDIR}"/20g15daemon + + if use perl; then + ebegin "Installing Perl Bindings (G15Daemon.pm)" + cd "${WORKDIR}/G15Daemon-0.2" + docinto perl + perl-module_src_install + fi + + if use python; then + ebegin "Installing Python Bindings (g15daemon.py)" + cd "${WORKDIR}/pyg15daemon" + + installation() { + insinto $(python_get_sitedir) + doins g15daemon.py + } + python_execute_function installation + + docinto python + dodoc AUTHORS + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize g15daemon.py + echo "" + fi + + elog "To use g15daemon, you need to add g15daemon to the default runlevel." + elog "This can be done with:" + elog "# /sbin/rc-update add g15daemon default" + elog "You can edit some g15daemon options at /etc/conf.d/g15daemon" + elog "" + elog "To have all new keys working in X11, you'll need create a " + elog "specific xmodmap in your home directory or edit the existent one." + elog "" + elog "Create the xmodmap:" + elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap" + elog "" + elog "Adding keycodes to an existing xmodmap:" + elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap" +} + +pkg_postrm() { + if use python; then + python_mod_cleanup g15daemon.py + fi +} diff --git a/app-misc/g15daemon/metadata.xml b/app-misc/g15daemon/metadata.xml new file mode 100644 index 0000000..59a6b79 --- /dev/null +++ b/app-misc/g15daemon/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>robbat2@gentoo.org</email> + </maintainer> +</pkgmetadata> |