From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 19 May 2022 18:25:43 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nriy7-002FTZ-Do for lore@lore.pengutronix.de; Thu, 19 May 2022 18:25:43 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nriy6-0002cc-NP; Thu, 19 May 2022 18:25:42 +0200 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrixg-0002Wu-TX for ptxdist@pengutronix.de; Thu, 19 May 2022 18:25:17 +0200 Received: by mail-ej1-x62f.google.com with SMTP id y7so9479553ejr.13 for ; Thu, 19 May 2022 09:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b3/EvowtxpblIWr1Ji7d/qswHOBhP7cYlj/O7yotaWI=; b=hORa3OIjwpV7b+luXZxmgKhbwwWFKdseI/hZxYBNnWWWD43+1J3RNcrsxtz7oC9MY1 BbT9GRLeH5jDD5pM3hXTEJVunodDVx7XOoywDzag78Cbww++5NmiutvH7o8VsbMsRg1S fRDf7czmuVzD6Y8e21jgoi9+Qayuizw7RNaRgYRpRHOGgTdJwhyb4e83RPHKwE9hbcG9 3XCX7ygwxDlUyXarD8r0ESGMbKaobQeAu6uD4E4xwHevag6y/tzEJplLl7zLyGXc2Kvn NvRE9ApJ+EoRnu4P/pFi1sUZCO8YhDHpUKdIXRs2sRkeHc+ZPqvk5RFFbHhci8yc3e77 R3/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b3/EvowtxpblIWr1Ji7d/qswHOBhP7cYlj/O7yotaWI=; b=QnjOQ4R9YP5X1AoFz5yCYWcnQYLeouxt7mmtv6gI2KQhb43nUeGwCE5bdeBaBE32Qf xY/J6OqA/c8Ia+DcPnVrrzQJMJvbvMCytoxDDEWreQkdVbrLSO9aQOsIDhOvPmzn5JR1 LRJ6Kfq2sRb7zND7sHTHKP9ejyo7geMA721Yd3JrG1OOsC6jMZJkTg+esjY5G/KjvlSQ Bhq3Omf0YaZP3W8GHa21n7jOT/M96ipZDw6ckt3d2SUPuqj9CKpu2mCP1VXxjb0SiTdK /GveYAwqsQsG04Iq2Y+qH8v6YjV01prvHbzYy535dM4nvbtfIHt/TYqd9jEcb6kqAong c4rw== X-Gm-Message-State: AOAM530lIrcPMj72RchkuTQh9jyIAEQVdKXiS6lBr+sT3euxEuM54Eag Ogw2gdn8ePYIN2eN08YSSffLnrNpEMw= X-Google-Smtp-Source: ABdhPJxUos2Arok1gHUcVyrqlXbcwa+vfrB2Dvq6Yf5HsLFSuE3kalHF1dtQK6aW0k6ExNzLejap6A== X-Received: by 2002:a17:906:44b:b0:6f8:d325:bb84 with SMTP id e11-20020a170906044b00b006f8d325bb84mr5154009eja.174.1652977515807; Thu, 19 May 2022 09:25:15 -0700 (PDT) Received: from localhost.localdomain (3e6b100e.rev.stofanet.dk. [62.107.16.14]) by smtp.gmail.com with ESMTPSA id ee46-20020a056402292e00b0042617ba63aesm3042005edb.56.2022.05.19.09.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:25:15 -0700 (PDT) From: Bruno Thomsen To: ptxdist@pengutronix.de Date: Thu, 19 May 2022 18:25:05 +0200 Message-Id: <20220519162506.6045-1-bruno.thomsen@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v3 1/2] python3-gunicorn: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Bruno Thomsen Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. Requirement for python3-falcon package. Signed-off-by: Bruno Thomsen --- v3 changes: None. v2 changes: Upstream release was changed without version bump to fix egg packaging. Hash change was spotted by mol. 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 000000000000..d010ea9002bd --- /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 000000000000..e6959d557a0f --- /dev/null +++ b/rules/python3-gunicorn.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2022 by Bruno Thomsen +# +# 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 := db8a7c5c2064000af70286534803bf1d +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 ") + @$(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: e66dc8546cc32f828c290fea029cffce5b1157d9 -- 2.35.3