[haiku-commits] r35172 - haiku/trunk/build/jam

Author: stippi
Date: 2010-01-19 19:25:48 +0100 (Tue, 19 Jan 2010)
New Revision: 35172
Changeset: http://dev.haiku-os.org/changeset/35172/haiku

Modified:
   haiku/trunk/build/jam/OptionalPackageDependencies
   haiku/trunk/build/jam/OptionalPackages
Log:
Added "NetFS" OptionalPackage.

You will want to edit /boot/home/config/settings/kernel/netfs-server before you
run netfs_server for the first time (or use netfs_server_prefs on the command
line, see below).

To run the server:
$ /system/servers/netfs_server &

To run the client:
$ /system/servers/authentication_server &
$ mkdir /dummy
$ mount -t userlandfs -p "netfs """ /dummy

A "Network" icon will appear on your desktop. Remote servers will appear inside
the "Network" folder (host name). Inside a folder for a server are the shares
of that server. (I.e. what has been defined as share in that respective server's
netfs-server driver settings file). netfs_server has actually a new settings
file format, you can create settings by using "netfs_server_prefs --help" on the
command line. Have fun!


Modified: haiku/trunk/build/jam/OptionalPackageDependencies
===================================================================
--- haiku/trunk/build/jam/OptionalPackageDependencies   2010-01-19 17:49:45 UTC 
(rev 35171)
+++ haiku/trunk/build/jam/OptionalPackageDependencies   2010-01-19 18:25:48 UTC 
(rev 35172)
@@ -16,3 +16,4 @@
 OptionalPackageDependencies Mercurial : Python ;
 OptionalPackageDependencies Git : Expat Curl OpenSSL ;
 OptionalPackageDependencies Curl : OpenSSL ;
+OptionalPackageDependencies NetFS : UserlandFS ;

Modified: haiku/trunk/build/jam/OptionalPackages
===================================================================
--- haiku/trunk/build/jam/OptionalPackages      2010-01-19 17:49:45 UTC (rev 
35171)
+++ haiku/trunk/build/jam/OptionalPackages      2010-01-19 18:25:48 UTC (rev 
35172)
@@ -41,6 +41,7 @@
 #      Mercurial                               - the distributed version 
control system
 #      Nano                                    - the command line text editor
 #      Neon                                    - support libraries used for 
example by SVN
+#      NetFS                                   - the native networked file 
system components
 #      NetSurf                                 - the web browser
 #      OCaml                                   - the Objective Caml language
 #      OpenSound                               - additional audio driver 
package
@@ -651,6 +652,35 @@
 }
 
 
+# NetFS network file system
+if [ IsOptionalHaikuImagePackageAdded NetFS ] {
+       # userlandfs module
+       AddFilesToHaikuImage home config add-ons userlandfs : netfs ;
+
+       # servers
+       AddFilesToHaikuImage system servers : netfs_server ;
+       AddFilesToHaikuImage system servers : authentication_server ;
+
+       # tools
+       AddFilesToHaikuImage system bin : netfs_config ;
+       AddFilesToHaikuImage system bin : netfs_server_prefs ;
+
+       #example settings for netfs_server
+       local netfsServerSettingsFiles = <driver-settings>netfs-server ;
+       SEARCH on $(netfsServerSettingsFiles)
+               = [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems netfs 
] ;
+       AddFilesToHaikuImage home config settings kernel drivers
+       : $(netfsServerSettingsFiles) ;
+
+       #userlandfs settings are needed for netfs_config to work (ioctls)
+       local userlandfsServerSettingsFiles = <driver-settings>userlandfs ;
+       SEARCH on $(userlandfsServerSettingsFiles)
+               = [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems 
userlandfs ] ;
+       AddFilesToHaikuImage home config settings kernel drivers
+       : $(userlandfsServerSettingsFiles) ;
+}
+
+
 # NetSurf web browser
 if [ IsOptionalHaikuImagePackageAdded NetSurf ] {
        if $(TARGET_ARCH) != x86 {


Other related posts: