From 8d5d61fa74008e2cdf91775f8100c74dfec4547b Mon Sep 17 00:00:00 2001 From: Jason Helfman Date: Wed, 27 Jun 2012 22:25:42 +0000 Subject: [PATCH] add new port: dns/py-publicsuffix This module allows you to get the public suffix of a domain name using the Public Suffix List from http://publicsuffix.org A public suffix is one under which Internet users can directly register names. Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us. Accurately knowing the public suffix of a domain is useful when handling web browser cookies, highlighting the most important part of a domain name in a user interface or sorting URLs by web site WWW: http://pypi.python.org/pypi/publicsuffix/ PR: ports/169326 Submitted by: d.pryadko@rambler-co.ru --- dns/Makefile | 1 + dns/py-publicsuffix/Makefile | 27 +++++++++++++++++++++++++++ dns/py-publicsuffix/distinfo | 2 ++ dns/py-publicsuffix/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 dns/py-publicsuffix/Makefile create mode 100644 dns/py-publicsuffix/distinfo create mode 100644 dns/py-publicsuffix/pkg-descr diff --git a/dns/Makefile b/dns/Makefile index 50a90d405bb6..c2daf83d4a0a 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -137,6 +137,7 @@ SUBDIR += py-easyzone SUBDIR += py-idnkit2 SUBDIR += py-namebench + SUBDIR += py-publicsuffix SUBDIR += py-twistedNames SUBDIR += radns SUBDIR += rbldnsd diff --git a/dns/py-publicsuffix/Makefile b/dns/py-publicsuffix/Makefile new file mode 100644 index 000000000000..cd8828ea943d --- /dev/null +++ b/dns/py-publicsuffix/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: py-publicsuffix +# Date created: 22 June 2012 +# Whom: Dmitry Pryadko +# +# $FreeBSD$ +# + +PORTNAME= publicsuffix +PORTVERSION= 1.0.2 +CATEGORIES= dns python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= d.pryadko@rambler-co.ru +COMMENT= Get public suffix of domain name from Public Suffix List + +LICENSE= MIT + +PLIST_FILES= %%PYTHON_SITELIBDIR%%/publicsuffix.py \ + %%PYTHON_SITELIBDIR%%/publicsuffix.pyc \ + %%PYTHON_SITELIBDIR%%/publicsuffix.pyo \ + %%PYTHON_SITELIBDIR%%/publicsuffix.txt + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +.include diff --git a/dns/py-publicsuffix/distinfo b/dns/py-publicsuffix/distinfo new file mode 100644 index 000000000000..0718990aea0e --- /dev/null +++ b/dns/py-publicsuffix/distinfo @@ -0,0 +1,2 @@ +SHA256 (publicsuffix-1.0.2.tar.gz) = f6dfcb8a33fb3ac4f09e644cd26f8af6a09d1a45a019d105c8da58e289ca0096 +SIZE (publicsuffix-1.0.2.tar.gz) = 28992 diff --git a/dns/py-publicsuffix/pkg-descr b/dns/py-publicsuffix/pkg-descr new file mode 100644 index 000000000000..aac35a549d32 --- /dev/null +++ b/dns/py-publicsuffix/pkg-descr @@ -0,0 +1,10 @@ +This module allows you to get the public suffix of a domain name using +the Public Suffix List from http://publicsuffix.org + +A public suffix is one under which Internet users can directly register names. +Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us. +Accurately knowing the public suffix of a domain is useful when handling web +browser cookies, highlighting the most important part of a domain name in a +user interface or sorting URLs by web site + +WWW: http://pypi.python.org/pypi/publicsuffix/