Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2004 00:39:19 -0400
From:      "Tom McLaughlin" <tmclaugh@sdf.lonestar.org>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc:        gnome@freebsd.org
Subject:   www/firefox: Add WITH_SMB knob to firefox
Message-ID:  <1087965559.0@compass.straycat.dhs.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
 
@@ -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 <bsd.port.post.mk>
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 ---





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1087965559.0>