Tftp-hpa version 0.48 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    tftp-hpa  most recent diff


    version 0.48

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


      The tftp-hpa Portfile 45798 2009-01-22 08:07:08Z digdog macports.org $

      PortSystem 1.0

      Name: tftp-hpa
      Version: 0.48
      Revision: 2
      Category: net
      Maintainers: markd digdog
      Description: Enhanced port of the BSD TFTP server
      Platform: darwin
      Long Description: tftp-hpa is an enhanced version of the BSD TFTP client and server, possessing a number of bugfixes and enhancements over the original. It has been made portable and will work on pretty much any modern Unix variant.

      Homepage: http://www.kernel.org/pub/software/network/tftp/
      Master Sites: ${homepage}
      use_bzip2 yes
      Checksums: md5 f2e0a1ca0c49ae46ecad26a54df3e887

      set tftp-root ${prefix}/var/${name}/

      Variant: enable_upload description {If invoked with the server variant, tftp uploads are enabled; without the server variant, this variant has no effect} {}

      Variant: server description {Install launchd scripts to run tftpd at system boot} {
      startupitem.create yes
      startupitem.name tftpd
      if { ! [variant_isset enable_upload] } {
      startupitem.executable ${prefix}/sbin/tftpd -L -s ${tftp-root}
      } else {
      startupitem.executable ${prefix}/sbin/tftpd -L -c -s ${tftp-root}
      }
      }

      configure.args --mandir=\\\${prefix}/share/man

      destroot.destdir prefix=${destroot}${prefix}

      post-destroot {
      file rename ${destroot}${prefix}/sbin/in.tftpd ${destroot}${prefix}/sbin/tftpd

      file delete ${destroot}${prefix}/share/man/man8/tftpd.8
      file rename ${destroot}${prefix}/share/man/man8/in.tftpd.8 ${destroot}${prefix}/share/man/man8/tftpd.8

      reinplace "s|in.tftpd|tftpd|g" ${destroot}${prefix}/share/man/man8/tftpd.8

      xinstall -m 777 -d ${tftp-root}
      destroot.keepdirs ${tftp-root}
      }

      # tftp-ha setup instructions
      post-install {
      ui_msg "\n

      ***** Setup Instructions *****

      NOTE: By default, tftp-hpa listens to the tftp port specified in /etc/services (port 69)
      on all local addresses.

      To run tftpd manually for download only access, use this command:
      sudo tftpd -L -s

      To run tftpd manually and support tftp uploads, add \"-c\" to the command:
      sudo tftpd -L -c -s

      You may run tftpd at system boot using the startupitem if you installed tftp-hpa
      using the server variant. To load the startupitem using launchctl:
      sudo launchctl load -w /Library/LaunchDaemons/org.macports.tftpd.plist

      NOTE: When loading tftp-hpa using launchctl, make sure to place the files you want to serve
      in ${tftp-root}, because that is the location set in the StartupItem.

      *******************************

      If you wish to run tftpd in inetd mode, you may make an inetd compatible .plist
      file and replace the one installed by MacPorts in /Library/LaunchDaemons. You
      may use /System/Library/LaunchDaemons/tftp.plist as a template.

      \n"
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.