From owner-freebsd-net@FreeBSD.ORG Tue Apr 10 11:37:30 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D75716A401; Tue, 10 Apr 2007 11:37:30 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id 4A0EF13C459; Tue, 10 Apr 2007 11:37:30 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 2974A216D70; Tue, 10 Apr 2007 07:37:46 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 10 Apr 2007 07:37:30 -0400 X-Sasl-enc: 2YRisFKDe7eFPFMBzwjuIc6SVBBaNDq/aYc09ynetqVb 1176205050 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id E97C51628E; Tue, 10 Apr 2007 07:37:29 -0400 (EDT) Message-ID: <461B76F8.3050003@incunabulum.net> Date: Tue, 10 Apr 2007 12:37:28 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kde@FreeBSD.org Subject: [CODE DROP] KDE support for Avahi service browsing on FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 11:37:30 -0000 Hi, As part of my ongoing work to support Zero-configuration networking in FreeBSD, please check out the following patches. I have been able to browse and connect to services from with the KDE environment using these. At the moment, the basic kernel support for Zeroconf/Bonjour is in place in FreeBSD. The next challenge there is to support address scope and preference for IPv4. http://people.freebsd.org/~bms/dump/nss_mdns.diff is a patch for the FreeBSD port of nss_mdns which I may commit shortly as it fixes a dynamic symbol issue found by Pat Lashley. nss_mdns must be installed and configured in FreeBSD's /etc/nsswitch.conf files before proceeding. http://people.freebsd.org/~bms/dump/avahi-qt3.diff is a patch for the FreeBSD avahi port to build and install the QT3 bindings for Avahi. After applying this patch and reinstalling the avahi port, please manually change the following file's 'prefix' line to point to ${X11BASE}, at ${LOCALBASE}libdata/pkgconfig/avahi-qt3.pc. e.g. "prefix=/usr/local" would become "prefix=/usr/X11R6". This is to allow kdnssd-avahi's configure script to find QT's Meta-object compiler (moc) which the FreeBSD ports system installs under ${X11BASE} by default. [Help from a ports committer to convert this patch into a 'slave port' would be very appreciated.] http://people.freebsd.org/~bms/dump/kdnssd_avahi.tar is a port for kdnssd-avahi. Installing this port will overwrite the default libkdnssd.so.1 library which is installed by the kdelibs port. After applying both of these changes to your system, you must completely restart KDE for them to take effect. Please read the pkg-message file in kdnssd_avahi.tar for step-by-step information on how to test the Avahi support for KDE in FreeBSD. I would greatly welcome your further testing and feedback. I apologise in advance for the unpolished nature of this work, however, integration of Avahi with KDE is an ongoing challenge for many other open source projects, and I would hope that the loose ends on FreeBSD become tied together in the near future. Thanks again, BMS