From 165eda8d5978c67e9ff39ca92e6df2c00b33ad74 Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Wed, 22 Jul 2015 16:03:49 +0300 Subject: [PATCH] gpm:moved into main for pisi20 --- hardware/misc/gpm/actions.py | 34 +++++++++++++++ hardware/misc/gpm/comar/service.py | 29 +++++++++++++ hardware/misc/gpm/files/gpm.conf.d | 23 ++++++++++ hardware/misc/gpm/pspec.xml | 69 ++++++++++++++++++++++++++++++ hardware/misc/gpm/translations.xml | 8 ++++ 5 files changed, 163 insertions(+) create mode 100644 hardware/misc/gpm/actions.py create mode 100644 hardware/misc/gpm/comar/service.py create mode 100644 hardware/misc/gpm/files/gpm.conf.d create mode 100644 hardware/misc/gpm/pspec.xml create mode 100644 hardware/misc/gpm/translations.xml diff --git a/hardware/misc/gpm/actions.py b/hardware/misc/gpm/actions.py new file mode 100644 index 0000000000..cc49b12100 --- /dev/null +++ b/hardware/misc/gpm/actions.py @@ -0,0 +1,34 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import libtools +from pisi.actionsapi import get + +def setup(): + shelltools.system("./autogen.sh") + autotools.configure("--prefix=/usr \ + --sysconfdir=/etc/gpm \ + --sbindir=/usr/bin") + #--libdir=/usr/lib \ + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + # Remove this when we can break abi + pisitools.dosym("libgpm.so.2", "/usr/lib/libgpm.so") + + #remove static link + pisitools.remove("/usr/lib/libgpm.a") + + pisitools.insinto("/etc/gpm", "conf/gpm-*.conf") + + pisitools.dodoc("COPYING", "README", "TODO", "doc/Announce", "doc/FAQ", "doc/README*") diff --git a/hardware/misc/gpm/comar/service.py b/hardware/misc/gpm/comar/service.py new file mode 100644 index 0000000000..3b35886085 --- /dev/null +++ b/hardware/misc/gpm/comar/service.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +serviceType = "local" +serviceDesc = _({"en": "Console Mouse Daemon", + "tr": "Konsol Fare Servisi"}) + +from comar.service import * + +@synchronized +def start(): + args = [] + args.append("-m %s" % config.get("MOUSEDEV", "/dev/input/mice")) + args.append("-t %s" % config.get("MOUSE", "imps2")) + if "RESPONSIVENESS" in config: + args.append("-r %s " % config.get("RESPONSIVENESS")) + if "REPEAT_TYPE" in config: + args.append("-R%s " % config.get("REPEAT_TYPE")) + args.append(config.get("APPEND", "")) + + startService(command="/usr/sbin/gpm", + args=" ".join(args), + donotify=True) + +@synchronized +def stop(): + stopService(pidfile="/run/gpm.pid", + donotify=True) + +def status(): + return isServiceRunning("/run/gpm.pid") diff --git a/hardware/misc/gpm/files/gpm.conf.d b/hardware/misc/gpm/files/gpm.conf.d new file mode 100644 index 0000000000..59eb644306 --- /dev/null +++ b/hardware/misc/gpm/files/gpm.conf.d @@ -0,0 +1,23 @@ +# Config file for /etc/init.d/gpm + +# Please uncomment the type of mouse you have and the appropriate MOUSEDEV entry + +#MOUSE=ps2 +MOUSE=imps2 +#MOUSEDEV=/dev/psaux +MOUSEDEV=/dev/input/mice + +# Extra settings + +#RESPONSIVENESS= +#REPEAT_TYPE=raw + +# Please uncomment this line if you want gpm to understand charsets used +# in URLs and names with ~ or : in them, etc. This is a good idea to turn on! + +#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\"" + +# Various other options + +#APPEND="-g 1 -A 60" +#APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A 60" diff --git a/hardware/misc/gpm/pspec.xml b/hardware/misc/gpm/pspec.xml new file mode 100644 index 0000000000..99826d0c95 --- /dev/null +++ b/hardware/misc/gpm/pspec.xml @@ -0,0 +1,69 @@ + + + + + gpm + http://linux.schottelius.org/gpm/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + service + Console mouse driver + GPM (short for General Purpose Mouse) brings mouse support to TTYs. + http://www.nico.schottelius.org/software/gpm/archives/gpm-1.20.7.tar.bz2 + + ncurses-devel + texinfo + + + + + gpm + + ncurses + + + /usr/bin + + /usr/include + /usr/share/man + /usr/share/info + /usr/share/doc + /usr/lib + /etc + /usr/share/emacs + + + gpm.conf.d + + + System.Service + + + + + + 2014-05-20 + 1.20.7 + Rebuild, cleanup. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-01-25 + 1.20.7 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2012-11-16 + 1.20.7 + First release + PisiLinux Community + namso-01qhotmail.it + + + diff --git a/hardware/misc/gpm/translations.xml b/hardware/misc/gpm/translations.xml new file mode 100644 index 0000000000..d23a896211 --- /dev/null +++ b/hardware/misc/gpm/translations.xml @@ -0,0 +1,8 @@ + + + + gpm + Konsol tabanlı fare sürücüsü + Genel amaçlı fare ve konsolda fare desteği içindir. + +