summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2010-03-07 12:39:28 +0000
committerBenedikt Boehm <hollow@gentoo.org>2010-03-07 12:39:28 +0000
commit6ca9ddf8712de3cac95306a3ea217a74e7033dec (patch)
tree3a9abb2fa20e0da4b364b8791ee6f0e19619fb7b /sys-apps/lomoco
parentMoving from dev-util to dev-vcs (diff)
downloadhistorical-6ca9ddf8712de3cac95306a3ea217a74e7033dec.tar.gz
historical-6ca9ddf8712de3cac95306a3ea217a74e7033dec.tar.bz2
historical-6ca9ddf8712de3cac95306a3ea217a74e7033dec.zip
fix udev issues: bug #156665 and #299739
Package-Manager: portage-2.2_rc63/cvs/Linux i686
Diffstat (limited to 'sys-apps/lomoco')
-rw-r--r--sys-apps/lomoco/ChangeLog11
-rw-r--r--sys-apps/lomoco/Manifest10
-rw-r--r--sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch99
-rw-r--r--sys-apps/lomoco/lomoco-1.0-r1.ebuild35
-rw-r--r--sys-apps/lomoco/lomoco-1.0-r2.ebuild12
-rw-r--r--sys-apps/lomoco/lomoco-1.0-r3.ebuild47
-rw-r--r--sys-apps/lomoco/metadata.xml9
7 files changed, 133 insertions, 90 deletions
diff --git a/sys-apps/lomoco/ChangeLog b/sys-apps/lomoco/ChangeLog
index 36c38ffe70fd..1c46ad92355c 100644
--- a/sys-apps/lomoco/ChangeLog
+++ b/sys-apps/lomoco/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/lomoco
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/ChangeLog,v 1.8 2009/05/16 09:21:59 robbat2 Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/ChangeLog,v 1.9 2010/03/07 12:39:27 hollow Exp $
+
+*lomoco-1.0-r3 (07 Mar 2010)
+
+ 07 Mar 2010; Benedikt Böhm <hollow@gentoo.org> -lomoco-1.0-r1.ebuild,
+ lomoco-1.0-r2.ebuild, +lomoco-1.0-r3.ebuild,
+ files/lomoco-1.0-updated-udev.patch, metadata.xml:
+ fix udev issues: bug #156665 and #299739
16 May 2009; Robin H. Johnson <robbat2@gentoo.org> lomoco-1.0-r1.ebuild,
lomoco-1.0-r2.ebuild:
diff --git a/sys-apps/lomoco/Manifest b/sys-apps/lomoco/Manifest
index 1a74b3915ea9..34b8c7dd0de3 100644
--- a/sys-apps/lomoco/Manifest
+++ b/sys-apps/lomoco/Manifest
@@ -1,8 +1,8 @@
AUX lomoco-1.0-gentoo-hardware-support.patch 8507 RMD160 b8aa867c6cb2d8ba99ecd06fcd4376fddb169fa8 SHA1 402beb179af3acc38bafb8df0d411981baa134c5 SHA256 b920281dd3d9926b7dd67a508cd1acfc02e200e52105ec6c075cd6999175c588
-AUX lomoco-1.0-updated-udev.patch 1450 RMD160 7dac684959afafce46667efabad17deb3516f7bc SHA1 40e6c9acea94e19157caeffaaea6e5c56af85333 SHA256 85e022427f8f8eb91d65d5f03a823accc40f50bbddbf62e5a64d2c26e04d4e37
+AUX lomoco-1.0-updated-udev.patch 2164 RMD160 20f086610acbab87309f6fe43be47aa70fc4e34e SHA1 c7adb7517ed4a4c76977b4148636f12f28fee8c5 SHA256 c95f2b5031de73b1f8d54c836c2b57ae2e9c9446f1a9cc793f3dda8599dca117
AUX lomoco.conf 59 RMD160 647b75dbd3393ba79c20a7a2084a62f42e8e3427 SHA1 720c00a8c791b1bfa3a0051af4df6ed21ff8c9a5 SHA256 229006f0d63cfa4a6c73c9db10accbc259b538b6b111e626d0b326c1fc9dc553
DIST lomoco-1.0.tar.gz 24573 RMD160 b918be68997e8a4a73b86097d57da7a12c02bb26 SHA1 bb2c43e3ca801358fb4f309a2adc6787bffb8e37 SHA256 e9e537e8bca6186f84b457394a9e934b89c36870c66aa202ed188c7aa24e9dcc
-EBUILD lomoco-1.0-r1.ebuild 904 RMD160 e86ffbae94d903617275023a7c4bf6861d4f72ce SHA1 b05ec021586b21d93c10bce3985dd6e8c52eaad3 SHA256 4c675155de828ddfe75ae532b9ab14f531b361cab845aa71f853f6d823e1cb98
-EBUILD lomoco-1.0-r2.ebuild 1227 RMD160 54fc01564193c5ca5d5e2f7790de2dd3e6d2a609 SHA1 7f7b901e199bc10bfe66bf0c9845cb71b51a46e2 SHA256 e5970f2c394d9a6b8285907d113356437abe91eab059cb909d3b3d9ed6b8bac9
-MISC ChangeLog 1494 RMD160 767121c21da03ef8b290aef631a4a615ac80d13d SHA1 1810049acb92cc086919e15957c309f73ad73ad7 SHA256 b570ec6ca43930cce1fc0e2f28402c945cff1bb756f1a2a454f20b4248ef1b6f
-MISC metadata.xml 252 RMD160 06bed8b4305c269efd0e7d6e8b98421f6727b52e SHA1 c0b686881ebc3f55919a4411166d9b79592f4a28 SHA256 250127f5c3f05dc266efad7a7ef3691f443ea83aa18588990dde5386ed6f01da
+EBUILD lomoco-1.0-r2.ebuild 1123 RMD160 1b6bcee57aeef84e8be6ddeb987ede6414b69e74 SHA1 4806757b6cc315ea32b22f47733f431f8690d5c2 SHA256 7c818e84e2ee953cf79a9e32a3b7a325c35f78b60b781426120a724d3534b817
+EBUILD lomoco-1.0-r3.ebuild 1142 RMD160 cfdf5cd25c831eda08c4d23a352877182510f4fb SHA1 91ed4451c7913f1d43045046c7b90923d8d5343c SHA256 185257b80482fdcf5752e144c50f34ee1a03285ba088e7b6c4e24759a08fb890
+MISC ChangeLog 1740 RMD160 f0bfb20c2bcf93d4aba9d2a8725c5c1bdac1c73b SHA1 80e700931fc82e96a2897578ad83fef03ea03ffc SHA256 545ac93acfead18af74a4e8fa8bf1f171b8246318d004ff09ef64dd5fc26978a
+MISC metadata.xml 236 RMD160 92f49f8275e75caf57b88a3172d5204eaa4e33ae SHA1 dd1a8550a514e55ab0ed6190ab4794bb090994f8 SHA256 56075995f83836ae824c7cb01931b98d6745f6d5a7764299c8262e801486b829
diff --git a/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch b/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch
index 708b80072a69..96509a6551f0 100644
--- a/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch
+++ b/sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch
@@ -1,51 +1,78 @@
-Index: lomoco-1.0/udev/toudev.awk
-===================================================================
---- lomoco-1.0.orig/udev/toudev.awk
-+++ lomoco-1.0/udev/toudev.awk
-@@ -1,20 +1,23 @@
+diff --git a/udev/toudev.awk b/udev/toudev.awk
+index 822421d..ada40e5 100644
+--- a/udev/toudev.awk
++++ b/udev/toudev.awk
+@@ -1,15 +1,20 @@
#!/bin/awk -f
BEGIN {
-- FS = ","
-- print "ACTION != \"add\", GOTO=\"lomoco_end\""
+ FS = ","
++ print "# udev.rules file for Logitech mouse control using lomoco"
++ print "#"
++ print ""
+ print "ACTION != \"add\", GOTO=\"lomoco_end\""
- print "SUBSYSTEM != \"usb\", GOTO=\"lomoco_end\""
- print "SYSFS{idVendor} != \"046d\", GOTO=\"lomoco_end\""
-- print ""
-+ FS = ","
-+ print "# udev.rules file for Logitech mouse control using lomoco"
-+ print "#"
-+ print ""
-+ print "ACTION != \"add\", GOTO=\"lomoco_end\""
-+ print "SUBSYSTEM != \"usb_device\", GOTO=\"lomoco_end\""
-+ print ""
++ print "SUBSYSTEM == \"usb\", ENV{DEVTYPE}==\"usb_device\", GOTO=\"lomoco_start\""
++ print "SUBSYSTEM != \"usb_device\", GOTO=\"lomoco_end\""
++ print ""
++ print "LABEL=\"lomoco_start\""
+ print ""
}
$1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ {
print "# " substr($3, index($3, "\"")) ", " $2
- print "SYSFS{idProduct}==\"" substr($1, index($1, "x")+1) \
-- "\", RUN=\"lomoco\""
-+ print "SYSFS{idVendor}==\"046d\", SYSFS{idProduct}==\"" substr($1,
-+index($1, "x")+1) \
-+ "\", RUN+=\"lomoco\""
-+ print ""
++ print "ATTRS{idVendor}==\"046d\", ATTRS{idProduct}==\"" substr($1, index($1, "x")+1) \
+ "\", RUN=\"lomoco\""
}
- END {
-- print ""
-- print "LABEL=\"lomoco_end\""
-+ print ""
-+ print "LABEL=\"lomoco_end\""
- }
--
-Index: lomoco-1.0/udev/udev.lomoco
-===================================================================
---- lomoco-1.0.orig/udev/udev.lomoco
-+++ lomoco-1.0/udev/udev.lomoco
-@@ -6,7 +6,7 @@ case "$DEVPATH" in
- bus=$(printf %03d ${dev%.*})
- dev=$(printf %03d ${dev#*.})
+diff --git a/udev/udev.lomoco b/udev/udev.lomoco
+index 9e55511..da896d9 100755
+--- a/udev/udev.lomoco
++++ b/udev/udev.lomoco
+@@ -1,26 +1,24 @@
+-#!/bin/bash
++#!/bin/sh
++#
++# udev helper script for the locomo utility
++#
+
+-case "$DEVPATH" in
+- *usbdev*.*)
+- dev=${DEVPATH##*usbdev}
+- bus=$(printf %03d ${dev%.*})
+- dev=$(printf %03d ${dev#*.})
++test -x /usr/bin/lomoco || exit 0
++test -r /etc/lomoco.conf || exit 0
- . /etc/sysconfig/logitech_mouse
-+ . /etc/lomoco.conf
++options=
++. /etc/lomoco.conf
- options=
+- options=
++if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
++ options="--$LOGITECH_MOUSE_RESOLUTION"
++fi
+
+- if [ -n "$LOGITECH_MOUSE_RESOLUTION" ]; then
+- options="--$LOGITECH_MOUSE_RESOLUTION"
+- fi
+-
+- if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then
+- options="$options --no-sms"
+- fi
+-
+- if [ -n "$options" ]; then
+- /usr/bin/lomoco -b $bus -d $dev $options
+- fi
+- ;;
+-esac 2>&1 | /bin/logger -t lomoco
++if [ -z "$LOGITECH_MOUSE_DISABLE_CC" -o "$LOGITECH_MOUSE_DISABLE_CC" = yes ]; then
++ options="$options --no-sms"
++fi
++if [ -n "$options" ]; then
++ /usr/bin/lomoco -b $BUSNUM -d $DEVNUM -p $ID_MODEL_ID $options 2>&1 | \
++ sed -e 's/^[[:blank:]]\+//' -e 's/ \+$//' -e '/^$/ d' | \
++ logger -t lomoco -p daemon.info
++fi
diff --git a/sys-apps/lomoco/lomoco-1.0-r1.ebuild b/sys-apps/lomoco/lomoco-1.0-r1.ebuild
deleted file mode 100644
index 9aae36d6c6b8..000000000000
--- a/sys-apps/lomoco/lomoco-1.0-r1.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/lomoco-1.0-r1.ebuild,v 1.3 2009/05/16 09:21:59 robbat2 Exp $
-
-inherit autotools eutils
-
-DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice \
-(or dual-personality mice plugged into the USB port). Visit the website for \
-specific available options."
-HOMEPAGE="http://lomoco.linux-gamers.net/"
-SRC_URI="http://lomoco.linux-gamers.net/files/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~x86"
-IUSE=""
-
-DEPEND="=virtual/libusb-0*"
-
-src_unpack() {
- unpack ${A}
- epatch ${FILESDIR}/${P}-gentoo-hardware-support.patch
- cd ${S}
- eautoreconf
-}
-
-src_compile() {
- econf
- emake || die "make failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
- dodoc AUTHORS ChangeLog NEWS README
-}
diff --git a/sys-apps/lomoco/lomoco-1.0-r2.ebuild b/sys-apps/lomoco/lomoco-1.0-r2.ebuild
index 0ddfdec2e312..92538f8b9fb4 100644
--- a/sys-apps/lomoco/lomoco-1.0-r2.ebuild
+++ b/sys-apps/lomoco/lomoco-1.0-r2.ebuild
@@ -1,12 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/lomoco-1.0-r2.ebuild,v 1.2 2009/05/16 09:21:59 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/lomoco-1.0-r2.ebuild,v 1.3 2010/03/07 12:39:27 hollow Exp $
inherit autotools eutils
-DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice \
-(or dual-personality mice plugged into the USB port). Visit the website for \
-specific available options."
+DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice."
HOMEPAGE="http://lomoco.linux-gamers.net/"
SRC_URI="http://lomoco.linux-gamers.net/files/${P}.tar.gz"
@@ -20,8 +18,8 @@ DEPEND="=virtual/libusb-0*"
src_unpack() {
unpack ${A}
cd "${S}"
- epatch ${FILESDIR}/${P}-gentoo-hardware-support.patch
- epatch ${FILESDIR}/${P}-updated-udev.patch
+ epatch "${FILESDIR}"/${P}-gentoo-hardware-support.patch
+ epatch "${FILESDIR}"/${P}-updated-udev.patch
eautoreconf
}
diff --git a/sys-apps/lomoco/lomoco-1.0-r3.ebuild b/sys-apps/lomoco/lomoco-1.0-r3.ebuild
new file mode 100644
index 000000000000..a68c8b94e14d
--- /dev/null
+++ b/sys-apps/lomoco/lomoco-1.0-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lomoco/lomoco-1.0-r3.ebuild,v 1.1 2010/03/07 12:39:27 hollow Exp $
+
+EAPI="2"
+
+inherit autotools eutils
+
+DESCRIPTION="Lomoco can configure vendor-specific options on Logitech USB mice."
+HOMEPAGE="http://lomoco.linux-gamers.net/"
+SRC_URI="http://lomoco.linux-gamers.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86"
+IUSE=""
+
+DEPEND="=virtual/libusb-0*"
+RDEPEND="${DEPEND} !<sys-fs/udev-114"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo-hardware-support.patch
+ epatch "${FILESDIR}"/${P}-updated-udev.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake || die "make failed"
+ awk -f udev/toudev.awk < src/lomoco.c > udev/40-lomoco.rules \
+ || die "failed to create udev rules"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ insinto /etc/udev/rules.d
+ doins udev/40-lomoco.rules
+
+ insinto /etc
+ doins "${FILESDIR}"/lomoco.conf
+
+ insinto /lib/udev
+ insopts -m 0755
+ newins udev/udev.lomoco lomoco
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/sys-apps/lomoco/metadata.xml b/sys-apps/lomoco/metadata.xml
index 22876d9273cd..9f3fdee2246b 100644
--- a/sys-apps/lomoco/metadata.xml
+++ b/sys-apps/lomoco/metadata.xml
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>no-herd</herd>
-<maintainer>
- <email>hollow@gentoo.org</email>
- <name>Benedikt Boehm</name>
-</maintainer>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
</pkgmetadata>