From patchwork Thu Apr 20 12:25:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 97800 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp703203obc; Thu, 20 Apr 2017 05:26:41 -0700 (PDT) X-Received: by 10.98.131.75 with SMTP id h72mr7862169pfe.190.1492691201631; Thu, 20 Apr 2017 05:26:41 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t188si6315191pgt.331.2017.04.20.05.26.41; Thu, 20 Apr 2017 05:26:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 66B9B73128; Thu, 20 Apr 2017 12:26:29 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mail.openembedded.org (Postfix) with ESMTP id C79FE73124 for ; Thu, 20 Apr 2017 12:26:12 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id w64so102622867wma.0 for ; Thu, 20 Apr 2017 05:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=dSoaFcpC0/ooJDujZONxo1KForRMkvo3sEQAXpJtf8Q=; b=aB8IPPL1TuNviY8pCFFDwew3zg8+YIB60VP92oNYv3aH+sHTSr27poVYKq88eJhfYH Ts5xYLM7nReUo156QlTMKmHHhmQsGcpUKLJpkXq3VHRMspq91nxg0MriV1YZ5OPYAkVD hIzV4TU96q/ptaVR7/sLC0Pn8hyUncLtgbajU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dSoaFcpC0/ooJDujZONxo1KForRMkvo3sEQAXpJtf8Q=; b=GKCQmGA2itMcKFkTbylYf4nMeOk7Yf/7hnRl7fzLXdcgxdzSj12bmij06qwQTDpgTt 2TwkPE86phhsyQq0+7IqEeO6AlLxs4SiGQ5Xi4K25WObTn2XrsNkmUrNvnFtSHL9011X THNg8HWlFPRh5rSauOJhL3mD+BTarQehSO5N8ItF8DGcMX8N8IVbdl5q6ZRuphRmoAgs BrhsOr5WKCPT1UElCXfN465J5Qm5sxeSL9EZOISv8Fg+7Zy8nOWiDqz9+gbJZyQN8odn C5MHsdwQvTrOaM6W1VpI2ctL3lrJqbBjZeP1TL6gzRhdEWonMYvZ7HR9vg8qw2nSLuI5 /uqA== X-Gm-Message-State: AN3rC/7xDUor7EOd9IVkZjPaqFWPAssufLA5mfCVgVYnbIqDtRbcTG/v Ga5DJymUbYQn5Qoj X-Received: by 10.28.154.85 with SMTP id c82mr3007524wme.100.1492691173287; Thu, 20 Apr 2017 05:26:13 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.135.222]) by smtp.gmail.com with ESMTPSA id g81sm1869109wmd.11.2017.04.20.05.26.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Apr 2017 05:26:12 -0700 (PDT) From: Benjamin Gaignard To: openembedded-devel@lists.openembedded.org, joe_macdonald@mentor.com, armccurdy@gmail.com, martin.jansa@gmail.com Date: Thu, 20 Apr 2017 14:25:18 +0200 Message-Id: <1492691118-22985-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Benjamin Gaignard Subject: [oe] [meta-networking][PATCH v4] tinyproxy: Add recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Benjamin Gaignard --- .../tinyproxy/disable-documentation.patch | 37 +++++++++++++++++++++ .../tinyproxy/tinyproxy/tinyproxy.service | 14 ++++++++ .../recipes-support/tinyproxy/tinyproxy_1.8.4.bb | 38 ++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/disable-documentation.patch create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb -- 1.9.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/disable-documentation.patch b/meta-networking/recipes-support/tinyproxy/tinyproxy/disable-documentation.patch new file mode 100644 index 0000000..01d0236 --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/disable-documentation.patch @@ -0,0 +1,37 @@ +--- a/configure.ac 2016-01-01 17:42:27.000000000 +0100 ++++ b/configure.ac 2017-04-20 14:03:37.238254471 +0200 +@@ -284,24 +284,12 @@ + AC_SUBST(LIBS) + AC_SUBST(ADDITIONAL_OBJECTS) + +-# Check for asciidoc +-AC_PATH_PROG(A2X, a2x, no) +-AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno") +-if test x"$A2X" = x"no"; then +- AC_MSG_ERROR([Test for asciidoc failed. See the file 'INSTALL' for help.]) +-fi +- + AC_CONFIG_FILES([ + Makefile + src/Makefile + data/Makefile + data/templates/Makefile + etc/Makefile +-docs/Makefile +-docs/man5/Makefile +-docs/man5/tinyproxy.conf.txt +-docs/man8/Makefile +-docs/man8/tinyproxy.txt + m4macros/Makefile + tests/Makefile + tests/scripts/Makefile +--- a/Makefile.am 2016-01-01 17:42:27.000000000 +0100 ++++ b/Makefile.am 2017-04-20 14:03:53.842822997 +0200 +@@ -2,7 +2,6 @@ + src \ + data \ + etc \ +- docs \ + m4macros \ + tests + diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service b/meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file mode 100644 index 0000000..ea079f9 --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service @@ -0,0 +1,14 @@ +[Unit] +Description=Tinyproxy, Lightweight http(s) proxy daemon +RequiresMountsFor=/var + +[Service] +Group=tinyproxy +ExecStartPre=/bin/mkdir -p /var/log/tinyproxy +ExecStartPre=/bin/chown -R nobody.tinyproxy /var/log/tinyproxy +ExecStartPre=/bin/mkdir -p /var/run/tinyproxy +ExecStartPre=/bin/chown -R nobody.tinyproxy /var/run/tinyproxy +ExecStart=/usr/sbin/tinyproxy -d + +[Install] +WantedBy=multi-user.target diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file mode 100644 index 0000000..e8025c4 --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb @@ -0,0 +1,38 @@ +SUMMARY = "Lightweight http(s) proxy daemon" +HOMEPAGE = "https://tinyproxy.github.io/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz \ + file://disable-documentation.patch \ + file://tinyproxy.service" + +SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac" +SRC_URI[sha256sum] = "8234c879a129feee61efa98bac14a1a3e46e5cf08f01696a216940872aa70faf" + +EXTRA_OECONF += " \ + --enable-filter \ + --enable-transparent \ + --disable-regexcheck \ + --enable-reverse \ + --enable-upstream \ + --enable-xtinyproxy \ + " + +inherit autotools systemd useradd + +#User specific +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "nobody" +GROUPADD_PARAM_${PN} = "--system tinyproxy" + +SYSTEMD_PACKAGES += "${BPN}" +SYSTEMD_SERVICE_${PN} = "tinyproxy.service" +SYSTEMD_AUTO_ENABLE_${PN} = "enable" + +do_install_append() { + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/tinyproxy.service ${D}${systemd_system_unitdir} + fi +}