python3: package CGI component
authorMirko Vogt <redacted>
Sat, 28 Oct 2017 23:45:25 +0000 (01:45 +0200)
committerMirko Vogt <redacted>
Tue, 31 Oct 2017 12:45:29 +0000 (13:45 +0100)
Signed-off-by: Mirko Vogt <redacted>
lang/python/python3/Makefile
lang/python/python3/files/python3-package-cgi.mk [new file with mode: 0644]

index 4b5311ecce048c31f91fdf0784f21922c18c7965..02031dd178ff8161404b3879903b6d448276de08 100644 (file)
@@ -16,7 +16,7 @@ PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
 PKG_NAME:=python3
 # XXX: reset PKG_RELEASE to 1 only if Python's pip & setuptools versions have also bumped;
 #      otherwise, keep bumping PKG_RELEASE
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
diff --git a/lang/python/python3/files/python3-package-cgi.mk b/lang/python/python3/files/python3-package-cgi.mk
new file mode 100644 (file)
index 0000000..165800a
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2006-2017 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Package/python3-cgi
+$(call Package/python3/Default)
+  TITLE:=Python $(PYTHON3_VERSION) cgi module
+  DEPENDS:=+python3-light +python3-email
+endef
+
+define Package/python3-cgitb
+$(call Package/python3/Default)
+  TITLE:=Python $(PYTHON3_VERSION) cgitb module
+  DEPENDS:=+python3-light +python3-cgi +python3-pydoc
+endef
+
+
+$(eval $(call Py3BasePackage,python3-cgi, \
+       /usr/lib/python$(PYTHON3_VERSION)/cgi.py \
+))
+
+$(eval $(call Py3BasePackage,python3-cgitb, \
+       /usr/lib/python$(PYTHON3_VERSION)/cgitb.py \
+))
git clone https://git.99rst.org/PROJECT