[arch-commits] Commit in keytouch/trunk (7 files)

Eric Belanger eric at archlinux.org
Mon Jun 23 04:27:58 UTC 2008


    Date: Monday, June 23, 2008 @ 00:27:57
  Author: eric
Revision: 3501

upgpkg: keytouch 2.4.0-1
    Added to [extra] repo, Upstream update

Added:
  keytouch/trunk/ChangeLog
  keytouch/trunk/PKGBUILD
  keytouch/trunk/Xsession
  keytouch/trunk/keytouch-2.4.0-glibc28.patch
  keytouch/trunk/keytouch.daemon
  keytouch/trunk/keytouch.desktop
  keytouch/trunk/keytouch.install

------------------------------+
 ChangeLog                    |    7 +++++
 PKGBUILD                     |   52 +++++++++++++++++++++++++++++++++++++++++
 Xsession                     |    8 ++++++
 keytouch-2.4.0-glibc28.patch |   44 ++++++++++++++++++++++++++++++++++
 keytouch.daemon              |   31 ++++++++++++++++++++++++
 keytouch.desktop             |    9 +++++++
 keytouch.install             |   18 ++++++++++++++
 7 files changed, 169 insertions(+)

Added: ChangeLog
===================================================================
--- ChangeLog	                        (rev 0)
+++ ChangeLog	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,7 @@
+2008-06-16  Eric Belanger  <eric at archlinux.org>
+
+	* keytouch 2.4.0-1
+	* Upstream update
+	* Patched for glibc 2.8
+	* Added to [extra] repo
+	* Added ChangeLog

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,52 @@
+# $Id: PKGBUILD,v 1.13 2007/09/26 23:53:30 Snowman Exp $
+# Maintainer: Eric Belanger <eric at archlinux.org>
+# Contributor: mouse256 & AndyRTR
+
+pkgname=keytouch
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="A program which allows you to easily configure the extra function keys of your keyboard"
+arch=('i686' 'x86_64')
+url="http://keytouch.sourceforge.net/"
+license=('GPL')
+depends=('libxtst' 'gnome-menus' 'alsa-lib')
+makedepends=('pkgconfig')
+options=('!makeflags')
+install=keytouch.install
+source=(http://downloads.sourceforge.net/sourceforge/keytouch/${pkgname}-${pkgver}.tar.gz \
+        keytouch.daemon keytouch.desktop Xsession keytouch-2.4.0-glibc28.patch)
+md5sums=('e5e93f94f74469d1a6dc37548ec15eba' '80dbcf0dfb9d4d4d2c2d7932ca551040'\
+         'c5ffe28988dc74fae812ffe204f8883b' '795430001f4fdb6691d0e93b09a241a9'\
+         '7153d15b684d2f56e9f7f732a6f40498')
+sha1sums=('6b9aaa6cd60ff0ba42c39d325f2d80e51bc1e968'
+          'cd87632574349bd7c9ac00b7b8a8711000d43569'
+          '5bac2f62f1ac26caa32da02a8075dc090d981cfb'
+          '960b2fa51cfdeb2bc3fa7e086dc9f3a3be483dff'
+          'ea66f7c2517d8c4d309c08bd8d036c591df708bc')
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  patch -p0 < ../keytouch-2.4.0-glibc28.patch || return 1
+  autoreconf
+  ./configure --prefix=/usr --sysconfdir=/etc || return 1
+  make  || return 1
+  install -d ${pkgdir}/etc/{rc.d,X11/Xsession.d} || return 1
+  install -d ${pkgdir}/usr/share/keytouch || return 1
+  make DESTDIR=${pkgdir} install || return 1
+
+  cd ${srcdir}/${pkgname}-${pkgver}/keytouch-config
+  ./configure --prefix=/usr --sysconfdir=/etc || return 1
+  make || return 1
+  make DESTDIR=${pkgdir} install || return 1
+
+  cd ${srcdir}/${pkgname}-${pkgver}/keytouch-keyboard
+  ./configure --prefix=/usr --sysconfdir=/etc || return 1
+  make || return 1
+  make DESTDIR=${pkgdir} install || return 1
+
+  install -D -m755 ${srcdir}/keytouch.daemon ${pkgdir}/etc/rc.d/keytouch || return 1
+  install -D -m644 ${srcdir}/keytouch.desktop ${pkgdir}/usr/share/applications/keytouch.desktop || return 1
+  install -D -m755 ${srcdir}/Xsession ${pkgdir}/etc/X11/Xsession || return 1
+  chmod 755  ${pkgdir}/etc/X11/Xsession.d/* || return 1
+  rm ${pkgdir}/etc/rc.d/*.sh
+}

Added: Xsession
===================================================================
--- Xsession	                        (rev 0)
+++ Xsession	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for script in /etc/X11/Xsession.d/*; do
+  if [ -x $script ]; then
+    . $script
+  fi
+done
+unset script


Property changes on: keytouch/trunk/Xsession
___________________________________________________________________
Name: svn:executable
   + *

Added: keytouch-2.4.0-glibc28.patch
===================================================================
--- keytouch-2.4.0-glibc28.patch	                        (rev 0)
+++ keytouch-2.4.0-glibc28.patch	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,44 @@
+--- keytouch-acpid/Makefile.am
++++ keytouch-acpid/Makefile.am
+@@ -3,7 +3,8 @@
+ 
+ AM_CPPFLAGS =	-I. -I../string_to_keycode/ -I../mxml \
+ 		-DSYSCONF_DIR=\""$(sysconfdir)"\" \
+-		-DPACKAGE_DATA_DIR=\""$(datadir)"\"
++		-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
++		-D_GNU_SOURCE # struct ucred
+ 
+ AM_CFLAGS=@CFLAGS@ @X_CFLAGS@ -Wall
+ 
+--- keytouch-keyboard/src/check_syntax.c
++++ keytouch-keyboard/src/check_syntax.c
+@@ -29,10 +29,10 @@
+     You can contact me at: marvinr(at)users(dot)sf(dot)net
+     (replace (at) by @ and (dot) by .)
+ -----------------------------------------------------------------------------------*/
++#define _XOPEN_SOURCE /* strptime */
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+-#define _XOPEN_SOURCE /* glibc2 needs this */
+ #include <time.h>
+ 
+ #include <mxml.h>
+--- keytouch-keyboard/src/config.c
++++ keytouch-keyboard/src/config.c
+@@ -37,6 +37,7 @@
+     You can contact me at: marvinr(at)users(dot)sf(dot)net
+     (replace (at) by @ and (dot) by .)
+ -----------------------------------------------------------------------------------*/
++#define _GNU_SOURCE /* strptime, scandir */
+ #include <stdlib.h>
+ #include <dirent.h>
+ #include <dlfcn.h>
+@@ -45,7 +46,6 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <stdio.h>
+-#define _GNU_SOURCE /* glibc2 needs this */
+ #include <time.h>
+ 
+ #include <mxml.h>

Added: keytouch.daemon
===================================================================
--- keytouch.daemon	                        (rev 0)
+++ keytouch.daemon	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+  start)
+    stat_busy "Starting keyTouch Daemon"
+    if [ -x /etc/rc.d/acpid ]; then
+        ck_daemon acpid && /etc/rc.d/acpid start
+    fi
+    /usr/bin/keytouch-init
+    /usr/bin/keytouch-acpid &
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping keyTouch Daemon"
+    stat_done
+    ;;
+  restart)
+    $0 stop
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0


Property changes on: keytouch/trunk/keytouch.daemon
___________________________________________________________________
Name: svn:executable
   + *

Added: keytouch.desktop
===================================================================
--- keytouch.desktop	                        (rev 0)
+++ keytouch.desktop	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=keyTouch
+Comment=Keyboard configuration tool
+Icon=/usr/share/keytouch/pixmaps/icon.png
+Exec=/usr/bin/keytouch
+Terminal=false
+Type=Application
+Categories=Application;Utility
+StartupNotify=false

Added: keytouch.install
===================================================================
--- keytouch.install	                        (rev 0)
+++ keytouch.install	2008-06-23 04:27:57 UTC (rev 3501)
@@ -0,0 +1,18 @@
+post_install() {
+  cat << EOF
+==> To use keytouch:
+o Add keytouch to your DAEMONS line in /etc/rc.conf
+o Add:
+  /etc/X11/Xsession
+to your ~/.xinitrc
+o You'll need to have either gksu (pacman -S gksu) or kdesu (pacman -S kdebase) installed.
+
+==> If your keyboard is not supported "out of the box":
+o Go to http://keytouch.sourceforge.net/dl-keyboards.html to see if your keyboard has been added
+  or install keytouch-editor to make your custom keyboard file.
+EOF
+}
+
+post_upgrade() {
+  post_install $1
+}





More information about the arch-commits mailing list