Lsh version 1.5.42 - How to Download and Install on Mac OS X
Monday the 22nd of March, 2010

    version 1.5.42

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


      The lsh Portfile 30239 2007-10-23 01:55:09Z jmpp macports.org $

      PortSystem 1.0
      Name: lsh
      Version: 1.5.4
      Revision: 0
      Description: A GNU implementation of the Secure Shell protocols
      Long Description: lsh is a free implementation (in the GNU sense) of the ssh version 2 protocol, currently being standardised by the IETF SECSH working group
      Category: net
      Maintainers: nomaintainer
      Platform: darwin
      Homepage: http://www.lysator.liu.se/~nisse/lsh/

      Master Sites: http://www.lysator.liu.se/~nisse/archive/ ftp://ftp.lysator.liu.se/pub/security/lsh/
      Checksums: md5 5cb5bccf17e7819a6db3e447854a310c
      Patch Files: patch-src-argp-Makefile.in.diff patch-src-argp-argp-pvh.c.diff patch-src-argp-argp-ba.c.diff patch-src-nettle-configure.diff patch-src-argp-argp-pv.c.diff patch-src-spki-configure.diff patch-src-lsh_pam_checkpw.c.diff

      depends_lib lib:liboop:liboop lib:libgmp:gmp lib:libreadline:readline

      set defaultcflags "-I${prefix}/include"
      set defaultconfigureargs "--disable-datafellows-workarounds --with-include-path=${prefix}/include --with-lib-path=${prefix}/lib --with-tcpwrappers --with-pam --disable-kerberos"


      platform darwin {
      post-extract {
      system "mkdir -p ${workpath}/paminclude"
      system "ln -sf /usr/include/pam ${workpath}/paminclude/security"
      }

      patchfiles-append patch-src-unix_user.c.diff

      post-patch {
      # fix time stamps
      system "touch \"${worksrcpath}/src/unix_user.c.x\""
      }

      set platformcflags "-I${workpath}/paminclude"
      configure.args ${defaultconfigureargs} CPPFLAGS="${defaultcflags} ${platformcflags}" LDFLAGS="-L${prefix}/lib"

      post-install {
      ui_msg "Additionally, for PAM, you need to copy /etc/pam.d/sshd to"
      ui_msg " /etc/pam.d/lshd, or use another config with pam_securityserver.so."
      }

      }

      configure.args ${defaultconfigureargs} CPPFLAGS="${defaultcflags}" LDFLAGS="-L${prefix}/lib"


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.