From: Martin Jansa <martin.jansa@gmail.com>
To: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH] tinyproxy: Add recipe
Date: Wed, 5 Apr 2017 20:41:14 +0200 [thread overview]
Message-ID: <20170405184114.GC3301@jama> (raw)
In-Reply-To: <1491396806-3521-1-git-send-email-benjamin.gaignard@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 3132 bytes --]
On Wed, Apr 05, 2017 at 02:53:26PM +0200, Benjamin Gaignard wrote:
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> ---
> .../tinyproxy/tinyproxy/tinyproxy.service | 14 ++++++++++
> .../recipes-support/tinyproxy/tinyproxy_1.8.4.bb | 32 ++++++++++++++++++++++
> 2 files changed, 46 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..800d2ad
> --- /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]
> +User=root
> +ExecStartPre=/bin/mkdir -p /var/log/tinyproxy
> +ExecStartPre=/bin/chown -R nobody.adm /var/log/tinyproxy
> +ExecStartPre=/bin/mkdir -p /var/run/tinyproxy
> +ExecStartPre=/bin/chown -R nobody.adm /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..76cec63
> --- /dev/null
> +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb
> @@ -0,0 +1,32 @@
> +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/tinyproxy/tinyproxy/releases/download/1.8.4/tinyproxy-${PV}.tar.gz"
Use ${PV} for 2nd 1.8.4 as well.
You can also replace "tinyproxy-${PV}" with just "${BP}" and tinyproxy
with ${BPN}"
> +SRC_URI += "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
> +
> +SYSTEMD_PACKAGES += "${PN}"
> +SYSTEMD_SERVICE_${PN} = "tinyproxy.service"
> +SYSTEMD_AUTO_ENABLE_${PN} = "enable"
> +
> +do_install_append() {
> + install -d ${D}${systemd_system_unitdir}
> + install -m 0644 ${WORKDIR}/tinyproxy.service ${D}${systemd_system_unitdir}
IIRC this should respect systemd in DISTRO_FEATURES.
> +}
> +
> +FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
next prev parent reply other threads:[~2017-04-05 18:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-05 12:53 [meta-networking][PATCH] tinyproxy: Add recipe Benjamin Gaignard
2017-04-05 17:29 ` Khem Raj
2017-04-06 4:44 ` Benjamin Gaignard
2017-04-05 18:41 ` Martin Jansa [this message]
2017-04-06 4:46 ` Benjamin Gaignard
2017-04-06 7:24 ` Martin Jansa
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=20170405184114.GC3301@jama \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox