Download and Install file version 4.25 on Mac OS X
Tuesday the 8th of July, 2008

    file  most recent diff


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



      # $Id: Portfile 38089 2008-07-06 07:27:23Z jmr macports.org $

      PortSystem 1.0

      Name: file
      Version: 4.25
      Category: sysutils
      Maintainers: nomaintainer
      Description: File - determine file type
      Long Description: File tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be printed.

      Homepage: ftp://ftp.astron.com/pub/${name}/
      Platform: darwin
      master_sites ftp://ftp.fu-berlin.de/unix/tools/${name}/ ftp://ftp.astron.com/pub/${name}/ ftp://ftp.gw.com/mirrors/pub/unix/${name}/
      checksums md5 cdf1f90d2704e71118353c16c19898ba sha1 0d4a0b678a4c13fbc38cd0ea633ef4df60d74f22 rmd160 c877a223a1dbdfd38c6f5ac385b533e8c5223fe1

      patchfiles patch-lzma.diff

      configure.args --mandir=${prefix}/share/man --enable-fsect-man5 --program-prefix=g
      depends_lib port:zlib

      Variant: with_default_names description {don't prefix names with a 'g'} {
      post-destroot {
      foreach d {bin share/man/man1 share/man/man3 share/man/man5} {
      foreach a [glob -directory ${destroot}${prefix}/$d g*] {
      regexp /g(.+)\$ $a dummy b
      file link -hard ${destroot}${prefix}/$d/$b $a
      }
      }
      }
      }

      livecheck.check md5
      livecheck.url ftp://ftp.fu-berlin.de/unix/tools/${name}/
      livecheck.md5 600d214efae30987572951c14fa31863

    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/file
      % sudo port install file
      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 file
      ---> Verifying checksum for file
      ---> Extracting file
      ---> Configuring file
      ---> Building file with target all
      ---> Staging file into destroot
      ---> Installing file
    - 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 file with these commands:
      %  man file
      % apropos file
      % which file
      % locate file

     Where to find more information:

    Darwin Ports



    image test