From owner-freebsd-gnome@FreeBSD.ORG Wed Apr 27 03:14:49 2005 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE30616A4CF for ; Wed, 27 Apr 2005 03:14:49 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7319343D60 for ; Wed, 27 Apr 2005 03:14:49 +0000 (GMT) (envelope-from corsmith@gmail.com) Received: by wproxy.gmail.com with SMTP id 68so180810wra for ; Tue, 26 Apr 2005 20:14:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Sl4qQ8BCdHxc2mNxgCQCXrYU9msl+xcEFMl2VpDgvERpHjsgQmyMinA6s6YvRNtEU91kqjZpl0BXMQhQDD9iznby9I/+myPqn284E4vF5jHAihvLjDjyXJr/u9JbWXuLqUInYRPurDq4Bfu98ZR6PD7qYSqnWtykzOQoYFt+azw= Received: by 10.54.3.42 with SMTP id 42mr294019wrc; Tue, 26 Apr 2005 20:14:48 -0700 (PDT) Received: by 10.54.34.68 with HTTP; Tue, 26 Apr 2005 20:14:48 -0700 (PDT) Message-ID: <8061fbee05042620144e6271dd@mail.gmail.com> Date: Tue, 26 Apr 2005 23:14:48 -0400 From: Corey Smith To: gnome@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2371_10762063.1114571688860" Subject: Patch to gnomepilot2 for USB support under FreeBSD 5.x X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Corey Smith List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 03:14:50 -0000 ------=_Part_2371_10762063.1114571688860 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Attached is a patch to add FreeBSD 5.x USB support to gpilotd (/usr/ports/palm/gnomepilot2). I've been using it for about a week without any issue. It is nice to be able to sync my Treo 650 to evolution ;) The last entry is a little funny but I figured I'd let the professionals clean it up. Thanks for your time -Corey Smith ------=_Part_2371_10762063.1114571688860 Content-Type: application/octet-stream; name="patch-ab" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-ab" LS0tIGdwaWxvdGQvZ3BpbG90ZC5jLm9yaWcJVGh1IFNlcCAgMiAxMTo0Mzo0NyAyMDA0CisrKyBn cGlsb3RkL2dwaWxvdGQuYwlTdW4gQXByIDI0IDE1OjU2OjE0IDIwMDUKQEAgLTI3LDYgKzI3LDgg QEAKICNpbmNsdWRlICJjb25maWcuaCIKICNlbmRpZgogCisjZGVmaW5lIGZyZWVic2QKKwogLyog Zm9yIGNyeXB0ICgpICovCiAjaWZkZWYgVVNFX1hPUEVOX1NPVVJDRQogI2lmbmRlZiBfWE9QRU5f U09VUkNFCkBAIC05MDMsNyArOTA1LDcgQEAKIAl9CiAJCiAJZmNsb3NlIChmKTsKLQkKKwogCWlm ICh2aXNvcl9leGlzdHMpIHsKIAkJbCA9IGNvbnRleHQtPmRldmljZXM7CiAJCXdoaWxlIChsKSB7 CkBAIC05MjgsNiArOTMwLDQ5IEBACiB9CiAKICNlbmRpZgorI2lmZGVmIGZyZWVic2QKK3N0YXRp YyBnYm9vbGVhbgordmlzb3JfZGV2aWNlc190aW1lb3V0IChncG9pbnRlciBkYXRhKQoreworCUdQ aWxvdENvbnRleHQgKmNvbnRleHQgPSBkYXRhOworCUdQaWxvdERldmljZSAqZGV2aWNlOworCUdM aXN0ICpsOworCWludCBpOworCWdib29sZWFuIHZpc29yX2V4aXN0cyA9IEZBTFNFLCB2aXNvcl9u ZXQgPSBUUlVFOworCisJZ19hc3NlcnQgKGNvbnRleHQgIT0gTlVMTCk7CisKKwlpZiAo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