[arch-commits] Commit in g15daemon/repos (12 files)

Evgeniy Alekseev arcanis at nymeria.archlinux.org
Fri Nov 29 18:11:23 UTC 2013


    Date: Friday, November 29, 2013 @ 19:11:23
  Author: arcanis
Revision: 101642

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  g15daemon/repos/community-staging-i686/
  g15daemon/repos/community-staging-i686/PKGBUILD
    (from rev 101641, g15daemon/trunk/PKGBUILD)
  g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-config-write.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-config-write.patch)
  g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-recv-oob-answer.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-recv-oob-answer.patch)
  g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-uinput.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-uinput.patch)
  g15daemon/repos/community-staging-i686/g15daemon.service
    (from rev 101641, g15daemon/trunk/g15daemon.service)
  g15daemon/repos/community-staging-x86_64/
  g15daemon/repos/community-staging-x86_64/PKGBUILD
    (from rev 101641, g15daemon/trunk/PKGBUILD)
  g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-config-write.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-config-write.patch)
  g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-recv-oob-answer.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-recv-oob-answer.patch)
  g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-uinput.patch
    (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-uinput.patch)
  g15daemon/repos/community-staging-x86_64/g15daemon.service
    (from rev 101641, g15daemon/trunk/g15daemon.service)

------------------------------------------------------------------+
 community-staging-i686/PKGBUILD                                  |   43 ++++++++++
 community-staging-i686/g15daemon-1.9.5.3-config-write.patch      |   12 ++
 community-staging-i686/g15daemon-1.9.5.3-recv-oob-answer.patch   |   11 ++
 community-staging-i686/g15daemon-1.9.5.3-uinput.patch            |   35 ++++++++
 community-staging-i686/g15daemon.service                         |   11 ++
 community-staging-x86_64/PKGBUILD                                |   43 ++++++++++
 community-staging-x86_64/g15daemon-1.9.5.3-config-write.patch    |   12 ++
 community-staging-x86_64/g15daemon-1.9.5.3-recv-oob-answer.patch |   11 ++
 community-staging-x86_64/g15daemon-1.9.5.3-uinput.patch          |   35 ++++++++
 community-staging-x86_64/g15daemon.service                       |   11 ++
 10 files changed, 224 insertions(+)

Copied: g15daemon/repos/community-staging-i686/PKGBUILD (from rev 101641, g15daemon/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
+# Contributor: Valeriy Lyasotskiy <onestep at ukr.net>
+
+pkgname=g15daemon
+pkgver=1.9.5.3
+pkgrel=5
+pkgdesc="A daemon that makes it possible to use the G-Buttons and draw on the G15 LCD"
+arch=('i686' 'x86_64')
+url="http://www.g15tools.com/"
+license=('GPL')
+depends=('libg15render>=1.2')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+        g15daemon.service
+        ${pkgname}-${pkgver}-uinput.patch
+        ${pkgname}-${pkgver}-config-write.patch
+        ${pkgname}-${pkgver}-recv-oob-answer.patch)
+md5sums=('2cd8b4f1bd039bf804f1f472216742f0'
+         'c259d875f33a2fba53f9c2200a913c11'
+         '6c3d5b2b7c585dc095118f80e4d72204'
+         'd47755aa8387e89fedffdb28ff3b18de'
+         '275c28e4950e05336086419873ff8e45')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-uinput.patch"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-config-write.patch"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-recv-oob-answer.patch"
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  ./configure --prefix=/usr --disable-static --sbindir=/usr/bin
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -D -m 644 "${srcdir}/g15daemon.service" \
+                    "${pkgdir}/usr/lib/systemd/system/g15daemon.service"
+}

Copied: g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-config-write.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-config-write.patch)
===================================================================
--- community-staging-i686/g15daemon-1.9.5.3-config-write.patch	                        (rev 0)
+++ community-staging-i686/g15daemon-1.9.5.3-config-write.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,12 @@
+diff -Nuar g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c g15daemon-1.9.5.3/g15daemon/utility_funcs.c
+--- g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c	2008-01-26 07:02:07.000000000 +0200
++++ g15daemon-1.9.5.3/g15daemon/utility_funcs.c	2011-11-09 09:19:43.000000000 +0200
+@@ -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, 0644);
+     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));

Copied: g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-recv-oob-answer.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-recv-oob-answer.patch)
===================================================================
--- community-staging-i686/g15daemon-1.9.5.3-recv-oob-answer.patch	                        (rev 0)
+++ community-staging-i686/g15daemon-1.9.5.3-recv-oob-answer.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,11 @@
+--- g15daemon-1.9.5.3.orig/libg15daemon_client/g15daemon_net.c
++++ g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c
+@@ -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;
+               }

Copied: g15daemon/repos/community-staging-i686/g15daemon-1.9.5.3-uinput.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-uinput.patch)
===================================================================
--- community-staging-i686/g15daemon-1.9.5.3-uinput.patch	                        (rev 0)
+++ community-staging-i686/g15daemon-1.9.5.3-uinput.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,35 @@
+Index: g15daemon-1.9.5.3/g15daemon/g15_plugin_uinput.c
+===================================================================
+--- g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c      
++++ g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c 
+@@ -125,6 +125,14 @@
+     event.value = G15KEY_DOWN;
+
+     write (uinp_fd, &event, sizeof(event));
++
++    /* Need to write sync event */
++    memset(&event, 0, sizeof(event));
++    event.type = EV_SYN;
++    event.code = SYN_REPORT;
++    event.value = 0;
++    write(uinp_fd, &event, sizeof(event));
++
+ }
+
+ static void g15_uinput_keyup(unsigned char code)
+@@ -137,6 +145,14 @@
+     event.value = G15KEY_UP;
+
+     write (uinp_fd, &event, sizeof(event));
++
++    /* Need to write sync event */
++    memset(&event, 0, sizeof(event));
++    event.type = EV_SYN;
++    event.code = SYN_REPORT;
++    event.value = 0;
++    write(uinp_fd, &event, sizeof(event));
++
+ }
+
+     void (*keyup)(unsigned char code) = &g15_uinput_keyup;
+

Copied: g15daemon/repos/community-staging-i686/g15daemon.service (from rev 101641, g15daemon/trunk/g15daemon.service)
===================================================================
--- community-staging-i686/g15daemon.service	                        (rev 0)
+++ community-staging-i686/g15daemon.service	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Logitech G15 Support Daemon
+Documentation=man:g15daemon(1)
+
+[Service]
+Type=forking
+PIDFile=/run/g15daemon.pid
+ExecStart=/usr/bin/g15daemon
+
+[Install]
+WantedBy=multi-user.target

Copied: g15daemon/repos/community-staging-x86_64/PKGBUILD (from rev 101641, g15daemon/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
+# Contributor: Valeriy Lyasotskiy <onestep at ukr.net>
+
+pkgname=g15daemon
+pkgver=1.9.5.3
+pkgrel=5
+pkgdesc="A daemon that makes it possible to use the G-Buttons and draw on the G15 LCD"
+arch=('i686' 'x86_64')
+url="http://www.g15tools.com/"
+license=('GPL')
+depends=('libg15render>=1.2')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+        g15daemon.service
+        ${pkgname}-${pkgver}-uinput.patch
+        ${pkgname}-${pkgver}-config-write.patch
+        ${pkgname}-${pkgver}-recv-oob-answer.patch)
+md5sums=('2cd8b4f1bd039bf804f1f472216742f0'
+         'c259d875f33a2fba53f9c2200a913c11'
+         '6c3d5b2b7c585dc095118f80e4d72204'
+         'd47755aa8387e89fedffdb28ff3b18de'
+         '275c28e4950e05336086419873ff8e45')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-uinput.patch"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-config-write.patch"
+  patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-recv-oob-answer.patch"
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  ./configure --prefix=/usr --disable-static --sbindir=/usr/bin
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -D -m 644 "${srcdir}/g15daemon.service" \
+                    "${pkgdir}/usr/lib/systemd/system/g15daemon.service"
+}

Copied: g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-config-write.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-config-write.patch)
===================================================================
--- community-staging-x86_64/g15daemon-1.9.5.3-config-write.patch	                        (rev 0)
+++ community-staging-x86_64/g15daemon-1.9.5.3-config-write.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,12 @@
+diff -Nuar g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c g15daemon-1.9.5.3/g15daemon/utility_funcs.c
+--- g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c	2008-01-26 07:02:07.000000000 +0200
++++ g15daemon-1.9.5.3/g15daemon/utility_funcs.c	2011-11-09 09:19:43.000000000 +0200
+@@ -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, 0644);
+     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));

Copied: g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-recv-oob-answer.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-recv-oob-answer.patch)
===================================================================
--- community-staging-x86_64/g15daemon-1.9.5.3-recv-oob-answer.patch	                        (rev 0)
+++ community-staging-x86_64/g15daemon-1.9.5.3-recv-oob-answer.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,11 @@
+--- g15daemon-1.9.5.3.orig/libg15daemon_client/g15daemon_net.c
++++ g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c
+@@ -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;
+               }

Copied: g15daemon/repos/community-staging-x86_64/g15daemon-1.9.5.3-uinput.patch (from rev 101641, g15daemon/trunk/g15daemon-1.9.5.3-uinput.patch)
===================================================================
--- community-staging-x86_64/g15daemon-1.9.5.3-uinput.patch	                        (rev 0)
+++ community-staging-x86_64/g15daemon-1.9.5.3-uinput.patch	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,35 @@
+Index: g15daemon-1.9.5.3/g15daemon/g15_plugin_uinput.c
+===================================================================
+--- g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c      
++++ g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c 
+@@ -125,6 +125,14 @@
+     event.value = G15KEY_DOWN;
+
+     write (uinp_fd, &event, sizeof(event));
++
++    /* Need to write sync event */
++    memset(&event, 0, sizeof(event));
++    event.type = EV_SYN;
++    event.code = SYN_REPORT;
++    event.value = 0;
++    write(uinp_fd, &event, sizeof(event));
++
+ }
+
+ static void g15_uinput_keyup(unsigned char code)
+@@ -137,6 +145,14 @@
+     event.value = G15KEY_UP;
+
+     write (uinp_fd, &event, sizeof(event));
++
++    /* Need to write sync event */
++    memset(&event, 0, sizeof(event));
++    event.type = EV_SYN;
++    event.code = SYN_REPORT;
++    event.value = 0;
++    write(uinp_fd, &event, sizeof(event));
++
+ }
+
+     void (*keyup)(unsigned char code) = &g15_uinput_keyup;
+

Copied: g15daemon/repos/community-staging-x86_64/g15daemon.service (from rev 101641, g15daemon/trunk/g15daemon.service)
===================================================================
--- community-staging-x86_64/g15daemon.service	                        (rev 0)
+++ community-staging-x86_64/g15daemon.service	2013-11-29 18:11:23 UTC (rev 101642)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Logitech G15 Support Daemon
+Documentation=man:g15daemon(1)
+
+[Service]
+Type=forking
+PIDFile=/run/g15daemon.pid
+ExecStart=/usr/bin/g15daemon
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list