diff mbox

[oe,meta-networking] tinyproxy: Add recipe

Message ID 1491396806-3521-1-git-send-email-benjamin.gaignard@linaro.org
State New
Headers show

Commit Message

Benjamin Gaignard April 5, 2017, 12:53 p.m. UTC
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

-- 
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Comments

Khem Raj April 5, 2017, 5:29 p.m. UTC | #1
On Wed, Apr 5, 2017 at 5:53 AM, Benjamin Gaignard
<benjamin.gaignard@linaro.org> 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


There could be a problem if this user/group does not exist

> +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"

> +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}

> +}

> +

> +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

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Martin Jansa April 5, 2017, 6:41 p.m. UTC | #2
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
-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Benjamin Gaignard April 6, 2017, 4:44 a.m. UTC | #3
2017-04-05 19:29 GMT+02:00 Khem Raj <raj.khem@gmail.com>:
> On Wed, Apr 5, 2017 at 5:53 AM, Benjamin Gaignard
> <benjamin.gaignard@linaro.org> 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
>
> There could be a problem if this user/group does not exist

I will add extra user in recipe and change to "nobody.tinyproxy" to avoid "adm"

>
>> +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"
>> +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}
>> +}
>> +
>> +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
Benjamin Gaignard April 6, 2017, 4:46 a.m. UTC | #4
2017-04-05 20:41 GMT+02:00 Martin Jansa <martin.jansa@gmail.com>:
> 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}"

I will do that in version 2

>
>> +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.
>

I will test if systemd is in DISTRO_FEATURES before installing the file.

Thanks

>> +}
>> +
>> +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
Martin Jansa April 6, 2017, 7:24 a.m. UTC | #5
It also fails to configure:
http://errors.yoctoproject.org/Errors/Details/139078/

On Thu, Apr 6, 2017 at 6:46 AM, Benjamin Gaignard <
benjamin.gaignard@linaro.org> wrote:

> 2017-04-05 20:41 GMT+02:00 Martin Jansa <martin.jansa@gmail.com>:
> > 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=751419260aa954499f7abaabaa882b
> be"
> >> +
> >> +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}"
>
> I will do that in version 2
>
> >
> >> +SRC_URI += "file://tinyproxy.service"
> >> +
> >> +SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
> >> +SRC_URI[sha256sum] = "8234c879a129feee61efa98bac14a1
> a3e46e5cf08f01696a216940872aa70faf"
> >> +
> >> +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.
> >
>
> I will test if systemd is in DISTRO_FEATURES before installing the file.
>
> Thanks
>
> >> +}
> >> +
> >> +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
>
>
>
> --
> Benjamin Gaignard
>
> Graphic Study Group
>
> Linaro.org │ Open source software for ARM SoCs
>
> Follow Linaro: Facebook | Twitter | Blog
>
diff mbox

Patch

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"
+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}
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"