[Python-apps-commits] r4944 - in packages/autokey/trunk/debian (16 files)

ffm-guest at users.alioth.debian.org ffm-guest at users.alioth.debian.org
Fri Mar 12 13:52:15 UTC 2010


    Date: Friday, March 12, 2010 @ 13:52:13
  Author: ffm-guest
Revision: 4944

New upstream version.

Added:
  packages/autokey/trunk/debian/autokey-common.init
  packages/autokey/trunk/debian/autokey-common.install
  packages/autokey/trunk/debian/autokey-common.lintian-overrides
    (from rev 4939, packages/autokey/trunk/debian/autokey.lintian-overrides)
  packages/autokey/trunk/debian/autokey-common.postinst
  packages/autokey/trunk/debian/autokey-common.prerm
  packages/autokey/trunk/debian/autokey-gtk.install
  packages/autokey/trunk/debian/autokey-qt.install
Modified:
  packages/autokey/trunk/debian/changelog
  packages/autokey/trunk/debian/compat
  packages/autokey/trunk/debian/control
  packages/autokey/trunk/debian/rules
Deleted:
  packages/autokey/trunk/debian/autokey.1
  packages/autokey/trunk/debian/autokey.init
  packages/autokey/trunk/debian/autokey.lintian-overrides
  packages/autokey/trunk/debian/postinst
  packages/autokey/trunk/debian/prerm

Added: packages/autokey/trunk/debian/autokey-common.init
===================================================================
--- packages/autokey/trunk/debian/autokey-common.init	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-common.init	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,150 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+### BEGIN INIT INFO
+# Provides:          autokey
+# Required-Start:    $local_fs 
+# Required-Stop:     $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start AutoKey daemon.
+# Description:       Enable AutoKey's EvDev interface daemon.
+### END INIT INFO
+
+import sys, os, socket, glob, shutil, time
+try:
+    from autokey import evdev, daemon
+    from autokey.common import DOMAIN_SOCKET_PATH, PACKET_SIZE
+except ImportError:
+    # Per DPM § 9.3.2 script should fail gracefully if not installed.
+    print "It does not seem Autokey is installed. Exiting..."
+    sys.exit(0)
+
+PACKET_STRING = "%s,%s,%s"
+
+BUTTON_MAP = {
+              "BTN_LEFT" : '1',
+              "BTN_MIDDLE": '2',
+              "BTN_RIGHT" : '3'
+             }
+
+class AutoKeyDaemon(daemon.Daemon):
+
+    def __init__(self):
+        logFile = "/var/log/autokey-daemon.log"
+        if os.path.exists(logFile):
+            shutil.move(logFile, logFile + '.old')
+        daemon.Daemon.__init__(self, '/tmp/autokey-daemon.pid', stdout=logFile, stderr=logFile)
+
+    def get_device_paths(self):
+        keyboardLocations = glob.glob("/dev/input/by-path/*-event-kbd")
+        mouseLocations = glob.glob("/dev/input/by-path/*-event-mouse")
+    
+        sys.stdout.write("Keyboards: %s\nMice: %s\n" % (repr(keyboardLocations), repr(mouseLocations)))
+        return keyboardLocations + mouseLocations
+    
+    def run(self):
+        print "AutoKey daemon starting"
+        if os.path.exists(DOMAIN_SOCKET_PATH):
+            os.remove(DOMAIN_SOCKET_PATH)
+        s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
+        s.bind(DOMAIN_SOCKET_PATH)
+        os.chmod(DOMAIN_SOCKET_PATH, 0777)
+        print "Created domain socket"
+
+        while True:
+            time.sleep(5) # sleep 5 seconds, waiting for devices to appear after resume from S3
+            s.listen(1)
+            try:
+                conn, addr = s.accept()
+                print "Accepted connection"
+            except Exception, e:
+                print "Fatal error while accepting connections - daemon shutting down"
+                print str(e)
+                break
+            
+            devices = evdev.DeviceGroup(self.get_device_paths())
+            sys.stdout.flush()
+            sys.stderr.flush()
+            
+            while True:
+                try:
+                    event = devices.next_event()
+                except OSError:
+                    print "Unable to read from device(s). Connection will be closed and restarted"
+                    break
+                    
+                if event is not None:
+                    if event.type == "EV_KEY" and isinstance(event.code, str):
+                        if event.code.startswith("KEY"):
+                            # Keyboard event
+                            code = event.scanCode
+                            button = ''
+                            state = event.value
+                            
+                            try:
+                                self.send_packet(conn, code, button, state)
+                            except:
+                                break
+    
+                        elif event.code.startswith("BTN") and event.value == 1:
+                            # Mouse event - only care about button press, not release
+                            code = ''
+                            if event.code in BUTTON_MAP:
+                                button = BUTTON_MAP[event.code]
+                            else:
+                                button = -1
+                            state = event.value
+    
+                            try:
+                                self.send_packet(conn, code, button, state)
+                            except:
+                                break
+
+            conn.close()
+            devices.close()
+            print "Connection closed"
+            sys.stdout.flush()
+            sys.stderr.flush()
+                       
+    def send_packet(self, conn, code, button, state):
+        if code:
+            code = self.translate_keycode(code)
+        sendData = PACKET_STRING % (code, button, state)
+        sendData += (PACKET_SIZE - len(sendData)) * ' '
+        conn.send(sendData)
+    
+    def translate_keycode(self, keyCode):
+        if keyCode < 151:
+            keyCode += 8
+        else:
+            print "Got untranslatable evdev keycode: %d\n" % keyCode
+            keyCode = 0
+        return keyCode
+    
+
+if __name__ == "__main__":
+    #daemon = AutoKeyDaemon('/tmp/autokey-daemon.pid', stdout=sys.__stdout__, stderr=sys.__stderr__)
+    daemon = AutoKeyDaemon()
+    if len(sys.argv) == 2:
+        if 'start' == sys.argv[1]:
+            daemon.start()
+        elif 'stop' == sys.argv[1]:
+            daemon.stop()
+        elif 'restart' == sys.argv[1]:
+            daemon.restart()
+        elif 'force-reload' == sys.argv[1]:
+            # we don't support on-the-fly reloading,
+            # so just restart the daemon per DPM 9.3.2
+            daemon.restart()            
+        else:
+            print "Unknown command"
+            sys.exit(2)
+        sys.exit(0)
+    else:
+        print "usage: %s {start|stop|restart|force-reload}" % sys.argv[0]
+        sys.exit(2)
+    
+    sys.exit(0)
+            
+    

Added: packages/autokey/trunk/debian/autokey-common.install
===================================================================
--- packages/autokey/trunk/debian/autokey-common.install	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-common.install	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,13 @@
+usr/lib/python*/*-packages/autokey/common.py
+usr/lib/python*/*-packages/autokey/configmanager.py
+usr/lib/python*/*-packages/autokey/daemon.py 
+usr/lib/python*/*-packages/autokey/evdev.py
+usr/lib/python*/*-packages/autokey/__init__.py
+usr/lib/python*/*-packages/autokey/interface.py
+usr/lib/python*/*-packages/autokey/iomediator.py
+usr/lib/python*/*-packages/autokey/model.py
+usr/lib/python*/*-packages/autokey/nogui.py
+usr/lib/python*/*-packages/autokey/scripting.py
+usr/lib/python*/*-packages/autokey/service.py
+usr/lib/python*/*-packages/autokey-*.egg-info
+usr/share/pixmaps/akicon.png

Copied: packages/autokey/trunk/debian/autokey-common.lintian-overrides (from rev 4939, packages/autokey/trunk/debian/autokey.lintian-overrides)
===================================================================
--- packages/autokey/trunk/debian/autokey-common.lintian-overrides	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-common.lintian-overrides	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1 @@
+autokey-common binary: init.d-script-uses-usr-interpreter

Added: packages/autokey/trunk/debian/autokey-common.postinst
===================================================================
--- packages/autokey/trunk/debian/autokey-common.postinst	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-common.postinst	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postinst script for test
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/autokey" ]; then
+	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+		invoke-rc.d autokey start || exit $?
+	else
+		/etc/init.d/autokey start || exit $?
+	fi
+fi
+# End automatically added section
+
+
+exit 0

Added: packages/autokey/trunk/debian/autokey-common.prerm
===================================================================
--- packages/autokey/trunk/debian/autokey-common.prerm	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-common.prerm	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,34 @@
+#!/bin/sh
+# prerm script for test
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+# Automatically added by dh_installinit
+if [ -x "/etc/init.d/autokey" ]; then
+	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+		invoke-rc.d autokey stop || exit $?
+	else
+		/etc/init.d/autokey stop || exit $?
+	fi
+fi
+# End automatically added section
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/autokey/trunk/debian/autokey-gtk.install
===================================================================
--- packages/autokey/trunk/debian/autokey-gtk.install	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-gtk.install	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,6 @@
+usr/lib/python*/*-packages/autokey/gtkui/
+usr/lib/python*/*-packages/autokey/gtkapp.py
+usr/bin/autokey-gtk
+usr/share/applications/autokey-gtk.desktop
+usr/share/man/man1/autokey-gtk.1
+usr/share/pixmaps/akicon-status.png
\ No newline at end of file

Added: packages/autokey/trunk/debian/autokey-qt.install
===================================================================
--- packages/autokey/trunk/debian/autokey-qt.install	                        (rev 0)
+++ packages/autokey/trunk/debian/autokey-qt.install	2010-03-12 13:52:13 UTC (rev 4944)
@@ -0,0 +1,5 @@
+usr/lib/python*/*-packages/autokey/qtui/
+usr/lib/python*/*-packages/autokey/qtapp.py
+usr/bin/autokey-qt
+usr/share/applications/autokey-qt.desktop
+usr/share/man/man1/autokey-qt.1

Deleted: packages/autokey/trunk/debian/autokey.1
===================================================================
--- packages/autokey/trunk/debian/autokey.1	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/autokey.1	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,54 +0,0 @@
-.\"                                      Hey, EMACS: -*- nroff -*-
-.\" First parameter, NAME, should be all caps
-.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-.\" other parameters are allowed: see man(7), man(1)
-.TH AUTOKEY "1" "August 19, 2009"
-.\" Please adjust this date whenever revising the manpage.
-.\"
-.\" Some roff macros, for reference:
-.\" .nh        disable hyphenation
-.\" .hy        enable hyphenation
-.\" .ad l      left justify
-.\" .ad b      justify to both left and right margins
-.\" .nf        disable filling
-.\" .fi        enable filling
-.\" .br        insert line break
-.\" .sp <n>    insert n+1 empty lines
-.\" for manpage-specific macros, see man(7)
-.SH NAME
-autokey \- keyboard automation utility
-.SH SYNOPSIS
-.B autokey
-.RI [ options ]
-.SH DESCRIPTION
-This manual page briefly documents the
-.B autokey
-command.
-.PP
-.\" TeX users may be more comfortable with the \fB<whatever>\fP and
-.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
-.\" respectively.
-\fBautokey\fP AutoKey is a desktop automation utility for Linux and X11. It allows
-the automation of virtually any task by responding to typed abbreviations and hotkeys. It 
-offers a full-featured GUI that makes it highly accessible for novices, as well as a scripting 
-interface offering the full flexibility and power of the Python language.
-.br
-For more information refer to the online wiki at:
-    http://code.google.com/p/autokey/w/list
-.SH OPTIONS
-This program follows the usual GNU command line syntax, with long
-options starting with two dashes (`-').
-A summary of options is included below.
-.TP
-.B \-\-help
-Show summary of options.
-.TP
-.B \-l, \-\-verbose
-Enable verbose (debug) logging.
-.TP
-.B \-c, \-\-configure
-Show the configuration window on startup, even if this is not the first run.
-.SH AUTHOR
-AutoKey was written by Chris Dekter, loosely based on a script by Sam Peterson.
-.PP
-This manual page was written by Chris Dekter <cdekter at gmail.com>.

Deleted: packages/autokey/trunk/debian/autokey.init
===================================================================
--- packages/autokey/trunk/debian/autokey.init	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/autokey.init	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,145 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-### BEGIN INIT INFO
-# Provides:          autokey
-# Required-Start:    $local_fs 
-# Required-Stop:     $local_fs
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Start AutoKey daemon.
-# Description:       Enable AutoKey's EvDev interface daemon.
-### END INIT INFO
-
-import sys, os, socket, glob, shutil, time
-from autokey import evdev, daemon
-from autokey.interface import DOMAIN_SOCKET_PATH, PACKET_SIZE
-
-PACKET_STRING = "%s,%s,%s"
-
-BUTTON_MAP = {
-              "BTN_LEFT" : '1',
-              "BTN_MIDDLE": '2',
-              "BTN_RIGHT" : '3'
-             }
-
-class AutoKeyDaemon(daemon.Daemon):
-
-    def __init__(self):
-        logFile = "/var/log/autokey-daemon.log"
-        if os.path.exists(logFile):
-            shutil.move(logFile, logFile + '.old')
-        daemon.Daemon.__init__(self, '/tmp/autokey-daemon.pid', stdout=logFile, stderr=logFile)
-
-    def get_device_paths(self):
-        keyboardLocations = glob.glob("/dev/input/by-path/*-event-kbd")
-        mouseLocations = glob.glob("/dev/input/by-path/*-event-mouse")
-    
-        sys.stdout.write("Keyboards: %s\nMice: %s\n" % (repr(keyboardLocations), repr(mouseLocations)))
-        return keyboardLocations + mouseLocations
-    
-    def run(self):
-        print "AutoKey daemon starting"
-        if os.path.exists(DOMAIN_SOCKET_PATH):
-            os.remove(DOMAIN_SOCKET_PATH)
-        s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-        s.bind(DOMAIN_SOCKET_PATH)
-        os.chmod(DOMAIN_SOCKET_PATH, 0777)
-        print "Created domain socket"
-
-        while True:
-            time.sleep(5) # sleep 5 seconds, waiting for devices to appear after resume from S3
-            s.listen(1)
-            try:
-                conn, addr = s.accept()
-                print "Accepted connection"
-            except Exception, e:
-                print "Fatal error while accepting connections - daemon shutting down"
-                print str(e)
-                break
-            
-            devices = evdev.DeviceGroup(self.get_device_paths())
-            sys.stdout.flush()
-            sys.stderr.flush()
-            
-            while True:
-                try:
-                    event = devices.next_event()
-                except OSError:
-                    print "Unable to read from device(s). Connection will be closed and restarted"
-                    break
-                    
-                if event is not None:
-                    if event.type == "EV_KEY" and isinstance(event.code, str):
-                        if event.code.startswith("KEY"):
-                            # Keyboard event
-                            code = event.scanCode
-                            button = ''
-                            state = event.value
-                            
-                            try:
-                                self.send_packet(conn, code, button, state)
-                            except:
-                                break
-    
-                        elif event.code.startswith("BTN") and event.value == 1:
-                            # Mouse event - only care about button press, not release
-                            code = ''
-                            if event.code in BUTTON_MAP:
-                                button = BUTTON_MAP[event.code]
-                            else:
-                                button = -1
-                            state = event.value
-    
-                            try:
-                                self.send_packet(conn, code, button, state)
-                            except:
-                                break
-
-            conn.close()
-            devices.close()
-            print "Connection closed"
-            sys.stdout.flush()
-            sys.stderr.flush()
-                       
-    def send_packet(self, conn, code, button, state):
-        if code:
-            code = self.translate_keycode(code)
-        sendData = PACKET_STRING % (code, button, state)
-        sendData += (PACKET_SIZE - len(sendData)) * ' '
-        conn.send(sendData)
-    
-    def translate_keycode(self, keyCode):
-        if keyCode < 151:
-            keyCode += 8
-        else:
-            print "Got untranslatable evdev keycode: %d\n" % keyCode
-            keyCode = 0
-        return keyCode
-    
-
-if __name__ == "__main__":
-    #daemon = AutoKeyDaemon('/tmp/autokey-daemon.pid', stdout=sys.__stdout__, stderr=sys.__stderr__)
-    daemon = AutoKeyDaemon()
-    if len(sys.argv) == 2:
-        if 'start' == sys.argv[1]:
-            daemon.start()
-        elif 'stop' == sys.argv[1]:
-            daemon.stop()
-        elif 'restart' == sys.argv[1]:
-            daemon.restart()
-        elif 'force-reload' == sys.argv[1]:
-            # we don't support on-the-fly reloading,
-            # so just restart the daemon per DPM 9.3.2
-            daemon.restart()            
-        else:
-            print "Unknown command"
-            sys.exit(2)
-        sys.exit(0)
-    else:
-        print "usage: %s {start|stop|restart|force-reload}" % sys.argv[0]
-        sys.exit(2)
-    
-    sys.exit(0)
-            
-    

Deleted: packages/autokey/trunk/debian/autokey.lintian-overrides
===================================================================
--- packages/autokey/trunk/debian/autokey.lintian-overrides	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/autokey.lintian-overrides	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1 +0,0 @@
-autokey binary: init.d-script-uses-usr-interpreter

Modified: packages/autokey/trunk/debian/changelog
===================================================================
--- packages/autokey/trunk/debian/changelog	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/changelog	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,3 +1,11 @@
+autokey (0.61.4-1) unstable; urgency=low
+
+  * New upstream version:
+     - Combine GTK and QT versions into single source tree 
+  * Provide "autokey" as a transitional package to autokey-common and autokey-qt
+
+ -- Luke Faraone <luke at faraone.cc>  Fri, 12 Mar 2010 08:50:33 -0500
+
 autokey (0.61.3-1) unstable; urgency=low
 
   * debian/rules: call dh_installinit with --error-handler so that install

Modified: packages/autokey/trunk/debian/compat
===================================================================
--- packages/autokey/trunk/debian/compat	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/compat	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1 +1 @@
-6
+7

Modified: packages/autokey/trunk/debian/control
===================================================================
--- packages/autokey/trunk/debian/control	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/control	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,10 +1,10 @@
 Source: autokey
-Section: kde
 Priority: optional
+Section: utils
 Maintainer: Luke Faraone <luke at faraone.cc>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: python (>= 2.5), cdbs (>= 0.4.49), debhelper (>= 6), dpatch
-Build-Depends-indep: python-central
+Build-Depends: python (>= 2.5), cdbs (>= 0.4.49), debhelper (>= 7)
+Build-Depends-indep: python-central, dpatch
 Standards-Version: 3.8.4
 DM-Upload-Allowed: yes
 XS-Python-Version: >= 2.5
@@ -14,11 +14,54 @@
 
 Package: autokey
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-kde4, python-qt4, python-qscintilla2, python-xlib, wmctrl
+Depends: ${misc:Depends}, autokey-qt, autokey-common
+Description: dummy transitional package for autokey-qt
+ This transitional package helps users transition to the autokey-qt package. 
+ Once this package and its dependencies are installed you can safely remove it.
+
+Package: autokey-common
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-xlib, wmctrl
+Replaces: autokey (<<0.61.4-0~0)
+Breaks: autokey (<<0.61.4-0~0)
 XB-Python-Version: ${python:Versions}
-Description: desktop automation utility
+Description: desktop automation utility - common data
  AutoKey is a desktop automation utility for Linux and X11. It allows the 
  automation of virtually any task by responding to typed abbreviations and 
  hotkeys. It offers a full-featured GUI that makes it highly accessible for 
  novices, as well as a scripting interface offering the full flexibility and 
  power of the Python language.
+ . 
+ This package contains the common data shared between the various frontends.
+
+Package: autokey-qt
+Section: kde
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-kde4, python-qt4, python-qscintilla2, python-xlib, wmctrl, autokey-common
+Replaces: autokey (<<0.61.4-0~0)
+Breaks: autokey (<<0.61.4-0~0)
+XB-Python-Version: ${python:Versions}
+Description: desktop automation utility - QT version
+ AutoKey is a desktop automation utility for Linux and X11. It allows the 
+ automation of virtually any task by responding to typed abbreviations and 
+ hotkeys. It offers a full-featured GUI that makes it highly accessible for 
+ novices, as well as a scripting interface offering the full flexibility and 
+ power of the Python language.
+ . 
+ This package contains the QT frontend.
+
+Package: autokey-gtk
+Section: gnome
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-gtk2, python-gtksourceview2, python-glade2, python-xlib, python-notify, wmctrl, autokey-common
+Replaces: autokey (<<0.61.4-0~0)
+Breaks: autokey (<<0.61.4-0~0)
+XB-Python-Version: ${python:Versions}
+Description: desktop automation utility - GTK+ version
+ AutoKey is a desktop automation utility for Linux and X11. It allows the
+ automation of virtually any task by responding to typed abbreviations and
+ hotkeys. It offers a full-featured GUI that makes it highly accessible for
+ novices, as well as a scripting interface offering the full flexibility and
+ power of the Python language.
+ .
+ This package contains the GTK+ frontend.

Deleted: packages/autokey/trunk/debian/postinst
===================================================================
--- packages/autokey/trunk/debian/postinst	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/postinst	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,37 +0,0 @@
-#!/bin/sh
-# postinst script for test
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-# Automatically added by dh_installinit
-if [ -x "/etc/init.d/autokey" ]; then
-	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-		invoke-rc.d autokey start || exit $?
-	else
-		/etc/init.d/autokey start || exit $?
-	fi
-fi
-# End automatically added section
-
-
-exit 0

Deleted: packages/autokey/trunk/debian/prerm
===================================================================
--- packages/autokey/trunk/debian/prerm	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/prerm	2010-03-12 13:52:13 UTC (rev 4944)
@@ -1,34 +0,0 @@
-#!/bin/sh
-# prerm script for test
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-# Automatically added by dh_installinit
-if [ -x "/etc/init.d/autokey" ]; then
-	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-		invoke-rc.d autokey stop || exit $?
-	else
-		/etc/init.d/autokey stop || exit $?
-	fi
-fi
-# End automatically added section
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Modified: packages/autokey/trunk/debian/rules
===================================================================
--- packages/autokey/trunk/debian/rules	2010-03-12 13:20:12 UTC (rev 4943)
+++ packages/autokey/trunk/debian/rules	2010-03-12 13:52:13 UTC (rev 4944)
@@ -5,11 +5,6 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-include /usr/share/cdbs/1/rules/dpatch.mk
-# needed to use the dpatch tools (like dpatch-edit-patch)
-include /usr/share/dpatch/dpatch.make
 
 # Add here any variable or target overrides you need.
-DEB_INSTALL_MANPAGES_autokey = debian/autokey.1
-DEB_DH_INSTALLINIT_ARGS := --no-start --error-handler=true
-
+DEB_DH_INSTALLINIT_ARGS := --no-start --init-script=autokey --error-handler=init_failure




More information about the Python-apps-commits mailing list