freebsd-ports/security/py-cert-human/Makefile
Sunpoet Po-Chuan Hsieh b81325e25b Add py-cert-human 1.0.7
I wanted to incorporate a method to get an SSL certificate from a server, show
the user the same kind of information as you'd see in a browser, prompt them for
validity, then write it to disk for use in all requests to a server.

I was unable to find any great / easy ways that incorporated all of these
concepts into one neat thing. So I made a thing.

Originally this was based off of yet another lovely over-engineered solution in
get-ca-py by Josh Peak.

WWW: https://github.com/lifehackjim/cert_human
2020-07-30 09:46:11 +00:00

33 lines
891 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= cert-human
PORTVERSION= 1.0.7
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= cert_human-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= SSL Certificates for Humans
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=1.3.4:security/py-cryptography@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}idna>=2.0.0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>=0.14:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>=0:devel/py-pathlib2@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>