aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-08-25 18:47:01 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-08-25 18:47:01 +0000
commita33ddf64ec867001d98fa6b6b75170d2ead4bca4 (patch)
tree8a6f06d17ee4ba47adf87348520f5d7e4c287ed0
parent83251b2f5f3581ce54453f71260adb1caf9484a6 (diff)
downloadports-a33ddf64ec867001d98fa6b6b75170d2ead4bca4.tar.gz
ports-a33ddf64ec867001d98fa6b6b75170d2ead4bca4.zip
Notes
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj22-django_csp/Makefile22
-rw-r--r--www/py-dj22-django_csp/distinfo3
-rw-r--r--www/py-dj22-django_csp/pkg-descr3
4 files changed, 29 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 6f888dcf00ae..6940b1b33cae 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1495,6 +1495,7 @@
SUBDIR += py-dj22-django-auth-ldap
SUBDIR += py-dj22-django-cacheops
SUBDIR += py-dj22-django-cors-headers
+ SUBDIR += py-dj22-django_csp
SUBDIR += py-dj22-django-debug-toolbar
SUBDIR += py-dj22-django-filter
SUBDIR += py-dj22-django-js-asset
diff --git a/www/py-dj22-django_csp/Makefile b/www/py-dj22-django_csp/Makefile
new file mode 100644
index 000000000000..25fa4b278530
--- /dev/null
+++ b/www/py-dj22-django_csp/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= django_csp
+PORTVERSION= 3.5
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj22-
+
+MAINTAINER= alex@axanderio.de
+COMMENT= Adds Content-Security-Policy headers to Django
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=1.8:www/py-django22@${PY_FLAVOR}
+
+USES= python:3.5+
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj22-django_csp/distinfo b/www/py-dj22-django_csp/distinfo
new file mode 100644
index 000000000000..ed8864146abf
--- /dev/null
+++ b/www/py-dj22-django_csp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1563114827
+SHA256 (django_csp-3.5.tar.gz) = 04600237701e6d6ff78ed7d41209ff923988148bf292c128f6b474b9befe444f
+SIZE (django_csp-3.5.tar.gz) = 11532
diff --git a/www/py-dj22-django_csp/pkg-descr b/www/py-dj22-django_csp/pkg-descr
new file mode 100644
index 000000000000..2580fb999a51
--- /dev/null
+++ b/www/py-dj22-django_csp/pkg-descr
@@ -0,0 +1,3 @@
+Django-CSP adds Content-Security-Policy headers to Django.
+
+WWW: https://github.com/mozilla/django-csp