On Jun 6, 2009, at 9:35 AM, Rainer Müller wrote:

On 2009-06-06 18:29, Bradley Giesbrecht wrote:
I'm building a fail2ban Portfile.

fail2ban is python application.

It resides as security/py-fail2ban.

I originally had my Portfile at security/fail2ban.

I haven't created any python ports. Is there a preference in macports
for the naming of a python application?

py-*, py25-* and py26-* are used for python modules. There is no need to
name a port like this just because it uses python.

Is so, when I change the name to py-fail2ban and add "distname
fail2ban" my download checksum fails so I'm assuming I need to set
more port vars.

Usually you need distname to be set like ${name}-${version}. Also it
should print an error message which file failed the checksum test, so
you can see what has been fetched.

Rainer

Thanks.

I have added fail2ban to "PortGroup     python26 1.0".

This doesn't seem to create a dependency on python, at least I don't see python in "port installed".

I'm guessing since I didn't add a dependency on python26 ports used Apples python to build and that might be the cause of filesystem violations.

Looks like fail2ban needs nothing other then python.

Do I need to a depends_lib port:python26?

Looks like PortGroup is taking care of the build commands for me so I like that but I didn't see where I can use just "PortGroup python 1.0" rather then "PortGroup python26 1.0". I would rather use whatever python the user already has installed. Is there an EASY way to do that with python?

//Brad
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to