[OpenWrt-Devel] [PATCH 2/2] Add package django-secure

philby john philbyjohn at gmail.com
Sat Oct 10 10:08:18 EDT 2015


From 411e7549b3e6dd24a5730a9c6d272708b51a06bc Mon Sep 17 00:00:00 2001
From: Philby John <philby at celestialsys.com>
Date: Sat, 10 Oct 2015 19:01:13 +0530
Subject: [PATCH 2/2] Add package django-secure

Add django-secure 1.0.1 which is utilities and a
'linter' to help in making Django site more secure.

Signed-off-by: Philby John <philby at celestialsys.com>
Tested-by: Ashok <ashok at celestialsys.com>
---
 lang/django-secure/Makefile | 54 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 lang/django-secure/Makefile

diff --git a/lang/django-secure/Makefile b/lang/django-secure/Makefile
new file mode 100644
index 0000000..607d25c
--- /dev/null
+++ b/lang/django-secure/Makefile
@@ -0,0 +1,54 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=django-secure
+PKG_VERSION:=1.0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=django-secure-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://pypi.python.org/packages/source/d/django-secure/
+PKG_MD5SUM:=7fa6bc01cfc3d9443102ef1e5739a3a8
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/django-secure-$(PKG_VERSION)
+PKG_BUILD_DEPENDS:=python python-setuptools
+
+include $(INCLUDE_DIR)/package.mk
+$(call include_mk, python-package.mk)
+
+define Package/django-secure
+  SECTION:=language-python
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=Utilities and a linter to secure your Django site.
+  URL:=https://www.djangoproject.com/
+  DEPENDS:=+python +python-setuptools
+endef
+
+define Package/django-secure/description
+ Helping you remember to do the stupid little things to improve your
+ Django site’s security. Inspired by Mozilla’s Secure Coding Guidelines,
+ and intended for sites that are entirely or mostly served over SSL
+ (which should include anything with user logins).development and
+ clean, pragmatic design.
+endef
+
+define Build/Compile
+    $(call Build/Compile/PyMod,., \
+        install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
+    )
+endef
+
+define Package/django-secure/install
+    $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
+    $(CP) \
+        $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
+        $(1)$(PYTHON_PKG_DIR)/
+endef
+
+$(eval $(call BuildPackage,django-secure))
-- 
1.8.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list