mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: [ptxdist] [PATCH 1/2] python3-gunicorn: new package
Date: Mon,  9 May 2022 14:05:47 +0200	[thread overview]
Message-ID: <20220509120548.4509-1-bruno.thomsen@gmail.com> (raw)

Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.

Requirement for python3-falcon package.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
 rules/python3-gunicorn.in   | 11 +++++++
 rules/python3-gunicorn.make | 57 +++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/python3-gunicorn.in
 create mode 100644 rules/python3-gunicorn.make

diff --git a/rules/python3-gunicorn.in b/rules/python3-gunicorn.in
new file mode 100644
index 000000000..d010ea900
--- /dev/null
+++ b/rules/python3-gunicorn.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_GUNICORN
+	bool
+	select PYTHON3
+	prompt "gunicorn"
+	help
+	  Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
+	  It's a pre-fork worker model. The Gunicorn server is broadly
+	  compatible with various web frameworks, simply implemented,
+	  light on server resources, and fairly speedy.
diff --git a/rules/python3-gunicorn.make b/rules/python3-gunicorn.make
new file mode 100644
index 000000000..a37aa8f04
--- /dev/null
+++ b/rules/python3-gunicorn.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 by Bruno Thomsen <bruno.thomsen@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_GUNICORN) += python3-gunicorn
+
+#
+# Paths and names
+#
+PYTHON3_GUNICORN_VERSION	:= 20.1.0
+PYTHON3_GUNICORN_MD5		:= ac6254576d53c2ede3456561af3f0549
+PYTHON3_GUNICORN		:= gunicorn-$(PYTHON3_GUNICORN_VERSION)
+PYTHON3_GUNICORN_SUFFIX		:= tar.gz
+PYTHON3_GUNICORN_URL		:= $(call ptx/mirror-pypi, gunicorn, $(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX))
+PYTHON3_GUNICORN_SOURCE		:= $(SRCDIR)/$(PYTHON3_GUNICORN).$(PYTHON3_GUNICORN_SUFFIX)
+PYTHON3_GUNICORN_DIR		:= $(BUILDDIR)/$(PYTHON3_GUNICORN)
+PYTHON3_GUNICORN_LICENSE	:= MIT
+PYTHON3_GUNICORN_LICENSE_FILES	:= \
+	file://LICENSE;md5=f75f3fb94cdeab1d607e2adaa6077752
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_GUNICORN_CONF_TOOL	:= python3
+PYTHON3_GUNICORN_MAKE_OPT	:= install_scripts
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-gunicorn.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-gunicorn)
+	@$(call install_fixup, python3-gunicorn,PRIORITY,optional)
+	@$(call install_fixup, python3-gunicorn,SECTION,base)
+	@$(call install_fixup, python3-gunicorn,AUTHOR,"Bruno Thomsen <bruno.thomsen@gmail.com>")
+	@$(call install_fixup, python3-gunicorn,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-gunicorn, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_copy, python3-gunicorn, 0, 0, 0775, -, /usr/bin/gunicorn)
+
+	@$(call install_finish, python3-gunicorn)
+
+	@$(call touch)
+
+# vim: syntax=make

base-commit: 0b3d1b74a16d1c8d47e1bb5ac2f34f3def01aeac
-- 
2.35.1




             reply	other threads:[~2022-05-09 12:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09 12:05 Bruno Thomsen [this message]
2022-05-09 12:05 ` [ptxdist] [PATCH 2/2] python3-falcon: " Bruno Thomsen
2022-05-13  7:15 ` [ptxdist] [PATCH 1/2] python3-gunicorn: " Michael Olbrich
2022-05-14 10:50   ` Bruno Thomsen
2022-05-18 13:47     ` Michael Olbrich
2022-05-19 16:24       ` Bruno Thomsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220509120548.4509-1-bruno.thomsen@gmail.com \
    --to=bruno.thomsen@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox