From owner-freebsd-gnome@FreeBSD.ORG Wed Jun 23 04:39:20 2004 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 5AA8516A4CF for ; Wed, 23 Jun 2004 04:39:20 +0000 (GMT) Received: from straycat.dhs.org (h0050da134090.ne.client2.attbi.com [24.91.148.154]) by mx1.FreeBSD.org (Postfix) with SMTP id 949BD43D4C for ; Wed, 23 Jun 2004 04:39:19 +0000 (GMT) (envelope-from tmclaugh@sdf.lonestar.org) Received: (qmail 26447 invoked from network); 23 Jun 2004 04:39:19 -0000 Received: from compass.straycat.dhs.org (192.168.1.32) by alexandria.straycat.dhs.org with SMTP; 23 Jun 2004 04:39:19 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-send-pr-version: gtk-send-pr 0.3.3 X-GNATS-Notify: Date: Wed, 23 Jun 2004 00:39:19 -0400 From: "Tom McLaughlin" Message-Id: <1087965559.0@compass.straycat.dhs.org> To: "FreeBSD gnats submit" cc: gnome@freebsd.org Subject: www/firefox: Add WITH_SMB knob to firefox X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 04:39:20 -0000 >Submitter-Id: current-users >Originator: Tom McLaughlin >Organization: >Confidential: no >Synopsis: www/firefox: Add WITH_SMB knob to firefox >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 5.2-CURRENT i386 >Environment: System: FreeBSD 5.2-CURRENT #0: Thu Jun 17 10:22:21 EDT 2004 root@compass.straycat.dhs.org:/usr/obj/usr/src/sys/COMPASS >Description: Attached patch adds a WITH_SMB knob, disabled by default, to the firefox port to build the gnomevfs extension that can use gnome-vfs to handle protocols not natively handled by mozilla, (ex. smb, sftp) A package message is also included to note a few known bugs and usage issues when using this extension. Maintainer mailinglist CC'ed on PR. >How-To-Repeat: >Fix: --- mozilla_gnomevfs.diff begins here --- diff -Nur firefox.orig/Makefile firefox/Makefile --- firefox.orig/Makefile Sun Jun 20 15:50:26 2004 +++ firefox/Makefile Wed Jun 23 00:10:04 2004 @@ -53,7 +53,8 @@ HEADERS "Install headers and IDL files" off \ LOGGING "Enable additional log messages" off \ OPTIMIZED_CFLAGS "Enable some additional optimizations" off \ - XFT "Enable support for anti-aliased fonts" on + XFT "Enable support for anti-aliased fonts" on \ + SMB "Enable smb:// URI support using gnomevfs" off .include @@ -79,6 +80,11 @@ LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft .endif # !defined(WITHOUT_XFT) +.if defined(WITH_SMB) +USE_GNOME+= gnomevfs2 +CONFIGURE_ENV+= WITH_SMB=yes +.endif # defined(WITH_SMB) + CPPFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include CFLAGS+= ${PTHREAD_CFLAGS} LDFLAGS+= -L${X11BASE}/lib @@ -205,5 +211,9 @@ fi; \ done; \ fi + +.if defined(WITH_SMB) + @${CAT} pkg-message.gnomevfs +.endif .include diff -Nur firefox.orig/files/mozconfig.in firefox/files/mozconfig.in --- firefox.orig/files/mozconfig.in Sun Jun 20 15:50:26 2004 +++ firefox/files/mozconfig.in Mon Jun 21 22:19:58 2004 @@ -42,7 +42,7 @@ ac_add_options --disable-profilesharing ac_add_options --disable-installer ac_add_options --enable-image-decoders=png,gif,jpeg,bmp -ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices,inspector,venkman +ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices,inspector,venkman,gnomevfs ###################################################################### # conditional from port Makefile #if test -n "$WITH_REORDER"; then @@ -68,4 +68,7 @@ else ac_add_options --disable-xft fi # test -z "$WITHOUT_XFT" +if test -z "$WITH_SMB"; then + ac_add_options --disable-gnomevfs +fi # test -n "$WITH_SMB" ###################################################################### diff -Nur firefox.orig/pkg-message.gnomevfs firefox/pkg-message.gnomevfs --- firefox.orig/pkg-message.gnomevfs Wed Dec 31 19:00:00 1969 +++ firefox/pkg-message.gnomevfs Tue Jun 22 22:13:32 2004 @@ -0,0 +1,20 @@ +====================================================================== +GNOMEVFS SUPPORT: +It is new and currently has issues to be ironed out. + +You must delete your components registry for gnomevfs to register: + +rm ~/.mozilla/firefox/default.*/compreg.dat + +SMB issues: +Network group, machine, and share browsing does not work correctly. + +SFTP: +Only sftp access using public key authentication works. To easily +setup public key authentication to "remote_host": + +ssh-keygen -t dsa +cat ~/.ssh/id_dsa.pub | ssh remote_host "cat >> .ssh/authorized_keys" + +The SSH sever on remote_host must allow pub key authentication. +====================================================================== --- mozilla_gnomevfs.diff ends here ---