Fdclone version 3.00d - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    fdclone  most recent diff


    version 3.00d

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


      The fdclone Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: FDclone
      Version: 3.00d
      Category: sysutils shells
      Maintainers: takanori openmaintainer
      Description: File & Directory Maintenance Tool
      Long Description: ${description}
      Platform: darwin
      Homepage: http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
      Master Sites: http://hp.vector.co.jp/authors/VA012337/soft/fd/ ftp://ftp.unixusers.net/src/fdclone/
      distname FD-${version}
      Patch Files: patch-Makefile.in.diff
      Checksums: md5 a8c7a2aedf6ef533dd1d8f8b3cc7d623 sha1 eadea69ebed8ccb618c30becd52e32de7e8583a4 rmd160 65a0964eceeffa8292afbec295c13a8f72d6bad1

      depends_lib port:ncurses

      set editor ""
      set pager ""

      configure {
      if {[variant_isset nojpnmes]} {
      system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
      }

      if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
      if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }

      if {[variant_isset autosort]} {
      reinplace "s|SORTTYPE\t\t0|SORTTYPE\t\t1|" ${worksrcpath}/fd.h
      reinplace "s|DISPLAYMODE\t\t0|DISPLAYMODE\t\t3|" ${worksrcpath}/fd.h
      reinplace "s|SORTTREE\t\t0|SORTTREE\t\t1|" ${worksrcpath}/fd.h
      }
      }

      use_parallel_build yes
      build.args CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} -lncurses"

      destroot.args BUILD=${destroot} PREFIX=${prefix}
      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      foreach f {FAQ* HISTORY* Install* LICENSES* README* TECHKNOW* ToAdmin* *.cat} {
      eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
      }
      xinstall -m 644 ${worksrcpath}/_fdrc ${destroot}${prefix}/etc/fd2rc.dist
      }

      Variant: universal {
      build.args CONFDIR=${prefix}/etc PREFIX=${prefix} CFLAGS="${configure.cflags} ${configure.universal_cflags}" CPPFLAGS="${configure.cppflags} -I${prefix}/include/ncurses" LDFLAGS="${configure.ldflags} ${configure.universal_ldflags} -lncurses"
      }
      Variant: nojpnmes description {Do not show Japanese message} {}
      Variant: emacs conflicts vim description {Use emacs as default editor} {set editor emacs}
      Variant: vim conflicts emacs description {Use vim as default editor} {set editor vim}
      Variant: lv conflicts less jless description {Use lv as default pager} {set pager lv}
      Variant: less conflicts lv jless description {Use less as default pager} {set pager less}
      Variant: jless conflicts lv less description {Use jless as default pager} {set pager jless}
      Variant: autosort description {Sort files alphabetically automatically} {}

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex FD-(\[0-9.a-z\]+)\\.tar

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.