summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/py-whois/Makefile21
-rw-r--r--net/py-whois/distinfo3
-rw-r--r--net/py-whois/pkg-descr14
4 files changed, 39 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index b4b9137dcf38..d53457271268 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1118,6 +1118,7 @@
SUBDIR += py-uritools
SUBDIR += py-urlextract
SUBDIR += py-urllib3
+ SUBDIR += py-whois
SUBDIR += py-wmi-query
SUBDIR += py-wsdd
SUBDIR += py-wsproto
diff --git a/net/py-whois/Makefile b/net/py-whois/Makefile
new file mode 100644
index 000000000000..d7a03ec034f0
--- /dev/null
+++ b/net/py-whois/Makefile
@@ -0,0 +1,21 @@
+# Created by: Gabriel Dutra <0xdutra@gmail.com>
+# $FreeBSD$
+
+PORTNAME= whois
+PORTVERSION= 0.9.7
+CATEGORIES= net python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= 0xdutra@gmail.com
+COMMENT= Python package for retrieving WHOIS information of domains
+
+LICENSE= WTFPL
+LICENSE_FILE= ${WRKSRC}/license
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/net/py-whois/distinfo b/net/py-whois/distinfo
new file mode 100644
index 000000000000..690124c25138
--- /dev/null
+++ b/net/py-whois/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1604328773
+SHA256 (whois-0.9.7.tar.gz) = 1e0348c6cc763e1a7c87d32ce877e2531096928e477fdb2e100aa3783e2b4279
+SIZE (whois-0.9.7.tar.gz) = 8207
diff --git a/net/py-whois/pkg-descr b/net/py-whois/pkg-descr
new file mode 100644
index 000000000000..fa2987968613
--- /dev/null
+++ b/net/py-whois/pkg-descr
@@ -0,0 +1,14 @@
+A Python package for retrieving WHOIS information of domains.
+
+Features
+ - Python wrapper for Linux "whois" command
+ - simple interface to access parsed WHOIS data for a given domain
+ - able to extract data for all the popular TLDs (com, org, net, biz, info, pl,
+ jp, uk, nz, ...)
+ - query a WHOIS server directly instead of going through an intermediate web
+ service like many others do
+ - works with Python 2.4+ and Python 3.x
+ - all dates as datetime objects
+ - possibility to cache results
+
+WWW: https://pypi.org/project/whois/