Py26-openssl version 0.9 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    py26-openssl  most recent diff


    version 0.9

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The py26-openssl Portfile 58260 2009-09-25 00:56:08Z raimue macports.org $

      PortSystem 1.0
      PortGroup python26 1.0

      Name: py26-openssl
      Version: 0.9
      Category: python devel security
      Maintainers: mcalhoun openmaintainer
      Platform: darwin freebsd
      Description: python wrapper around the OpenSSL library
      Long Description: This python module is a rather thin wrapper around (a subset of) the OpenSSL library. With thin wrapper a lot of the object methods do nothing more than calling a corresponding function in the OpenSSL library.

      Homepage: http://pyopenssl.sourceforge.net/
      Master Sites: sourceforge:pyopenssl
      distname pyOpenSSL-${version}

      Checksums: md5 5bf282b2d6a03af921920c34079580f2 sha1 d39eeb26c73e4b96804e1e403e2136062910b6c2 rmd160 fec72e02a922ffb37a9c66ed809c573b778138db

      depends_lib-append port:openssl

      post-patch {
      reinplace "s|/sw/|${prefix}/|g" ${worksrcpath}/setup.py
      reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|g" ${worksrcpath}/examples/proxy.py
      }

      post-destroot {
      xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog INSTALL README TODO ${destroot}${prefix}/share/doc/${name}

      file delete ${destroot}${prefix}/share/doc/${name}/examples
      file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
      }

      Variant: doc description {build html documentation} {
      depends_build-append port:latex2html

      post-patch {
      # Ensure that the correct binaries are used.
      # Some are not actually invoked because only the html documentation is created.
      foreach bin {bibtex dvips latex latex2html lynx makeindex pdflatex perl python} {
      reinplace "s| = \"${bin}\"| = \"${prefix}/bin/${bin}\"|g" ${worksrcpath}/doc/tools/mkhowto
      }

      # Ensure that the correct python is used.
      reinplace "s|${prefix}/bin/python|${prefix}/bin/python2.6|g" ${worksrcpath}/doc/tools/mkhowto
      reinplace "s| python | ${prefix}/bin/python2.6 |g" ${worksrcpath}/doc/Makefile
      }

      post-build {
      system "cd ${worksrcpath}/doc && /usr/bin/make html"
      }

      post-destroot {
      file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.