Certbot port?

Ben Greenfield ben at cogs.com
Mon Jan 2 14:13:08 CET 2017

Hey All, Marius,

I wanted to look at letsencrypt and found this string and used it a as starting point.

I used the Portfiles from:

https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile <https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile>

I then kept adding the other Portfiles to my local repository from his python directory until it installed.

Now that it is installed when I run it I appear to be missing some dependencies within the python environment.
I would like to add the pyrfc3339 first but I’m not sure how to go about it.



slim% sudo ls -la /opt/local/bin/certbot-2.7
lrwxr-xr-x  1 root  admin  71 Dec 18 15:40 /opt/local/bin/certbot-2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/certbot
slim% sudo /opt/local/bin/certbot-2.7 
Traceback (most recent call last):
  File "/opt/local/bin/certbot-2.7", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyrfc3339' distribution was not found and is required by certbot

> On Nov 21, 2016, at 7:03 PM, Marius Schamschula <lists at schamschula.com> wrote:
> Mike,
> I have py-certbot installed locally, using MacPorts for all prerequisites as well. I haven’t uploaded it to the macports-ports repository, as I no longer have a web server running macOS, so I have not tested most current versions.
> See https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile <https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile>
> On Nov 21, 2016, at 5:34 PM, Mike Savory <msavory1 at nzbox.com <mailto:msavory1 at nzbox.com>> wrote:
>> Hi Bill
>> Looks like the certbot-auto also has some support for Macports
>>     curl -O https://dl.eff.org/certbot-auto <https://dl.eff.org/certbot-auto>
>> LINE 435:
>> BootstrapMac() {
>>   if hash brew 2>/dev/null; then
>>     echo "Using Homebrew to install dependencies..."
>>     pkgman=brew
>>     pkgcmd="brew install"
>>   elif hash port 2>/dev/null; then
>>     echo "Using MacPorts to install dependencies..."
>>     pkgman=port
>>     pkgcmd="$SUDO port install"
>>   else
>>     echo "No Homebrew/MacPorts; installing Homebrew..."
>>     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install <https://raw.githubusercontent.com/Homebrew/install/master/install>)"
>>     pkgman=brew
>>     pkgcmd="brew install"
>>   fi
>> Although it looks like it insists on setting up a python virtualenv for you. and then pulls in python dependancies with pip, which is not the normal macports way.
>> https://letsencrypt.readthedocs.org/en/latest/contributing.html#prerequisites <https://letsencrypt.readthedocs.org/en/latest/contributing.html#prerequisites>
>> I'll set up a VM and try it and let you know (don't want to break my main Mac).
>> Mike
>>> On 22/11/2016, at 10:38 AM, Bill Christensen <billc_lists at greenbuilder.com <mailto:billc_lists at greenbuilder.com>> wrote:
>>> Any chance of a Certbot port?  https://certbot.eff.org/ <https://certbot.eff.org/>
>>> They've got an install with Homebrew, but I'd rather do everything with MacPorts.  
>>> (yeah, I know, I could learn to build ports myself and become the maintainer.  And maybe I will at some point, but not right now)
> Marius
> --
> Marius Schamschula

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20170102/adbc60a8/attachment.html>

More information about the macports-users mailing list