debian/0000775000000000000000000000000012271050532007165 5ustar debian/changelog0000664000000000000000000006530712271050474011057 0ustar pbbuttonsd (0.7.9-3ubuntu1) trusty; urgency=medium * Merge from Debian unstable, remaining changes: - debian/patches/fix-bashisms.patch: Fix bashisms in various scripts. - Remove 0 and 6 from Default-Stop line in init script for good measure. - Drop Recommends on laptop-mode-tools, which we don't want installed by default. - debian/pbbuttonsd.init: Exit if this system does not have a PMU chip. - Add debian/pbbuttonsd.udev: Send SIGHUP to pbbuttonsd when a new input device appears. Install it in debian/rules. - debian/patches/English-language-fixes.patch: string typo fixes. - debian/patches/disable-powersave-under-gpm.patch: Do not do anything if gnome-power-manager is running, since that already handles power management. - debian/patches/disable-hotkeys-under-gsd.patch: Ignore keyboard volume keys if gnome-settings-daemon is running. - debian/patches/use-eject-not-unmount.patch: Try to call "eject", and only call umount if eject failed. eject apparently does a better job of ejecting than the builtin method. - debian/patches/disable-autorescan.patch: Disable autorescan, this is done by the udev rule. * Dropped changes, included in Debian: - Change deprecated ${Source-Version} substvar for ${binary:Version} - Fix debian/rules to not ignore make clean errors * Dropped changes: - debian/pbbuttonsd.postinst: Remove rc0 and rc6 symlinks on upgrade. This is no longer needed for upgrades. - pbbuttonsd.conf: Disable SleepKey and Sleep timer by default: handled via the patches to upstream source. - pbbuttonsd.conf: Set ALSA as default sound system: the current upstream default of 'auto' is sufficient. - pbbuttonsd.conf: Set touchpad to 'notap' mode by default: no explanation in the package history for why this was set, drop the delta from Debian and upstream. * Convert Ubuntu delta to 3.0 (quilt) -- Steve Langasek Sat, 25 Jan 2014 19:05:15 -0500 pbbuttonsd (0.7.9-3) unstable; urgency=low * QA upload. * Switch to dpkg-source 3.0 (quilt) format. * debian/control: - Maintainer field set to QA Group. - Drop Uploaders field. - Add ${misc:Depends} to dependencies. - Bump Standards-Version to 3.9.5. - Replace deprecated ${Source-Version} substvar with ${binary:Version}. * debian/rules: - dh_clean -k is deprecated. Replace it with dh_prep. - Do not ignore make distclean errors. - Add build-{arch,indep}. - Build with default CFLAGS and LDFLAGS returned by dpkg-buildflags. * debian/patches/01-no-ftbfs-format-security.diff: - Replace a call to fprintf with no arguments with an equivalent fputs. - Use "%s" as a format string and pass inptr as an argument when calling syslog(3). * debian/pbbuttonsd.init: - Depend on $remote_fs to make sure the init script is run after /usr is mounted and before it's unmounted. - Remove S from Default-Stop. * debian/compat: - Set debhelper compatibility level to 9. * debian/copyright: - Point to GPL version 2. * debian/pbbuttonsd.{pre,post}inst: - Do not ignore errors (add set -e). -- Emanuele Rocca Tue, 21 Jan 2014 09:24:33 +0000 pbbuttonsd (0.7.9-2ubuntu5) lucid; urgency=low * Drop Recommends on laptop-mode-tools, which we don't want installed by default. -- Steve Langasek Tue, 01 Dec 2009 20:41:01 +0000 pbbuttonsd (0.7.9-2ubuntu4) intrepid; urgency=low * Removed update-rc.d "multiuser" option and updated init info (LP: #254267) http://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-June/000430.html * Avoid rules to ignore make clean errors * Change deprecated ${Source-Version} substvar for ${binary:Version} -- Nicolas Valcárcel Wed, 13 Aug 2008 21:50:57 -0500 pbbuttonsd (0.7.9-2ubuntu3) gutsy; urgency=low * Fix postinst glitch that meant rc0 symlinks weren't removed on upgrade. * Remove 0 and 6 from Default-Stop line in init script for good measure. -- Colin Watson Wed, 25 Jul 2007 09:23:58 +0100 pbbuttonsd (0.7.9-2ubuntu2) gutsy; urgency=low * configure.in, configure, scripts/pmcs-apmd: Fix bashisms. -- Colin Watson Tue, 12 Jun 2007 08:46:34 +0100 pbbuttonsd (0.7.9-2ubuntu1) gutsy; urgency=low * Merge from debian unstable; remaining Ubuntu changes: - debian/control, debian/rules: RC scripts in 'multiuser' mode (no init 0 and 6 symlinks). - debian/pbbuttonsd.postinst: Remove rc0 and rc6 symlinks on upgrade. This needs to be kept until the next LTS. - debian/pbbuttonsd.init: Exit if this system does not have a PMU chip. (LP #47419) - src/module_cdrom.c: Try to call "eject", and only call umount if eject failed. eject apparently does a better job of ejecting than the builtin method. - src/module_alsamixer.c: Do not do anything if gnome-setttings-daemon is running, since that already handles volume keys. - src/module_powersave.c: Do not do anything if gnome-power-manager is running, since that already handles power management. - src/module_alsamixer.c, src/module_peep.c, pbbcmd/pbbcmd.c: String typo fixes. - pbbuttonsd.conf: + Disable SleepKey and Sleep timer by default, already handled by Gnome. + Set ALSA as default sound system. + Set touchpad to 'notap' mode by default. + Disable autorescan, this is done by the udev rule. - Add debian/pbbuttonsd.udev: Send SIGHUP to pbbuttonsd when a new input device appears. Install it in debian/rules. -- Martin Pitt Mon, 28 May 2007 21:32:29 +0200 pbbuttonsd (0.7.9-2) unstable; urgency=high * Remove i386 packages again. As the underlying hardware is so completly different it actually makes no sense right now to have the package there. Use software like mbpeventd instead. Urgency high to indicate that this is a change that would be good to have in etch. Also closes: #377708 -- Frank Lichtenheld Sun, 24 Dec 2006 14:18:21 +0100 pbbuttonsd (0.7.9-1ubuntu3) feisty; urgency=low * Rebuild for changes in the amd64 toolchain. * Set Ubuntu maintainer address. -- Matthias Klose Mon, 5 Mar 2007 01:24:15 +0000 pbbuttonsd (0.7.9-1ubuntu2) feisty; urgency=low * Add a udev rule to send SIGHUP to pbbuttonsd when a new input device appears. * Disable autorescan again. -- Colin Watson Fri, 8 Dec 2006 22:17:35 +0000 pbbuttonsd (0.7.9-1ubuntu1) feisty; urgency=low * Merge from debian unstable; remaining Ubuntu changes: - debian/control, debian/pbbuttonsd.postinst, debian/rules: RC scripts in 'multiuser' mode (no init 0 and 6 symlinks). - debian/pbbuttonsd.init: Exit if this system does not have a PMU chip. - Add debian/50pbbuttonsd: Reinitialize after resuming from sleep. Install script in debian/rules. - src/module_cdrom.c: Try to call "eject", and only call umount if eject failed. eject apparently does a better job of ejecting than the builtin method. - src/module_alsamixer.c: Do not do anything if gnome-setttings-daemon is running, since that already handles volume keys. - src/module_powersave.c: Do not do anything if gnome-power-manager is running, since that already handles power management. - scripts/scripts.d/apmd-compat: Call /etc/apm/event.d scripts with 'resume' on resuming from sleep. - src/module_alsamixer.c, src/module_peep.c, pbbcmd/pbbcmd.c: String typo fixes. - pbbuttonsd.conf: + Disable SleepKey and Sleep timer by default, already handled by Gnome. + Set ALSA as default sound system. + Set touchpad to 'notap' mode by default. -- Martin Pitt Tue, 28 Nov 2006 18:18:35 +0100 pbbuttonsd (0.7.9-1) unstable; urgency=low * New upstream version + Improves performance by polling less often (Closes: #372760) + Works around problems with the synaptics trackpad driver (Closes: #377447) + Supports sysfs backlight interface as added in Linux 2.6.18 (Closes: #389770) -- Frank Lichtenheld Wed, 4 Oct 2006 00:43:48 +0200 pbbuttonsd (0.7.5-2ubuntu5) edgy; urgency=low * Fix spelling of some error strings. Thanks to Malcolm Parsons! Closes: LP#62854 -- Martin Pitt Thu, 5 Oct 2006 14:21:01 +0200 pbbuttonsd (0.7.5-2ubuntu4) edgy; urgency=low * debian/pbbuttonsd.init: Immediately exit if /proc/pmu does not exist, i. e. if the system does not have a PMU chip. This avoids error messages on systems with CUDA. Closes: LP#47419 -- Martin Pitt Mon, 18 Sep 2006 12:03:22 +0200 pbbuttonsd (0.7.5-2ubuntu3) edgy; urgency=low * Add forgotten versioned-dependency on sysv-rc to get new update-rc.d behaviour. Go me. -- Scott James Remnant Fri, 21 Jul 2006 01:24:17 +0100 pbbuttonsd (0.7.5-2ubuntu2) edgy; urgency=low * Remove stop links from rc0 and rc6 -- Scott James Remnant Thu, 20 Jul 2006 23:27:56 +0100 pbbuttonsd (0.7.5-2ubuntu1) edgy; urgency=low * Merge from debian unstable. -- Martin Pitt Wed, 5 Jul 2006 13:06:02 +0200 pbbuttonsd (0.7.5-2) unstable; urgency=low * Bump Standards-Version to 3.7.2 (no changes) * Build the packages on i386, too. This might make sense now that there are the IA32 MacBooks. Thanks to Alexander Wirt for the suggestion. * Do not try to call MAKEDEV if it isn't there (because of our dependency on makedev | udev). -- Frank Lichtenheld Sun, 18 Jun 2006 22:41:15 +0200 pbbuttonsd (0.7.5-1) unstable; urgency=low * new upstream release + call sync() on suspend-to-disk (Closes: #357595) + can dim lcd brightness to 0 while in autoadjust mode (Closes: #345314) * cd /dev ; MAKEDEV pmu in postinst (Closes: #350798) -- Filippo Giunchedi Sun, 14 May 2006 10:35:40 -0500 pbbuttonsd (0.7.4-1) unstable; urgency=low * New upstream release * You shouldn't need makedev if you have udev, so change dependencies accordingly * Update debhelper compat version to 5 -- Frank Lichtenheld Sat, 28 Jan 2006 14:28:28 +0100 pbbuttonsd (0.7.2-1ubuntu5) dapper; urgency=low * src/module_alsamixer.c: Fix a typo in the check for the master element having a playback volume, which caused pbbuttonsd to crash if not. Thanks to John Steele Scott for this patch! Closes: LP#39646 -- Martin Pitt Mon, 15 May 2006 11:23:18 +0200 pbbuttonsd (0.7.2-1ubuntu4) dapper; urgency=low * Add a script that reinits the settings after resuming from suspend Thanks to Sam Tygier for the script (Ubuntu: #37112) This is currently in /etc/apm/resume.d but should be in /etc/power/resume.d. Unfortunately the scripts in there don't work at all for me currently... I'll investigate into this further later if I find some free time. -- Sebastian Dröge Thu, 4 May 2006 13:10:25 +0200 pbbuttonsd (0.7.2-1ubuntu3) dapper; urgency=low * src/module_powersave.c: - Ignore lid and power change events if gnome-power-manager is running. * src/module_alsamixer.c: - Ignore keyboard volume keys if gnome-settings-daemon is running. - Should partly fix Malone #21374. * Patch copied to debian/ubuntu-patches/pbbuttonsd.check-gnome.patch. * pbbuttonsd.conf: - Restore default Mute key to uncripple pbbuttonsd for non-Gnome environments. - Use ALSA mixer, not OSS. -- Martin Pitt Tue, 14 Mar 2006 16:54:53 +0100 pbbuttonsd (0.7.2-1ubuntu2) dapper; urgency=low * src/module_pmac.c: Fix double sleep that occured under some conditions. Patch taken from upstream CVS. (Malone #33081) -- Martin Pitt Wed, 1 Mar 2006 13:18:20 +0100 pbbuttonsd (0.7.2-1ubuntu1) dapper; urgency=low * Resynchronise with Debian. * debian/pbbuttonsd.preinst: Remove hoary->breezy transition bits. -- Martin Pitt Mon, 7 Nov 2005 19:35:27 -0500 pbbuttonsd (0.7.2-1) unstable; urgency=low * New upstream release - handle events when lid is closed (Closes: #306482) - better support for suspend-to-disk (Closes: #329369) - don't abort on start if sound system can't be loaded (Closes: #325309, #321631) * Convert init script to use the lsb init functions and add lsb init info -- Frank Lichtenheld Thu, 29 Sep 2005 02:05:41 +0200 pbbuttonsd (0.7.1-2) unstable; urgency=low * Apply patch by Martin Pitt from the Ubuntu package, which fixes an incorrect call of apm scripts on resume (Closes: #329368) * Update FSF address in copyright file -- Frank Lichtenheld Wed, 28 Sep 2005 17:26:28 +0200 pbbuttonsd (0.7.1-1ubuntu5) breezy; urgency=low * Create the pmu device in /dev, not in /. Also, remove the pmu device we accidentally created in / if it should happen to exist. -- Adam Conrad Sun, 9 Oct 2005 02:46:54 +1000 pbbuttonsd (0.7.1-1ubuntu4) breezy; urgency=low * src/module_cdrom.c: Try to call "eject", and only call umount if eject failed. eject apparently does a better job of ejecting than the builtin method. (Ubuntu #16000) * pbuttons.conf: Raise command timeout from 4 to 8 seconds since eject needs usually a bit more than 4 seconds until it finished. * Patch copied into debian/ubuntu-patches/pbbuttonsd.call_eject.patch. -- Martin Pitt Fri, 23 Sep 2005 14:43:34 +0200 pbbuttonsd (0.7.1-1ubuntu3) breezy; urgency=low * Unapply debian/ubuntu-patches/pbbuttonsd.suspend-to-disk.patch: There is no backend code that performs suspend to disk, so this patch is not useful right now. * pbbuttonsd.conf: Disable Mute key since it is already handled by gnome-settings-daemon. (#15251) -- Martin Pitt Wed, 21 Sep 2005 18:08:05 +0200 pbbuttonsd (0.7.1-1ubuntu2) breezy; urgency=low * scripts/scripts.d/apmd-compat: Fix arguments on calling apm scripts on resume. (Ubuntu #4201) * Sort and split patches, put them into debian/ubuntu-patches/. -- Martin Pitt Wed, 21 Sep 2005 14:58:06 +0200 pbbuttonsd (0.7.1-1ubuntu1) breezy; urgency=low * Merge Debian changes (Ubuntu #12091) - Should fix more 100% CPU usage bugs. (Ubuntu #13909) - Fixes "plasma effect" and broken volume keys on some models (parts of Ubuntu #15251) * Move init script priority from 20 to 12 to start before gdm. (Ubuntu #12198) * debian/pbbuttonsd.preinst: Transition code for removing old (prio 20) init.d symlinks on upgrade. -- Martin Pitt Wed, 21 Sep 2005 13:04:09 +0200 pbbuttonsd (0.7.1-1) unstable; urgency=low * New upstream release + Fix some remaining issues for sh != bash (Closes: #295178) + Fix some remaining issues with ejecting the cdrom in case the device is a symlink (Closes: #312480) + Change behaviour of shift key for volume up/down to better cope with ALSA drivers that offer a very fine grained volume setting and fix a bug that occoured if there were more than 100 possible settings (Closes: #318032) -- Frank Lichtenheld Fri, 22 Jul 2005 14:33:06 +0300 pbbuttonsd (0.7.0-1) unstable; urgency=low * New upstream release + Quite some fixes to solve the 100% CPU problems and to improve the ALSA support + Closes: #315377: pbbuttonsd: mute key doesn't unmute anymore + Closes: #313919: pbbuttonsd: [INTL:de] German PO file corrections + It does not fix (completly) the problems with ejecting when using symlinks (see #312480) even though the changelog claims otherwise * Update Standards-Version to 3.6.2 (no changes) * Remove Depends on eject * Add Recommends on laptop-mode-tools, this should fix the problems with the laptop-mode.sh script (Closes: #290766, #309267) -- Frank Lichtenheld Sun, 10 Jul 2005 16:34:04 +0300 pbbuttonsd (0.6.10-2) unstable; urgency=low * Upload to unstable -- Frank Lichtenheld Mon, 20 Jun 2005 16:14:17 +0200 pbbuttonsd (0.6.10-1) experimental; urgency=low * New upstream version + Should fix problem where pbbuttonsd ate 100% CPU in certain situations (Closes: #308075) -- Frank Lichtenheld Fri, 27 May 2005 01:08:22 +0200 pbbuttonsd (0.6.9-1) experimental; urgency=low * New upstream version + documents the shift modifier ore prominently (Closes: #280211) + should work with sh != bash now (Closes: #295178) + report errors on startup (Closes: #188317) * Add patch by upstream to fix program exits on E_NOSUPPORT -- Frank Lichtenheld Sun, 10 Apr 2005 23:10:24 +0200 pbbuttonsd (0.6.8-1) experimental; urgency=low * New upstream version * Remove Jan from Uploaders, haven't heard from him anything since I adopted the package * Use MAKEDEV to create the pmu file, depends on makedev (>= 2.3.1-78) -- Frank Lichtenheld Sat, 26 Mar 2005 23:10:01 +0100 pbbuttonsd (0.6.7-1) experimental; urgency=low * New upstream version + Adds ALSA support (Closes: #292387) * Apply patch from upstream which fixes a segfault discovered shortly after the release -- Frank Lichtenheld Fri, 28 Jan 2005 12:25:35 +0100 pbbuttonsd (0.6.6-3ubuntu5) breezy; urgency=low * Port event device handling bug fixes from 0.6.10 release. This should fix some of the "100% CPU usage bugs". (Ubuntu #13909) -- Martin Pitt Fri, 16 Sep 2005 15:39:07 +0200 pbbuttonsd (0.6.6-3ubuntu4) breezy; urgency=low * pbbuttonsd.conf: Do not respond to the Power key by default since that already spawns the Gnome logout dialog. (Ubuntu #14338) -- Martin Pitt Fri, 16 Sep 2005 12:57:47 +0200 pbbuttonsd (0.6.6-3ubuntu3) hoary; urgency=low * Add patch from mjg59 to enable Suspend to Disk * Remove laptop-mode (Ubuntu: #7520) -- Thom May Wed, 16 Mar 2005 14:59:07 +0000 pbbuttonsd (0.6.6-3ubuntu2) hoary; urgency=low * debian/pbbuttonsd.preinst: Fix conffile transition to avoid dpkg conffile question on upgrades. (Ubuntu #7423) -- Martin Pitt Thu, 10 Mar 2005 17:03:23 +0100 pbbuttonsd (0.6.6-3ubuntu1) hoary; urgency=low * Resynchronise with Debian. -- Colin Watson Wed, 12 Jan 2005 13:49:51 +0000 pbbuttonsd (0.6.6-3) unstable; urgency=medium * Add logcheck file (ignore.workstation) -- Frank Lichtenheld Wed, 1 Dec 2004 00:15:48 +0100 pbbuttonsd (0.6.6-2ubuntu1) hoary; urgency=low * Resynchronise with Debian. - Update for new configuration file variable names. - Use dh_installinit --error-handler. -- Colin Watson Thu, 9 Dec 2004 13:51:16 +0100 pbbuttonsd (0.6.6-2) unstable; urgency=medium * Correct upstream mail address in debian/copyright * Fix watch file * Change Architecture back to powerpc until I decide to officially support pbbuttons on other Architectures in Debian. Upstream says it's possible but I have currently definetly not the time to test it. -- Frank Lichtenheld Thu, 18 Nov 2004 23:53:46 +0100 pbbuttonsd (0.6.6-1) unstable; urgency=low * New upstream release + fixes "setting brightness no longer works with ver 0.6.5 after lid close + reopen" according to upstream (Closes: #272253) * Upload to unstable again -- Frank Lichtenheld Thu, 11 Nov 2004 17:07:59 +0100 pbbuttonsd (0.6.5-1) experimental; urgency=low * New upstream version + upstream removed setupenv script, adapt rules and install files -- Frank Lichtenheld Sun, 12 Sep 2004 21:40:38 +0200 pbbuttonsd (0.6.3a-2ubuntu1) hoary; urgency=low * Resynchronise with Debian. -- Scott James Remnant Wed, 27 Oct 2004 20:10:08 +0100 pbbuttonsd (0.6.3a-2) unstable; urgency=medium * Change check in preinst and posinst so that it doesn't fail with exitcode 1 if the old configuration directory doesn't exist (Closes: #265804) * Use code from pmud to create /dev/pmu in postinst * Urgency medium since this are RC bugs -- Frank Lichtenheld Tue, 17 Aug 2004 13:10:15 +0200 pbbuttonsd (0.6.3a-1) unstable; urgency=low * New upstream version - Lid open/close can now trigger an action (Closes: #257104) - Typos in config file fixed (Closes: #257029) * Makefile.in: Remove unneeded Debian change from Makefile.in which changes nothing * debian/pbbuttonsd.postinst: Add some additional logic to the config clean-up to cope better with the changed config file * debian/pbbuttonsd.init: - Add --oknodo to start-stop-daemon --stop on restart so that the daemon is started even if it is not running - Fix usage information of the init script -- Frank Lichtenheld Thu, 22 Jul 2004 22:49:13 +0200 pbbuttonsd (0.6.3-1) unstable; urgency=low * New upstream version - Should fix problems with kernel 2.6.x and Alsa * Move config file to upstream location (/etc/pbbuttonsd.conf) again. Try to clean up the mess we caused a bit in pre- and postinst. Add a note in NEWS.Debian about this. (Closes: #260457) -- Frank Lichtenheld Thu, 22 Jul 2004 01:10:32 +0200 pbbuttonsd (0.6.2-1ubuntu2) warty; urgency=low * Ensure that the maintainer scripts don't fail if the daemon fails to start -- Thom May Wed, 22 Sep 2004 23:04:58 +0100 pbbuttonsd (0.6.2-1ubuntu1) warty; urgency=low * Fix defaults: - Sleep when lid is closed, even if we're on AC. - Disable trackpad tapping. - Don't magically dim or sleep on battery. -- Jeff Waugh Fri, 27 Aug 2004 03:52:07 +1000 pbbuttonsd (0.6.2-1) unstable; urgency=low * Take this package over from Jan with his approval. Acknowledge my own NMU. * Make myself maintainer and move Jan to Uploaders * Use /bin/bash in setupenv.sh as the script uses some non-POSIX constructs * Rename setupenv.sh to pbbuttonsd-setupenv on install * Update watch file to format version 2 and ensure that the pbbuttonsd-doc tar ball isn't matching -- Frank Lichtenheld Tue, 29 Jun 2004 21:57:15 +0200 pbbuttonsd (0.6.1-0.1) unstable; urgency=low * Non-maintainer upload to fix RC bug * New upstream release (Closes: #254932) + New release fixes (some of them according to upstream, I couldn't test all) - "#244361: pbbuttonsd: FTBFS: Cannot find depcomp" (Closes: #244361) - "#253862: pbbuttonsd do not install with Linux Kernel 2.6.6" (Closes: #253862, #254079) - "#249285: pbbuttonsd: typo in manpage; missing `, but additionaly I had to escape the `, otherwise they do not display correctly if using UTF-8 (Closes: #249285) - "#250379: pbbuttonsd: shutdown can wall, avoid bashism" (Closes: #250379) - "#249783: pbbuttonsd: Don't light up the screen if the lid is closed" (Closes: #249783) - "#249782: pbbuttonsd: brightness doesn't reach old value after sleep" (Closes: #249782) + upstream doesn't ship debian/ anymore, so use the oportunity for a little clean-up: - Move debhelper compat level to debian/compat and increase to 4 - Build-depend on debhelper (>> 4) - Bump Standards-Version to 3.6.1 (no changes) - Conflicts << Source-Version was redundant since we have already Depends = Source-Version * Uncomment reload target in init script (Closes: #244712) * Escape some hyphens in man pages (s/ -HUP/ \-HUP/) * Use gettext from libc, not the included one * Use URL of the Sourceforge project in debian/copyright as the old one gives 404 * Add correct copyright notice in debian/copyright * Add support for DEB_BUILD_OPTIONS=noopt in debian/rules -- Frank Lichtenheld Sat, 19 Jun 2004 14:00:11 +0200 pbbuttonsd (0.5.9-1) unstable; urgency=low * new upstream (Closes: #239574,#222039,#229108,#228119). * fixed depcomp issue in Makefiles. * rerun aclocal,autoheader,autoconf,automake. * removed Makefile in ./debian. * add dependency on hdparm (Closes: #239015). * let pbbuttonsd build for any achitecture (Closes: #231112). * load evdav module, if not loaded and available, when pbbuttonds is to be started (Closes: #225073). * pbbuttonsd is already a replace for pmud (Closes: #208209). * init-script is reporting errors (Closing: #188317). * add conflict to pmud. -- Jan-Hendrik Palic Fri, 5 Mar 2004 16:12:37 +0100 pbbuttonsd (0.5.8-1) unstable; urgency=low * new upstream version. -- Jan-Hendrik Palic Sun, 1 Feb 2004 15:58:29 +0100 pbbuttonsd (0.5.3a-2) unstable; urgency=low * invoked some IPC-security and enabled "userallowed = paranoid" in /etc/pbbuttonsd.conf * bumped to 3.5.9 -- Jan-Hendrik Palic Tue, 13 May 2003 23:36:41 +0200 pbbuttonsd (0.5.3a-1) unstable; urgency=low * new upstream * pbbuttons starts without cdrom-drive present (Closes: #188315). * fixes pid problem (Closes: #184319). * fixed the no honour eject delay=yes (Closes: #184323). * add dependency to eject (Closes: #179460). -- Jan-Hendrik Palic Mon, 5 May 2003 00:28:53 +0200 pbbuttonsd (0.5.3-1) unstable; urgency=low * new upstream release * no dependency on /dev/mixer (Closes: #182218). * fixed typo in configfile at ejectcddelay (Closes: #184323). * included IPC control mechanism (Closes: #164881). * this version is not intollerant of errors, please update (Closes: #153726). * (Closes: #164882). * Divided the mixer control, thnx for the issue, Christopher Allen (Closes: #176000). -- Jan-Hendrik Palic Wed, 19 Mar 2003 23:18:14 +0100 pbbuttonsd (0.5.2-1) unstable; urgency=low * new upstream. * fixed the updating problem while updating (Closes: #153725). * this version allows to specify the mixer device (Closes: #176000). * included dash to the buildepends, setupenv.sh needs this. * bumped to 3.5.8. -- Jan-Hendrik Palic Wed, 16 Oct 2002 23:30:52 +0200 pbbuttonsd (0.4.10a-1) unstable; urgency=low * new upstream version. * merge with original debian-stuff. * packege splitted by upstream. * fixes startscript (Closes: #145594). -- Jan-Hendrik Palic Mon, 10 Jun 2002 18:46:56 +0200 pbbuttonsd (0.4.6-1) unstable; urgency=low * Initial Release (Closes: #138434). * wiped out the original debian stuff. -- Jan-Hendrik Palic Thu, 21 Mar 2002 21:44:44 +0100 debian/pbbuttonsd.dirs0000664000000000000000000000020612270601773012242 0ustar usr/bin usr/share/man usr/share/locale/de/LC_MESSAGES usr/share/locale/it/LC_MESSAGES etc/devfs/conf.d var/lib/pbbuttons var/lib/ibam debian/pbbuttonsd.preinst0000664000000000000000000000146712270602013012763 0ustar #!/bin/sh set -e # use vars to avoid typos OLD_DIR=/etc/pbbuttons OLD_CONF=/etc/pbbuttons/pbbuttonsd.conf NEW_CONF=/etc/pbbuttonsd.conf do_upgrade () { # if only the old files exist, move them to the new # location if [ -f $OLD_CONF ] && [ ! -f $NEW_CONF ]; then mv $OLD_CONF $NEW_CONF if [ -f $OLD_CONF.dpkg-old ] && \ [ ! -f $NEW_CONF.dpkg-old ]; then mv $OLD_CONF.dpkg-old $NEW_CONF.dpkg-old fi if [ -f $OLD_CONF.dpkg-dist ] && \ [ ! -f $NEW_CONF.dpkg-dist ]; then mv $OLD_CONF.dpkg-dist $NEW_CONF.dpkg-dist fi fi [ ! -d $OLD_DIR ] || rmdir --ignore-fail-on-non-empty $OLD_DIR } if [ "$1" = "upgrade" ]; then do_upgrade fi if [ "$1" = "install" ] && [ "x$2" != x ]; then do_upgrade fi #DEBHELPER# debian/patches/0000775000000000000000000000000012271050532010614 5ustar debian/patches/series0000664000000000000000000000031012271045176012033 0ustar 01-no-ftbfs-format-security.diff fix-bashisms.patch English-language-fixes.patch disable-powersave-under-gpm.patch disable-hotkeys-under-gsd.patch use-eject-not-unmount.patch disable-autorescan.patch debian/patches/disable-autorescan.patch0000664000000000000000000000103612271046636015414 0ustar Description: Disable autorescan, this is done by the udev rule. Author: Colin Watson === renamed file 'pbbuttonsd.conf' => 'pbbuttonsd.conf' --- a/pbbuttonsd.conf 2006-12-24 14:18:21 +0000 +++ b/pbbuttonsd.conf 2014-01-25 00:23:23 +0000 @@ -3,7 +3,7 @@ # [SYSTEM] #userallowed = "paranoid" ; user who is allowed to use IPC -autorescan = yes ; automatic rescan of event devices +autorescan = no ; automatic rescan of event devices CmdTimeout = 8 # [MODULE POWERSAVE] debian/patches/01-no-ftbfs-format-security.diff0000664000000000000000000000057712270602013016542 0ustar --- pbbuttonsd-0.7.9.orig/libpbbipc/pbb_errno.c +++ pbbuttonsd-0.7.9/libpbbipc/pbb_errno.c @@ -108,9 +108,9 @@ */ if (base->daemon != PBBDS_NONE) { if (type == PBB_ERR && base->daemon != PBBDS_CHILD) - fprintf(stderr, inptr); - syslog(level, inptr); + fputs(inptr, stderr); + syslog(level, "%s", inptr); } else - fprintf(stderr, inptr); + fputs(inptr, stderr); } debian/patches/use-eject-not-unmount.patch0000664000000000000000000000135012271044103016016 0ustar Description: Try to call "eject", and only call umount if eject failed. eject apparently does a better job of ejecting than the builtin method. Author: Martin Pitt === modified file 'src/module_cdrom.c' --- a/src/module_cdrom.c 2005-11-07 19:35:27 +0000 +++ b/src/module_cdrom.c 2014-01-25 00:23:23 +0000 @@ -314,7 +314,11 @@ singletag_to_clients(CHANGEVALUE, TAG_EJECTCD, 0); /* busy */ if ((mp = cdrom_getmountpoint(base->cdromdev))) - err = call_script ("/bin/umount %.30s", mp); + { + err = call_script ("/usr/bin/eject %.30s", mp); + if (err) + err = call_script ("/bin/umount %.30s", mp); + } #if defined(DEBUG) && CDROM printf ("mp=%s, err=%d, %s (%d)\n", mp, err, strerror(errno), errno); debian/patches/English-language-fixes.patch0000664000000000000000000000513312271041711016124 0ustar Description: String typo fixes Fix various language nits in the program strings. Author: Malcolm Parsons Bug-Ubuntu: https://bugs.launchpad.net/bugs/62854 === modified file 'pbbcmd/pbbcmd.c' --- a/pbbcmd/pbbcmd.c 2006-11-28 18:18:35 +0000 +++ b/pbbcmd/pbbcmd.c 2014-01-25 00:23:23 +0000 @@ -166,7 +166,7 @@ { N_("Permission denied"), E_PERM}, { N_("Private Tag"), E_PRIVATE}, { N_("File doesn't exist"), E_NOEXIST}, - { N_("File not a charakter device"),E_NOCHAR}, + { N_("File not a character device"),E_NOCHAR}, { N_("File not a block device"), E_NOBLK}, { N_("File not a file"), E_NOFILE}, { N_("Buffer overflow"), E_BUFOVL}, @@ -177,7 +177,7 @@ { N_("Help or version info"), E_INFO}, { N_("Server not found"), E_NOSERVER}, { N_("Registration failed"), E_REGISTER}, - { N_("Unsecure script owner"), E_USER}, + { N_("Insecure script owner"), E_USER}, { N_("Script must be write-only by owner"), E_RIGHTS}, { N_("read-only value"), E_NOWRITE}, { N_("write-only value"), E_NOREAD}, === modified file 'src/module_alsamixer.c' --- a/src/module_alsamixer.c 2006-11-28 18:18:35 +0000 +++ b/src/module_alsamixer.c 2014-01-25 00:23:23 +0000 @@ -377,7 +377,7 @@ strcpy (base->channels, elements); alsamixer_close (); /* reinit mixer with next use */ } else { - print_msg (PBB_ERR, _("Too much ALSA elements given. Buffer overflow.\n")); + print_msg (PBB_ERR, _("Too many ALSA elements given. Buffer overflow.\n")); tagerror (taglist, E_BUFOVL); } } else === modified file 'src/module_peep.c' --- a/src/module_peep.c 2006-11-28 18:18:35 +0000 +++ b/src/module_peep.c 2014-01-25 00:23:23 +0000 @@ -173,7 +173,7 @@ { N_("Permission denied"), E_PERM}, { N_("Private Tag"), E_PRIVATE}, { N_("File doesn't exist"), E_NOEXIST}, - { N_("File not a charakter device"), E_NOCHAR}, + { N_("File not a character device"), E_NOCHAR}, { N_("File not a block device"), E_NOBLK}, { N_("File not a file"), E_NOFILE}, { N_("Buffer overflow"), E_BUFOVL}, @@ -182,7 +182,7 @@ { N_("Messageport not available"), E_MSGPORT}, { N_("Server already running"), E_TWICE}, { N_("Help or version info"), E_INFO}, - { N_("Unsecure script owner"), E_USER}, + { N_("Insecure script owner"), E_USER}, { N_("Script must be write-only by owner"), E_RIGHTS}, { N_("read-only value"), E_NOWRITE}, { N_("write-only value"), E_NOREAD}, debian/patches/fix-bashisms.patch0000664000000000000000000001331612271040124014232 0ustar Author: Colin Watson Description: fix bashisms in various files configure.in and scripts/pmcs-apmd assume that /bin/sh is bash, which is not the case. Remove the bashisms, which are not necessary. --- a/configure 2006-11-28 18:18:35 +0000 +++ b/configure 2014-01-25 00:23:23 +0000 @@ -4432,7 +4432,7 @@ withval="$with_pmud" pbb_with_pmud=$withval fi; -if test "$pbb_with_pmud" == "yes"; then +if test "$pbb_with_pmud" = "yes"; then cat >>confdefs.h <<_ACEOF #define WITH_PMUD 1 @@ -4448,7 +4448,7 @@ withval="$with_oss" pbb_with_oss=$withval fi; -if test "$pbb_with_oss" == "yes"; then +if test "$pbb_with_oss" = "yes"; then cat >>confdefs.h <<_ACEOF #define WITH_OSS 1 @@ -4463,7 +4463,7 @@ withval="$with_alsa" pbb_with_alsa=$withval fi; -if test "$pbb_with_alsa" == "yes"; then +if test "$pbb_with_alsa" = "yes"; then alsa_save_CFLAGS="$CFLAGS" alsa_save_LDFLAGS="$LDFLAGS" alsa_save_LIBS="$LIBS" @@ -4720,7 +4720,7 @@ - if test "$pbb_have_alsa" == "yes"; then + if test "$pbb_have_alsa" = "yes"; then cat >>confdefs.h <<_ACEOF #define WITH_ALSA 1 @@ -4736,7 +4736,7 @@ withval="$with_ibam" pbb_with_ibam=$withval fi; -if test "$pbb_with_ibam" == "yes"; then +if test "$pbb_with_ibam" = "yes"; then cat >>confdefs.h <<_ACEOF #define WITH_IBAM 1 @@ -4755,7 +4755,7 @@ DEBUG_TRUE='#' DEBUG_FALSE= fi -if test "$enable_debug" == "yes"; then +if test "$enable_debug" = "yes"; then PB_OBJECTS+=" module_peep.$OBJEXT" fi @@ -13468,33 +13468,33 @@ echo -e "System: $ac_laptop\n" echo -e "Options:" echo -n " pmud support " -if test "$pbb_with_pmud" == "yes"; then +if test "$pbb_with_pmud" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " OSS support " -if test "$pbb_with_oss" == "yes"; then +if test "$pbb_with_oss" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " ALSA support " -if test "$pbb_have_alsa" == "yes"; then +if test "$pbb_have_alsa" = "yes"; then echo "enabled" -elif test "$pbb_with_alsa" == "yes"; then +elif test "$pbb_with_alsa" = "yes"; then echo "not available (development files?)" else echo "disabled" fi echo -n " IBAM support " -if test "$pbb_with_ibam" == "yes"; then +if test "$pbb_with_ibam" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " Debug mode " -if test "$enable_debug" == "yes"; then +if test "$enable_debug" = "yes"; then echo "enabled" else echo "disabled" --- a/configure.in 2006-11-28 18:18:35 +0000 +++ b/configure.in 2014-01-25 00:23:23 +0000 @@ -60,7 +60,7 @@ pbb_with_pmud=no AC_ARG_WITH(pmud, [ --with-pmud use pmud as low level power manager (default=no)], pbb_with_pmud=$withval, ) -if test "$pbb_with_pmud" == "yes"; then +if test "$pbb_with_pmud" = "yes"; then AC_DEFINE_UNQUOTED(WITH_PMUD, 1, [use pmud as basement]) PB_OBJECTS+="tcp.$OBJEXT" fi @@ -68,16 +68,16 @@ pbb_with_oss=yes AC_ARG_WITH(oss, [ --with-oss enable OSS support in pbbuttonsd (default=yes)], pbb_with_oss=$withval, ) -if test "$pbb_with_oss" == "yes"; then +if test "$pbb_with_oss" = "yes"; then AC_DEFINE_UNQUOTED(WITH_OSS, 1, [enable OSS support]) fi pbb_with_alsa=yes AC_ARG_WITH(alsa, [ --with-alsa enable ALSA support in pbbuttonsd (default=yes)], pbb_with_alsa=$withval, ) -if test "$pbb_with_alsa" == "yes"; then +if test "$pbb_with_alsa" = "yes"; then AM_PATH_ALSA(1.0.0, [pbb_have_alsa=yes], [pbb_have_alsa=no]) - if test "$pbb_have_alsa" == "yes"; then + if test "$pbb_have_alsa" = "yes"; then AC_DEFINE_UNQUOTED(WITH_ALSA, 1, [enable ALSA support]) fi fi @@ -85,14 +85,14 @@ pbb_with_ibam=yes AC_ARG_WITH(ibam, [ --with-ibam enable IBAM support in pbbuttonsd (default=yes)], pbb_with_ibam=$withval, ) -if test "$pbb_with_ibam" == "yes"; then +if test "$pbb_with_ibam" = "yes"; then AC_DEFINE_UNQUOTED(WITH_IBAM, 1, [enable IBAM support]) PB_OBJECTS+=" ibam_stub.$OBJEXT" PB_LIBS+=" -lstdc++" fi AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes) -if test "$enable_debug" == "yes"; then +if test "$enable_debug" = "yes"; then PB_OBJECTS+=" module_peep.$OBJEXT" fi @@ -157,33 +157,33 @@ echo -e "System: $ac_laptop\n" echo -e "Options:" echo -n " pmud support " -if test "$pbb_with_pmud" == "yes"; then +if test "$pbb_with_pmud" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " OSS support " -if test "$pbb_with_oss" == "yes"; then +if test "$pbb_with_oss" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " ALSA support " -if test "$pbb_have_alsa" == "yes"; then +if test "$pbb_have_alsa" = "yes"; then echo "enabled" -elif test "$pbb_with_alsa" == "yes"; then +elif test "$pbb_with_alsa" = "yes"; then echo "not available (development files?)" else echo "disabled" fi echo -n " IBAM support " -if test "$pbb_with_ibam" == "yes"; then +if test "$pbb_with_ibam" = "yes"; then echo "enabled" else echo "disabled" fi echo -n " Debug mode " -if test "$enable_debug" == "yes"; then +if test "$enable_debug" = "yes"; then echo "enabled" else echo "disabled" === modified file 'scripts/pmcs-apmd' --- a/scripts/pmcs-apmd 2004-12-01 00:15:48 +0000 +++ b/scripts/pmcs-apmd 2014-01-25 00:23:23 +0000 @@ -30,7 +30,7 @@ case "$1" in start) - if [ "$PWR" == "battery" ]; then + if [ "$PWR" = "battery" ]; then run-parts --arg="powersave" --arg="$PWR" event.d else run-parts --arg="performance" --arg="$PWR" event.d @@ -42,7 +42,7 @@ wall "Low battery - system will go down now!" ;; power) - if [ "$PWR" == "battery" ]; then + if [ "$PWR" = "battery" ]; then run-parts --arg="powersave" --arg="$PWR" event.d else run-parts --arg="performance" --arg="$PWR" event.d debian/patches/disable-powersave-under-gpm.patch0000664000000000000000000000413712271042737017162 0ustar Description: Do not powersave if gnome-power-manager is running Ignore lid and power change events if gnome-power-manager is running, since that already handles power management. Author: Martin Pitt === modified file 'src/module_powersave.c' --- a/src/module_powersave.c 2006-11-28 18:18:35 +0000 +++ b/src/module_powersave.c 2014-01-25 00:23:23 +0000 @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "pbbinput.h" @@ -370,6 +371,23 @@ struct moddata_power *base = &modbase_power; int err, val; + /* check whether gnome-power-manager is running */ + int gpm_running = 0; + pid_t killall_pid = fork(); + if (killall_pid == 0) { + execl ("/usr/bin/killall", "killall", "-q", "-s", "0", "gnome-power-manager", NULL); + perror("could not execute killall"); + exit (1); + } else if (killall_pid > 0) { + int status; + if (wait (&status) > 0) { + if (WIFEXITED(status) && WEXITSTATUS(status) == 0) + gpm_running = 1; + } else + perror("wait on killall"); + } else + perror ("forking killall"); + while (taglist->tag != TAG_END) { switch (taglist->tag) { case TAG_REINIT: @@ -580,7 +598,7 @@ else taglist->data = base->flags.heartbeat_enable; break; case TAG_POWERCHANGED: /* private tag */ - if (cfgure) { + if (cfgure && !gpm_running) { if (taglist->data) base->activeProfile = &base->onAC; else @@ -628,7 +646,7 @@ /* PMCS-script will be called in power_suspend() so that it's nothing left to do here */ break; case TAG_WAKEUPFROMSLEEP: /* private tag */ - if (cfgure) { + if (cfgure && !gpm_running) { power_awake (); val = base->powersource; power_sync (); /* syncronise redundant data from module_pmac */ @@ -641,7 +659,7 @@ } break; case TAG_COVERSTATUS: /* private tag */ - if (cfgure) { + if (cfgure && !gpm_running) { base->flags.coveropen = taglist->data & 1; val = base->activeProfile->coveraction; if (val == ACTION_BLANK || ((val == ACTION_TORAM) && !base->flags.sleep_supported)) debian/patches/disable-hotkeys-under-gsd.patch0000664000000000000000000000251712271043430016616 0ustar Description: Ignore keyboard volume keys if gnome-settings-daemon is running Do not do anything if gnome-setttings-daemon is running, since that already handles volume keys. Author: Martin Pitt Bug-Ubuntu: https://bugs.launchpad.net/bugs/21374 === modified file 'src/module_alsamixer.c' --- a/src/module_alsamixer.c 2006-11-28 18:18:35 +0000 +++ b/src/module_alsamixer.c 2014-01-25 23:18:31 +0000 @@ -22,6 +22,7 @@ #include #include +#include #include "gettext_macros.h" #include "input_manager.h" @@ -518,6 +519,24 @@ step = 0; } else return; + /* check whether gnome-settings-daemon is running */ + pid_t killall_pid = fork(); + if (killall_pid == 0) { + execl ("/usr/bin/killall", "killall", "-q", "-s", "0", "gnome-settings-daemon", NULL); + perror("could not execute killall"); + exit (1); + } else if (killall_pid > 0) { + int status; + if (wait (&status) > 0) { + if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { + print_msg (PBB_WARN, _("Ignoring volume control key since gnome-settings-daemon is running\n")); + return; + } + } else + perror("wait on killall"); + } else + perror ("forking killall"); + if ((step == 0) || (mod & MOD_SHIFT)) alsamixer_set_and_send(ALSAMIXER_REL, step); /* mute and fine tuning */ else debian/watch0000664000000000000000000000014612270601773010227 0ustar version=2 ftp://ftp.sf.net/pub/sourceforge/p/pb/pbbuttons/pbbuttonsd-(\d.*)\.tar\.gz debian uupdate debian/pbbuttonsd-dev.files0000664000000000000000000000026112270601773013160 0ustar usr/lib/libpbb.a usr/include/pbbipc.h usr/include/pbberrno.h usr/include/pbb.h usr/include/pbbmisc.h usr/include/pbbtaglist.h usr/include/pbbtags.h usr/include/pbblist.h debian/copyright0000664000000000000000000000210412270602013011111 0ustar This package was debianized by Jan-Hendrik Palic on Thu, 21 Mar 2002 21:44:44 +0100. It was downloaded from http://pbbuttons.sourceforge.net/ Upstream Author: Matthias Grimm (matthiasgrimm@users.sourceforge.net) Copyright: Copyright (c) 2002 Matthias Grimm This package 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; version 2 dated June, 1991. This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/pbbuttonsd.postinst0000664000000000000000000000233712271047612013170 0ustar #!/bin/sh set -e # use vars to avoid typos OLD_DIR=/etc/pbbuttons OLD_CONF=/etc/pbbuttons/pbbuttonsd.conf NEW_CONF=/etc/pbbuttonsd.conf if [ "$1" = "configure" ] && [ "x$2" != x ]; then # old and new config file are identical if [ -f $OLD_CONF ] && \ [ "`md5sum $OLD_CONF`" = "`md5sum $NEW_CONF`" ]; then rm $OLD_CONF fi # old conf was unchanged if [ -f $OLD_CONF ] && \ [ "`md5sum $OLD_CONF`" = "5a72c4383a37b481d33ad987710da074 $OLD_CONF" ]; then rm $OLD_CONF fi # old config file was modified but the new one # was not if [ -f $OLD_CONF ] && [ ! -f $NEW_CONF.dpkg-dist ] \ && [ ! -f $NEW_CONF.dpkg-old ]; then mv $NEW_CONF $NEW_CONF.dpkg-old mv $OLD_CONF $NEW_CONF fi [ ! -d $OLD_DIR ] || rmdir --ignore-fail-on-non-empty $OLD_DIR fi # taken from pmud if [ "$1" = "configure" ]; then # register devices # FIXME consider deprecating devfs if [ -e /dev/.devfsd ]; then # devfs enabled update-devfsd > /dev/null 2>&1 || true else # devfs not enabled # /dev/pmu device to interface with kernel PMU code if [ ! -c /dev/pmu ] && [ -x /sbin/MAKEDEV ]; then (cd /dev ; MAKEDEV pmu) fi fi fi #DEBHELPER# debian/docs0000664000000000000000000000002112270601773010041 0ustar BUGS README TODO debian/compat0000664000000000000000000000000212270602013010357 0ustar 9 debian/devfs0000664000000000000000000000006112270601773010224 0ustar REGISTER ^misc/pmu$ PERMISSIONS root.root 0600 debian/NEWS0000664000000000000000000000167412270601773007704 0ustar pbbuttonsd (0.6.3-1) unstable; urgency=low * Due to mistakes and some confusion the location of the pbbuttonsd configuration file changed several times. Upstream locates it at /etc/pbbuttonsd.conf for some releases now, but in the Debian package it was placed at /etc/pbbuttons/pbbuttonsd.conf. I have reverted this to use the upstream default again. The package will try to clean up old copies if they seem unchanged from the shipped version. If you have still a file /etc/pbbuttons/pbbuttonsd.conf after installation, the package wasn't sure what to do and left the decision up to you. Sorry for any trouble and/or confusion this caused. The directory /etc/pbbuttons isn't used anymore in the current packages and can be safely removed if still existant (after you have checked its contents, of course). -- Frank Lichtenheld Thu, 22 Jul 2004 01:49:59 +0200 debian/pbbuttonsd.udev0000664000000000000000000000023412270601773012245 0ustar # Send pbbuttonsd a HUP signal if a new event device is connected ACTION=="add", KERNEL=="event[0-9]*", RUN+="/bin/sh -c 'kill -HUP $$(pidof pbbuttonsd)'" debian/README.Debian0000664000000000000000000000152312270601773011237 0ustar pbbuttonsd for Debian ===================== my usb/external events are ignored (i.e. the screens stays dark if I move the external mouse) --------------------------------------------------------------------------------------------- pbbuttons scans event input devices only at startup, you can force it to do automatic rescan by setting: autorescan = yes in /etc/pbbuttonsd.conf. See also http://bugs.debian.org/324604 for further discussion. but it still doesn't work! -------------------------- probably you are running a static /dev (commonly found with linux 2.4 kernels) and you have a lot of input devices. You need to create more, you can do so by running: mknod /dev/input/event1 c 13 65 mknod /dev/input/event2 c 13 66 ... mknod /dev/input/event7 c 13 71 this problem won't occur if you are using udev (only on 2.6 kernels) for example. debian/rules0000775000000000000000000000403012270602013010236 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # 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) DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk configure: configure-stamp configure-stamp: dh_testdir ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --sysconfdir=/etc \ --disable-rpath touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) AM_CFLAGS= touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ -rm -f $(CURDIR)/debian/tmp/etc/power/scripts.d/laptopmode.sh # 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_movefiles install -m 644 debian/devfs $(CURDIR)/debian/pbbuttonsd/etc/devfs/conf.d/pbbuttonsd dh_installdocs dh_installexamples dh_installmenu dh_installinit --init-script=pbbuttonsd --error-handler=true -u"start 12 2 3 4 5 . stop 88 1 ." dh_installcron dh_installman dh_installinfo dh_installlogcheck dh_installudev --priority=85 dh_installchangelogs ChangeLog dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps -p pbbuttonsd dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/source/0000775000000000000000000000000012271050532010465 5ustar debian/source/format0000664000000000000000000000001412270602013011667 0ustar 3.0 (quilt) debian/pbbuttonsd.init0000664000000000000000000000363412270603272012250 0ustar #! /bin/sh # # Debian startscript for pbbuttonsd ### BEGIN INIT INFO # Provides: pbbuttonsd # Required-Start: $syslog $local_fs $remote_fs # Should-Start: alsa # Required-Stop: $syslog $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: handle special hotkeys of Apple computers # Description: PBButtons is a program suite to handle the # special hotkeys of an Apple iBook, Powerbook or TiBook. # With this programs the keys for the display brightness, the volume of # speaker and headphone, the mute key and the eject key will do their job # as expected. # X-UnitedLinux-Default-Enabled: yes ### END INIT INFO # Exit if this system does not have a PMU chip. [ -e /proc/pmu ] || exit 0 . /lib/lsb/init-functions PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/pbbuttonsd CONF=/etc/pbbuttonsd.conf NAME=pbbuttonsd DESC=pbbuttonsd test -x $DAEMON || { log_failure_msg "$DAEMON not installed"; exit 0; } case "$1" in start) log_daemon_msg "Starting $DESC" start-stop-daemon --start --make-pidfile --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- --configfile=$CONF -d log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" start-stop-daemon --oknodo --quiet --stop --make-pidfile --pidfile \ /var/run/$NAME.pid --exec $DAEMON log_end_msg $? ;; reload) log_action_msg "Reloading $DESC configuration files" start-stop-daemon --stop --signal 1 --quiet --pidfile \ /var/run/$NAME.pid --exec $DAEMON ;; restart|force-reload) log_daemon_msg "Restarting $DESC" start-stop-daemon --stop --make-pidfile --pidfile \ /var/run/$NAME.pid --oknodo --exec $DAEMON sleep 1 start-stop-daemon --start --make-pidfile --pidfile \ /var/run/$NAME.pid --exec $DAEMON -- --configfile=$CONF -d log_end_msg $? ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 debian/pbbuttonsd.logcheck.ignore.workstation0000664000000000000000000000046412270601773016733 0ustar ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ pbbuttonsd\[[0-9]+\]: INFO: saving of config enabled to /etc/pbbuttonsd.conf.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ pbbuttonsd\[[0-9]+\]: INFO: pbbuttonsd \d\.\d\.\d\w?: ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ pbbuttonsd\[[0-9]+\]: INFO: Script '.*' launched and exited normally$ debian/pbbuttonsd-dev.dirs0000664000000000000000000000002412270601773013014 0ustar usr/lib usr/include debian/pbbuttonsd.files0000664000000000000000000000045712270601773012413 0ustar etc/pbbuttonsd.conf etc/power/* usr/bin/pbbuttonsd usr/bin/pbbcmd usr/share/man/man1/pbbuttonsd.1 usr/share/man/man1/pbbcmd.1 usr/share/man/man5/pbbuttonsd.conf.5 usr/share/locale/ca/LC_MESSAGES/pbbuttonsd.mo usr/share/locale/de/LC_MESSAGES/pbbuttonsd.mo usr/share/locale/es/LC_MESSAGES/pbbuttonsd.mo debian/control0000664000000000000000000000233612270605606010603 0ustar Source: pbbuttonsd Section: admin Priority: optional Maintainer: Ubuntu Core Developers XSBC-Original-Maintainer: Debian QA Group Build-Depends: debhelper (>= 9), bison, gettext, libasound2-dev, libglib2.0-dev, pkg-config Standards-Version: 3.9.5 Package: pbbuttonsd Architecture: powerpc Depends: ${misc:Depends}, ${shlibs:Depends}, hdparm, makedev (>= 2.3.1-78) | udev, lsb-base Conflicts: gtkpbbuttons(<< 0.6.2), pmud Description: PBButtons daemon to handle special hotkeys of Apple computers PBButtons is a program suite to handle the special hotkeys of an Apple iBook, Powerbook or TiBook. With this programs the keys for the display brightness, the volume of speaker and headphone, the mute key and the eject key will do their job as expected. Package: pbbuttonsd-dev Section: devel Architecture: powerpc Depends: ${misc:Depends}, pbbuttonsd (= ${binary:Version}) Description: Development files for PBButtons PBButtons is a program suite to handle the special hotkeys of an Apple iBook, Powerbook or TiBook. With this programs the keys for the display brightness, the volume of speaker and headphone, the mute key and the eject key will do their job as expected. debian/pbbuttonsd.doc0000664000000000000000000000002112270601773012041 0ustar BUGS README TODO