git: bafd04a8f74b - main - security/py-secure: New port: Adds security headers for python web frameworks

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Thu, 29 Sep 2022 03:59:05 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bafd04a8f74b8058e889aad6b88258d844e76d4d

commit bafd04a8f74b8058e889aad6b88258d844e76d4d
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-09-29 03:57:41 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-09-29 03:57:41 +0000

    security/py-secure: New port: Adds security headers for python web frameworks
    
    secure.py lock is a lightweight package that adds optional security headers for
    Python web frameworks.
---
 security/Makefile            |  1 +
 security/py-secure/Makefile  | 19 +++++++++++++++++++
 security/py-secure/distinfo  |  3 +++
 security/py-secure/pkg-descr |  2 ++
 4 files changed, 25 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 6570949932aa..5770350685b9 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -975,6 +975,7 @@
     SUBDIR += py-scp
     SUBDIR += py-scramp
     SUBDIR += py-scrypt
+    SUBDIR += py-secure
     SUBDIR += py-securesystemslib
     SUBDIR += py-sequoia
     SUBDIR += py-service_identity
diff --git a/security/py-secure/Makefile b/security/py-secure/Makefile
new file mode 100644
index 000000000000..f0e3be9b788d
--- /dev/null
+++ b/security/py-secure/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	secure
+PORTVERSION=	0.3.0
+CATEGORIES=	security python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	acm@FreeBSD.org
+COMMENT=	Adds security headers for python web frameworks
+WWW=		https://github.com/cak/secure
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/py-secure/distinfo b/security/py-secure/distinfo
new file mode 100644
index 000000000000..f4232fe4839f
--- /dev/null
+++ b/security/py-secure/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1647988144
+SHA256 (secure-0.3.0.tar.gz) = 6e30939d8f95bf3b8effb8a36ebb5ed57f265daeeae905e3aa9677ea538ab64e
+SIZE (secure-0.3.0.tar.gz) = 12620
diff --git a/security/py-secure/pkg-descr b/security/py-secure/pkg-descr
new file mode 100644
index 000000000000..df8000659b30
--- /dev/null
+++ b/security/py-secure/pkg-descr
@@ -0,0 +1,2 @@
+secure.py lock is a lightweight package that adds optional security headers for
+Python web frameworks.