Samba4 version 4.0.0tp5 - How to Download and Install on Mac OS X
Friday the 19th of March, 2010

    version 4.0.0tp5

      View the most recent changes for the samba4 port at: samba4.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for samba4.
      The raw portfile for samba4 4.0.0tp5 is located here:
      http://samba4.darwinports.com/dports/net/samba4/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/samba4


      The samba4 Portfile 57850 2009-09-17 14:52:57Z mww macports.org $

      PortSystem 1.0

      Name: samba4
      Version: 4.0.0tp5
      Category: net
      Platform: darwin
      Maintainers: mww
      Description: SMB/CIFS server and client, ALPHA release
      Long Description: Samba is an software suite that provides seamless file and print services to SMB/CIFS clients. This is an ALPHA release!

      Homepage: http://www.samba.org/
      Master Sites: http://download.samba.org/samba/ftp/samba4/ ftp://de.samba.org/samba.org/samba4/
      distname samba-${version}
      Checksums: md5 dbc2e04455d67b01d2020808065b96df sha1 8897cc7a824a594b3543245cdbbceaea32e9e08d rmd160 1870f67aa851751e381a3b03dadfa1d0afa28a12

      depends_lib port:gnutls port:readline port:libiconv port:popt port:sqlite3 port:zlib port:gettext

      worksrcdir samba-${version}/source

      configure.args --with-fhs --mandir=${prefix}/share/man --with-libiconv=${prefix} --with-readline=${prefix} --with-sqlite3

      destroot.target-append installman
      post-destroot {
      # add a postfix of '4' to all executables to avoid file conflicts
      foreach dir {bin sbin} {
      foreach bin [glob -directory "${destroot}${prefix}/${dir}" -type f *] {
      file rename "${bin}" "${bin}4"
      }
      }
      # ..and also to the manpages
      foreach dir [glob -directory "${destroot}${prefix}/share/man" "man\[138\]"] {
      foreach man [glob -directory "${dir}" -type f *] {
      file rename "${man}" [string range "${man}" 0 [expr [string last . "${man}"] - 1]]4[string range "${man}" [string last . "${man}"] [string length "${man}"]]
      }
      }
      }

      livecheck.type regex
      livecheck.url http://us4.samba.org/samba/ftp/samba4/?M=D
      livecheck.regex samba-(\[0-9a-z.\]+)\\.tar\\.gz


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/samba4
      % sudo port install samba4
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching samba4
      ---> Verifying checksum for samba4
      ---> Extracting samba4
      ---> Configuring samba4
      ---> Building samba4 with target all
      ---> Staging samba4 into destroot
      ---> Installing samba4
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using samba4 with these commands:
      %  man samba4
      % apropos samba4
      % which samba4
      % locate samba4

     Where to find more information:

    Darwin Ports



    Lightbox this page.