summaryrefslogtreecommitdiff
path: root/app-misc/g15daemon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-misc/g15daemon
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-misc/g15daemon')
-rw-r--r--app-misc/g15daemon/Manifest10
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch339
-rw-r--r--app-misc/g15daemon/g15daemon-1.9.5.3-r15.ebuild7
-rw-r--r--app-misc/g15daemon/g15daemon-3.0.4-r1.ebuild (renamed from app-misc/g15daemon/g15daemon-1.9.5.3-r14.ebuild)52
-rw-r--r--app-misc/g15daemon/g15daemon-9999.ebuild59
-rw-r--r--app-misc/g15daemon/metadata.xml4
6 files changed, 68 insertions, 403 deletions
diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest
index 2d025e10a724..ec2cc6c39176 100644
--- a/app-misc/g15daemon/Manifest
+++ b/app-misc/g15daemon/Manifest
@@ -4,14 +4,14 @@ AUX g15daemon-1.2.7.confd 330 BLAKE2B e25cf425e9d26946d617759cc07d3a9a73591539a7
AUX g15daemon-1.9.5.3-avoid_bashisms.patch 839 BLAKE2B 49269760a077a39924c39bd8182365ea767f4f57d3bd2ddefa3c6aadc1a84ec8ee773a802a483d859e693d0051b1dd256abd373d4558c95db88713a442844abc SHA512 5eac0f9bb87bbdab08ffb05dc17122f0090cb78ce068e6acdaac16dfc3bba0d1bc150445c02f48fb155af255368b89e3d90b6d109243185c7a5abbd01004cd05
AUX g15daemon-1.9.5.3-docdir.patch 473 BLAKE2B 5370c2e89d45b7cd1255dd987210b37b5019b636643f68399a05bbbabccf867e6bd219e7f89f0ee2d1f2408e6a9d6f3da38853d19a486028bcee1a726b45daae SHA512 e1ef8f9f290b37a3a5648109e1340ec984684fff50ec7e9c5d7baa9b1ab4209432ecac5da64b917dd13de0141662b0ebc958bd04cc4b7789d626a3fc4fbe11d2
AUX g15daemon-1.9.5.3-forgotten-open-mode.patch 563 BLAKE2B 33d2b9ff82d9fbdd490f31d539c0432c9ef65fb14f23bedadc497d76732c32aaafac1ac64ff3c59c7b5098ddcbbfa44f8087e61a57147cf9293c39c0f34cce2b SHA512 8eced9d04c4880c5883d536bc3c4d8cdd452e182e434b2314abd8c8bb0e036c377424c0f757a0c2596972da2b87befc6442f6880e1e580597a1cb3b1357beea4
-AUX g15daemon-1.9.5.3-g510-keys.patch 13908 BLAKE2B 4fd1141b6e739f1b07356e9a06489251eb7d247e0e5f9ba0f454389e05513681260370330a28ea2ac5be7f064c006020afee8bc8676cd9a702a3058e6eb7e761 SHA512 06a170a8c405fd84aba39b2b511c257a1152d0d4e1c17e220a01ef3ad1962e44870cd2ca355b07f9b54a028775ddcb3c93eeec1f6cdf9f65068d5d7755169677
AUX g15daemon-1.9.5.3-overflow-fix.patch 543 BLAKE2B fafc620e8f8338208a8fbb093308d1bd36e09d1fc136442eaac05b467871aac7fbac1daba8a354ee0798cef48bf316e5b32a8001a48d65a1f7daee091c970499 SHA512 6aa9c56ebfb6735ceeee982c4d9ee71a3e5cfb3b35d5806203cfeec2630f4dd3f349aeec644540bf665dd163f39be75a545644b69c7373f9a805a0e30bc8ebf2
AUX g15daemon-1.9.5.3.initd 955 BLAKE2B fe4c71358d206768dde9d0361ab926f8e36d2fce1d46a15992ec4880c0df37ec2ae26808902d7593c5c1783f679c1c12d163d8a6f409f2d6931f432b08f8a7c4 SHA512 a2e21fe65f730e0a3f0062da07a9896884329e3d3b2cb89ce41b96f33851868c0c27281fc87a13eb7bb7ba934175df19dddfd78b695339b4a89512c42951fd1a
AUX g15daemon-hotplug 224 BLAKE2B 6348dfec6c942d28c2db287b82765f194ffd7d1e9c58faaf03670ff6222f0a32fb70428873452d8229a967849f49b3042ef20352d677b0e5d4dc05b7f769caee SHA512 6384aa8267a665b0b26f45f7339856647374ad5b1860f299b2e19afb0209b8637919f00b3638affbe4fb86adaf115eb93e814b70c17d52f1c878d840e1e464e8
AUX g15daemon.conf 516 BLAKE2B 9a003040306ddfeccccb5b12730c6c1c478ab39cf44abbacfaed37b7154f2485cbc0979f900523457e14a5ca14041b41bf2da0c3b4d7519f2e798b0cb291f4c4 SHA512 e575fd8a91c87f226481ae406a1b66de6d8eb66f061b0ce7f2b89ce63f7bda88470eac50adcc9de97ef866970ee835af8a1bb0402a2e4b4d214251d0b8ebe25c
AUX g15daemon.service 209 BLAKE2B 0b909fd73dc8d0961f35257d430e4c8b321bf12671a77838eb1bbc0044ed6d98a5d90421367a77c0117dee66cbb7a6f54a71ce066905ec550ebfbd0709dbf2e5 SHA512 3b4d7e22665e360271807e2de356af79038a6474aeb8c862665714b717f62d105ce57f5acd8078520ab92b9b7963a956617998074b8752ce99ce97ce860b4c25
DIST g15daemon-1.9.5.3.tar.gz 414603 BLAKE2B 4f683bab47f6cbde3a028b306c1999ea4fcb84c0c05160a17374be93f953d21588f332e8fbf040c607545c31ee09e30b56b1068db95a801472c9d72ee9fe8e43 SHA512 7a1770d08d1d4155866bba3b676d33bf943363f4519af41a13ab6ec73cc5d6c536b173977b3e3583b594b149b7f01ffbc51123a4678c2a249a51ff0b42c8b69a
-EBUILD g15daemon-1.9.5.3-r14.ebuild 3618 BLAKE2B feb5d82e02c8a323b8b181026a3901900f7deb293f0a5ea5ae2fd8e646734d4a7831f63caed326a095b9cdc328229bb361b94d7757d3cb4f387f019e36a34aed SHA512 3af32ddd33081a202cf0c204d8463f6bbf7665a5ac56a5cb14ddb059b0a19ef9ee9abcc7df9d0a0dcf33f216a1226cf13bf39b1ccac8cc8d224bbd9c2389d233
-EBUILD g15daemon-1.9.5.3-r15.ebuild 3670 BLAKE2B 7fcc72a0ca0ded18c2900ab5c1875adcad9834b9dac8182842337e6ec77fe4686d7060eb1a275cdf317a7b11bd3b99fb40c05e62568de5412d3446527c347b99 SHA512 0da399aa499738c1cb4f7b613df740e55831b939985d79e975e97af25ef78568d2b213129dce897bc7c92e2f79bbcce846079214275975c3d2ff8e34449b28dc
-EBUILD g15daemon-9999.ebuild 3920 BLAKE2B 2d9bb2d713a950b8955739a83701b91bd06b69ea3242a3444b03e022c2a2e5b2b365eded1bfea9737bfaf905f386b496c9357316a95ec917b8fbe388cb602938 SHA512 09012652885ced1ccccb3e44d18ee14fca634bddc88e537a2eaeed5b444cdaa4945b3ec0fa8c7b9a078c0a116e5c465c84ceeee557aa046f2eebe450bb88b8b2
-MISC metadata.xml 410 BLAKE2B 6c72398a68e0c0bc923d35ba02c154bed3fbfd6346ee1d5babee28fa49c352180a6b1727bcf470f4a0c295957142c449f2f160d1df039c875610e58257e5dcd4 SHA512 ff01b41d3faf490da5f83fb730b98f22759a1803aba1e8c48cffa6ca7518b3556439f451e9b03f146e2d7a839ac12a2f82fa3602c81d2b3ef34d6a30b0ab97fa
+DIST g15daemon-3.0.4.tar.bz2 372553 BLAKE2B 008cf2eda9e8cbc45a2fd2eef938438be73236f2bffbbc47bdce66f04d6860705572270994df09bc1d7c2c02dc75ca347199e02dc7aa9f71134985cff284c7c8 SHA512 4adbb11ca8128bbaff5ad1dee17ddcfcdfca589f7e8a1a264127dd9d5aec39e07e4986a4b78f4199fb7f3e12979fd8d50a851b047b6cb8cfa13410aa59df062a
+EBUILD g15daemon-1.9.5.3-r15.ebuild 3695 BLAKE2B 0df53312bc93eb8fdd1dccbf3c9607840282d07b8353589e7e4623fccb8a5333965771e330a8f328b28b6eeb7089a9205f25dafa8d85ac3c176508dc00351009 SHA512 976656b69b3e9ae4900b149c9dbe4bf32f49ca05d630b3501be7ac167648d8c7cbd758d4609ee07b633e36d56396906e280216683310c61e46763f2340a50ce2
+EBUILD g15daemon-3.0.4-r1.ebuild 3782 BLAKE2B 961a71f8a767fc7f07c987cfc9af3033313601cabae0d428ab012e93fd479d7ea361600ae79090299007e3a0cbfea9d0939cabbeb64f6c3fc379a5cd655208f6 SHA512 4979e41604eecd8f4da27caf637c099057a506db9124146185ad72bfd2563e2b4b0a5beb52fc87e65306bb6f592b8c8e1d3dc7b38e3df258fa09fcb2ac09a936
+EBUILD g15daemon-9999.ebuild 3780 BLAKE2B a28f3f3f5eb2585093972627062e885977e48907562b76ac23d899de43c179446e1c38dadc40b7a48fb10f94af900fa1d64528c1b7415c906bbe919bfbd8dbaf SHA512 6afb6f09754855f0d6b6fdef8856fbf3e91d993cd894250b9cb526489d62015393557164be0ba021ea77cacb9306e5adeb60d7ef25c63352adc95921d87b2647
+MISC metadata.xml 298 BLAKE2B f14293e0ff4138c4d98d6836f5502e1beaa69f8c7527d129888beef69bf823186e82e8742b85cf9fa78fcf8c38d1dd4e6738bf2d489b2ad8370de4a15efee505 SHA512 b8e2f29fd0ec3dbf81002e99c2beddd0078679916916d33ee88cf06356b00cb3f9da44075bfd87cd1887164177a64e25565ea73b891dab786d3add82340006aa
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
deleted file mode 100644
index a53001f1932d..000000000000
--- a/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch
+++ /dev/null
@@ -1,339 +0,0 @@
-From https://sourceforge.net/tracker/?func=detail&aid=3152167&group_id=167869&atid=844658
-
---- g15daemon-wip/plugins/g15_plugin_uinput.c
-+++ g15daemon-wip/plugins/g15_plugin_uinput.c
-@@ -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/g15daemon-1.9.5.3-r15.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r15.ebuild
index 2042898ab06a..1b4f7766b82e 100644
--- a/app-misc/g15daemon/g15daemon-1.9.5.3-r15.ebuild
+++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r15.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -38,6 +38,7 @@ uinput_check() {
local rc=1
linux_config_exists && linux_chkconfig_present INPUT_UINPUT
rc=$?
+ eend ${rc}
if [[ ${rc} -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
@@ -127,7 +128,7 @@ src_install() {
doexe "${FILESDIR}"/20g15daemon
if use perl ; then
- ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ einfo "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2" || die
docinto perl
perl-module_src_install
@@ -135,6 +136,8 @@ src_install() {
}
pkg_postinst() {
+ udev_reload
+
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"
diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r14.ebuild b/app-misc/g15daemon/g15daemon-3.0.4-r1.ebuild
index 407950bcbb25..660ce78c17cd 100644
--- a/app-misc/g15daemon/g15daemon-1.9.5.3-r14.ebuild
+++ b/app-misc/g15daemon/g15daemon-3.0.4-r1.ebuild
@@ -1,24 +1,31 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-GENTOO_DEPEND_ON_PERL="no"
-
-inherit autotools flag-o-matic linux-info perl-module toolchain-funcs udev
+inherit autotools flag-o-matic linux-info perl-module systemd toolchain-funcs udev
DESCRIPTION="Takes control of the G15 keyboard, through the linux kernel uinput device driver"
-HOMEPAGE="https://sourceforge.net/projects/g15daemon/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="https://gitlab.com/menelkir/g15daemon"
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/menelkir/g15daemon.git"
+else
+ SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ppc64 x86"
+# Subslot = libg15daemon_client.so major version
+SLOT="0/3"
IUSE="perl static-libs"
+# Has no "test" target in Makefile
+RESTRICT="test"
+
DEPEND="virtual/libusb:0
- >=dev-libs/libg15-1.2.4
- >=dev-libs/libg15render-1.2
+ >=dev-libs/libg15-3.0
+ >=dev-libs/libg15render-3.0
perl? (
dev-lang/perl
dev-perl/GDGraph
@@ -26,18 +33,12 @@ DEPEND="virtual/libusb:0
)"
RDEPEND="${DEPEND}"
-PATCHES=(
- "${FILESDIR}/${P}-forgotten-open-mode.patch"
- "${FILESDIR}/${P}-overflow-fix.patch"
- "${FILESDIR}/${P}-docdir.patch"
- "${FILESDIR}/${P}-avoid_bashisms.patch"
-)
-
uinput_check() {
ebegin "Checking for uinput support"
local rc=1
linux_config_exists && linux_chkconfig_present INPUT_UINPUT
rc=$?
+ eend ${rc}
if [[ ${rc} -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
@@ -58,7 +59,12 @@ pkg_setup() {
}
src_unpack() {
- unpack ${A}
+ if [[ ${PV} == *9999* ]] ; then
+ git-r3_src_unpack
+ else
+ default
+ fi
+
if use perl ; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
@@ -74,7 +80,6 @@ src_prepare() {
# perl-module_src_prepare always calls base_src_prepare
default
fi
- mv configure.{in,ac} || die
eautoreconf
}
@@ -107,7 +112,7 @@ src_install() {
rm "${ED}"/usr/share/doc/${PF}/README.usage || die
insinto /usr/share/${PN}/contrib
- doins contrib/xmodmaprc
+ doins contrib/xmodmaprc{,-alternative}
doins contrib/xmodmap.sh
if use perl ; then
doins contrib/testbindings.pl
@@ -115,6 +120,7 @@ src_install() {
newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN}
+ systemd_dounit "${FILESDIR}/${PN}.service"
dobin "${FILESDIR}/g15daemon-hotplug"
udev_dorules "${FILESDIR}/99-g15daemon.rules"
@@ -126,7 +132,7 @@ src_install() {
doexe "${FILESDIR}"/20g15daemon
if use perl ; then
- ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ einfo "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2" || die
docinto perl
perl-module_src_install
@@ -134,6 +140,8 @@ src_install() {
}
pkg_postinst() {
+ udev_reload
+
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"
diff --git a/app-misc/g15daemon/g15daemon-9999.ebuild b/app-misc/g15daemon/g15daemon-9999.ebuild
index 71c34ecf83b2..0e442d9fbcdc 100644
--- a/app-misc/g15daemon/g15daemon-9999.ebuild
+++ b/app-misc/g15daemon/g15daemon-9999.ebuild
@@ -1,26 +1,31 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-GENTOO_DEPEND_ON_PERL="no"
-ESVN_PROJECT=${PN}/trunk
-ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/trunk/${PN}-wip"
-
-inherit autotools flag-o-matic linux-info perl-module subversion systemd toolchain-funcs udev
+inherit autotools flag-o-matic linux-info perl-module systemd toolchain-funcs udev
DESCRIPTION="Takes control of the G15 keyboard, through the linux kernel uinput device driver"
-HOMEPAGE="https://sourceforge.net/projects/g15daemon/"
-[[ ${PV} = *9999* ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="https://gitlab.com/menelkir/g15daemon"
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.com/menelkir/g15daemon.git"
+else
+ SRC_URI="https://gitlab.com/menelkir/${PN}/-/archive/${PV}/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+fi
LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
+# Subslot = libg15daemon_client.so major version
+SLOT="0/3"
IUSE="perl static-libs"
+# Has no "test" target in Makefile
+RESTRICT="test"
+
DEPEND="virtual/libusb:0
- >=dev-libs/libg15-9999
- >=dev-libs/libg15render-9999
+ >=dev-libs/libg15-3.0
+ >=dev-libs/libg15render-3.0
perl? (
dev-lang/perl
dev-perl/GDGraph
@@ -28,17 +33,12 @@ DEPEND="virtual/libusb:0
)"
RDEPEND="${DEPEND}"
-PATCHES=(
- "${FILESDIR}/${PN}-1.9.5.3-g510-keys.patch"
- "${FILESDIR}/${PN}-1.9.5.3-docdir.patch"
- "${FILESDIR}/${PN}-1.9.5.3-avoid_bashisms.patch"
-)
-
uinput_check() {
ebegin "Checking for uinput support"
local rc=1
linux_config_exists && linux_chkconfig_present INPUT_UINPUT
rc=$?
+ eend ${rc}
if [[ ${rc} -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
@@ -59,20 +59,18 @@ pkg_setup() {
}
src_unpack() {
- if [[ ${PV} = *9999* ]] ; then
- subversion_src_unpack
+ if [[ ${PV} == *9999* ]] ; then
+ git-r3_src_unpack
else
- unpack ${A}
+ default
fi
+
if use perl ; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
}
src_prepare() {
- if [[ ${PV} = *9999* ]] ; then
- subversion_wc_info
- fi
if use perl ; then
perl-module_src_prepare
sed -i \
@@ -82,10 +80,7 @@ src_prepare() {
# perl-module_src_prepare always calls base_src_prepare
default
fi
- if [[ ${PV} = *9999* ]] ; then
- mv configure.{in,ac} || die
- eautoreconf
- fi
+ eautoreconf
}
src_configure() {
@@ -117,7 +112,7 @@ src_install() {
rm "${ED}"/usr/share/doc/${PF}/README.usage || die
insinto /usr/share/${PN}/contrib
- doins contrib/xmodmaprc
+ doins contrib/Xmodmap{,-alternative}
doins contrib/xmodmap.sh
if use perl ; then
doins contrib/testbindings.pl
@@ -137,7 +132,7 @@ src_install() {
doexe "${FILESDIR}"/20g15daemon
if use perl ; then
- ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ einfo "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2" || die
docinto perl
perl-module_src_install
@@ -145,6 +140,8 @@ src_install() {
}
pkg_postinst() {
+ udev_reload
+
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"
diff --git a/app-misc/g15daemon/metadata.xml b/app-misc/g15daemon/metadata.xml
index 6dab19621aef..2b67979d0ccf 100644
--- a/app-misc/g15daemon/metadata.xml
+++ b/app-misc/g15daemon/metadata.xml
@@ -4,10 +4,6 @@
<maintainer type="person">
<email>robbat2@gentoo.org</email>
</maintainer>
- <maintainer type="person">
- <email>polynomial-c@gentoo.org</email>
- <name>Lars Wendler</name>
- </maintainer>
<upstream>
<remote-id type="sourceforge">g15daemon</remote-id>
</upstream>