All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [[meta-networking][PATCH v2] tinyproxy: Add recipe
Date: Wed, 12 Apr 2017 14:45:37 +0200	[thread overview]
Message-ID: <CA+chaQfVWLdyBnf8ewW3OFV=tmFT6D-5YZDJnrvihSEpAdGmiQ@mail.gmail.com> (raw)
In-Reply-To: <1491486145-30397-1-git-send-email-benjamin.gaignard@linaro.org>

Still fails to build:
http://errors.yoctoproject.org/Errors/Details/140323/

On Thu, Apr 6, 2017 at 3:42 PM, Benjamin Gaignard <
benjamin.gaignard@linaro.org> wrote:

> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> ---
> version 2:
> - create user and group for tinyproxy
> - only install the service if systemd is present in DISTRO_FEATURE
> - add dependency on asciidoc-native
>  .../tinyproxy/tinyproxy/tinyproxy.service          | 14 ++++++++
>  .../recipes-support/tinyproxy/tinyproxy_1.8.4.bb   | 41
> ++++++++++++++++++++++
>  2 files changed, 55 insertions(+)
>  create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/
> tinyproxy.service
>  create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy_1.
> 8.4.bb
>
> 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..ef2a2d8
> --- /dev/null
> +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb
> @@ -0,0 +1,41 @@
> +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://tinyproxy.service"
> +
> +SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
> +SRC_URI[sha256sum] = "8234c879a129feee61efa98bac14a1
> a3e46e5cf08f01696a216940872aa70faf"
> +
> +DEPENDS = "asciidoc-native"
> +
> +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
> +}
> +
> +FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"
> --
> 1.9.1
>
>


  reply	other threads:[~2017-04-12 12:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06 13:42 [[meta-networking][PATCH v2] tinyproxy: Add recipe Benjamin Gaignard
2017-04-12 12:45 ` Martin Jansa [this message]
2017-04-12 18:46   ` Benjamin Gaignard
2017-04-12 19:04     ` Martin Jansa
2017-04-12 19:53       ` Andre McCurdy
2017-04-13 12:31         ` Benjamin Gaignard

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='CA+chaQfVWLdyBnf8ewW3OFV=tmFT6D-5YZDJnrvihSEpAdGmiQ@mail.gmail.com' \
    --to=martin.jansa@gmail.com \
    --cc=benjamin.gaignard@linaro.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.