debian/0000755000000000000000000000000011414176017007170 5ustar debian/source/0000755000000000000000000000000011414175621010470 5ustar debian/source/format0000644000000000000000000000001411414175621011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000007611414172435010224 0ustar version=3 http://www.burghardt.pl/files/esekeyd-(.*)\.tar\.gz debian/README.Debian0000644000000000000000000000066711414172435011242 0ustar ESE Key Daemon for Debian ------------------------- Create configuration file first, default configuration file name is /etc/esekeyd.conf. See manual pages of learnkeys(1) and examples in file /usr/share/doc/package/examples/example.conf for detailed information. Then enable ESE Key Daemon first by editing /etc/default/esekeyd, set: START_ESEKEYD=true -- Krzysztof Burghardt Tue, 23 Sep 2008 21:41:34 +0200 debian/esekeyd.examples0000644000000000000000000000002611414172435012357 0ustar examples/example.conf debian/esekeyd.init0000644000000000000000000001251711414172435011514 0ustar #!/bin/sh # # ESE Key Daemon init.d script with LSB support. # # Copyright (c) 2007 Javier Fernandez-Sanguino # Copyright (c) 2008 Krzysztof Burghardt # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, # or (at your option) any later version. # # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian operating system, in /usr/share/common-licenses/GPL; if # not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA # ### BEGIN INIT INFO # Provides: esekeyd # Required-Start: $remote_fs # Required-Stop: $remote_fs # Should-Start: $syslog # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: ESE Key Daemon # Description: a multimedia keyboard daemon for Linux ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/esekeyd DAEMON_WRAPPER=$DAEMON NAME=esekeyd DESC="a multimedia keyboard daemon for Linux" LOGDIR=/var/log PIDFILE=/var/run/$NAME.pid test -x $DAEMON || exit 0 test -x $DAEMON_WRAPPER || exit 0 . /lib/lsb/init-functions DAEMON_OPTS="" START_ESEKEYD="" DODTIME=10 LOGFILE=$LOGDIR/$NAME.log if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi set -e if [ "${START_ESEKEYD}" != "true" ]; then log_daemon_msg "Starting" "${NAME}" log_daemon_msg " not yet configured" log_daemon_msg " Enable ESE Key Daemon first by editing /etc/default/esekeyd" log_end_msg 0 exit 0 fi running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected server [ "$cmd" != "$name" ] && return 1 return 0 } running() { # No pidfile, probably no daemon present [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` running_pid $pid $DAEMON_WRAPPER || return 1 return 0 } start_server() { start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- $DAEMON_OPTS errcode=$? return $errcode } stop_server() { start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON errcode=$? return $errcode } reload_server() { [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` # This is the daemon's pid # Send a SIGHUP kill -1 $pid return $? } force_stop() { # Force the process to die killing it manually [ ! -e "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? sleep "$DIETIME"s if running ; then kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" # Check if it's running first if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server && running ; then # It's ok, the server started and is running log_end_msg 0 else # Either we could not start it or it is not running # after we did # NOTE: Some servers might die some time after they start, # this code does not try to detect this and might give # a false positive (use 'status' for that) log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then # Only stop the server if we see it running stop_server log_end_msg $? else # If it's not running don't do anything log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) # First try to stop gracefully the program $0 stop if running; then # If it's still running try to kill it more forcefully log_daemon_msg "Stopping (force) $DESC" "$NAME" force_stop log_end_msg $? fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" stop_server # Wait some sensible amount, some server need this [ -n "$DIETIME" ] && sleep $DIETIME start_server running log_end_msg $? ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 1 fi ;; reload) # As the daemon responds to changes in its config file # directly anyway, this is a do-nothing entry. ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/rules0000755000000000000000000000333311414172435010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif config.status: configure dh_testdir ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif # Add here commands to configure the package. CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot [ ! -f Makefile ] || $(MAKE) distclean dh_clean build-stamp config.sub config.guess install: build dh_testdir dh_testroot dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/esekeyd # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_installinit dh_installman dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/esekeyd.default0000644000000000000000000000030511414172435012165 0ustar # Defaults for esekeyd initscript # Start esekeyd on boot (set it to "true" to enable) START_ESEKEYD=false # Daemon options, at last config location must be present DAEMON_OPTS=/etc/esekeyd.conf debian/docs0000644000000000000000000000001411414172435010036 0ustar NEWS README debian/copyright0000644000000000000000000000273511414173322011126 0ustar This is esekeyd, written and maintained by Krzysztof Burghardt on Tue, 3 Jan 2006 22:47:33 +0100. The original source can always be found at: http://freashmeat.net/projects/esekeyd/ Upstream Author: Krzysztof Burghardt Copyright: Copyright (C) 2002-2008 Krzysztof Burghardt These files have different copyright holders: src/esekeyd.c: Copyright (C) 2000 Rick van Rein Copyright (C) 2002-2004,2006 Krzysztof Burghardt examples/esekeyd.gentoo: Copyright (C) 1999-2004 Gentoo Foundation debian/esekeyd.init: Copyright (C) 2007 Javier Fernandez-Sanguino Copyright (C) 2008 Krzysztof Burghardt License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. debian/control0000644000000000000000000000121011414173227010565 0ustar Source: esekeyd Section: misc Priority: optional Maintainer: Krzysztof Burghardt Build-Depends: debhelper (>= 7), autotools-dev Homepage: http://freshmeat.net/projects/esekeyd/ Standards-Version: 3.9.0 Package: esekeyd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: multimedia keyboard daemon for Linux ESE Key Daemon is a multimedia keyboard daemon for Linux. With the 2.6 kernel series it can also handle remote controls, as they are presented as keyboards. No kernel patch is required. It is a userspace program that pools /dev/input/event? interfaces for incoming keyboard key presses. debian/compat0000644000000000000000000000000211414172435010366 0ustar 7 debian/changelog0000644000000000000000000000116511414175670011051 0ustar esekeyd (1.2.7-1) unstable; urgency=low * New Upstream Version. * Bumped Standards-Version to 3.9.0. * Updated copyright to refer to GPL-3. * Switch to dpkg-source 3.0 (quilt) format. -- Krzysztof Burghardt Sun, 04 Jul 2010 23:22:58 +0200 esekeyd (1.2.5-2) unstable; urgency=low * Fixed spelling mistake in Homepage: field (Closes: #508790) -- Krzysztof Burghardt Sat, 21 Feb 2009 14:06:46 +0100 esekeyd (1.2.5-1) unstable; urgency=low * Initial Release (Closes: #499917). -- Krzysztof Burghardt Sat, 15 Nov 2008 18:45:42 +0100