Skip to contentSkip to conversation

tinyproxy: Add recipe

PATCH Superseded Benjamin Gaignard 3 participants 6 messages Apr 6, 2017 – Apr 13, 2017

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tinyproxy: Add recipe

---
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
meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +14 -0
new file mode 100644
index 0000000..ea079f9
@@ -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
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

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

Quoted 93 lines · Benjamin Gaignard

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

meta-networking/recipes-support/tinyproxy/tinyproxy/ new file +0 -0
new file mode 100644
index 0000000..ea079f9

tinyproxy.service

meta-networking/recipes-support/tinyproxy/tinyproxy/ new file +14 -0
@@ -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
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +6 -0
new file mode 100644
index 0000000..ef2a2d8
@@ -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 \

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+                  file://tinyproxy.service"
+
+SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
+SRC_URI[sha256sum] = "8234c879a129feee61efa98bac14a1

a3e46e5cf08f01696a216940872aa70faf"

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +25 -0
+
+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

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+               install -d ${D}${systemd_system_unitdir}
+               install -m 0644 ${WORKDIR}/tinyproxy.service

${D}${systemd_system_unitdir}

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -1
+       fi
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"
--

1.9.1

#2 lore raw

2017-04-12 14:45 GMT+02:00 Martin Jansa <[email protected]>:

Quoted 2 lines

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

That is an error I never had in my setup.
I guess that libxml2 native is missing but I have way to reproduce the problem. How is it possible to perform the same build then you ?

Quoted 98 lines
Quoted 94 lines · Benjamin Gaignard

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

meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +14 -0
@@ -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
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +6 -0
new file mode 100644
index 0000000..ef2a2d8
@@ -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 \

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+                  file://tinyproxy.service"
+
+SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
+SRC_URI[sha256sum] =

"8234c879a129feee61efa98bac14a1a3e46e5cf08f01696a216940872aa70faf"

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +25 -0
+
+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

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+               install -d ${D}${systemd_system_unitdir}
+               install -m 0644 ${WORKDIR}/tinyproxy.service

${D}${systemd_system_unitdir}

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -1
+       fi
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"
--

1.9.1

#3 lore raw

If you're testing it with master, then the xmllint from host cannot be used because of HOSTPATH filtering recently merged.

For other configuration you can see:
http://www.openembedded.org/wiki/Bitbake_World_Status_Setup

Quoted 111 lines · Benjamin Gaignard

2017-04-12 14:45 GMT+02:00 Martin Jansa <[email protected]>:

Quoted 2 lines

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

That is an error I never had in my setup.
I guess that libxml2 native is missing but I have way to reproduce the problem.
How is it possible to perform the same build then you ?

Quoted 35 lines
Quoted 32 lines · Benjamin Gaignard

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

meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
@@ -0,0 +1,14 @@
+[Unit]
+Description=Tinyproxy, Lightweight http(s) proxy daemon
+RequiresMountsFor=/var
+
+[Service]
+Group=tinyproxy
+ExecStartPre=/bin/mkdir -p /var/log/tinyproxy
Quoted 8 lines

Review

Quoted 8 lines
meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
+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
(quoted diff) +0 -0

8.4.bb

Quoted 10 lines

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb line 4

Quoted 10 lines

b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file mode 100644
index 0000000..ef2a2d8

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
@@ -0,0 +1,41 @@
+SUMMARY = "Lightweight http(s) proxy daemon"
+HOMEPAGE = "https://tinyproxy.github.io/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882b

be"

Quoted 3 lines
Quoted 3 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+
+SRC_URI =

"https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz

\

Quoted 42 lines
Quoted 41 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+                  file://tinyproxy.service"
+
+SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
+SRC_URI[sha256sum] =

"8234c879a129feee61efa98bac14a1a3e46e5cf08f01696a216940872aa70faf"

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +25 -0
+
+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

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+               install -d ${D}${systemd_system_unitdir}
+               install -m 0644 ${WORKDIR}/tinyproxy.service

${D}${systemd_system_unitdir}

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -1
+       fi
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"
--

1.9.1

#4 lore raw
Quoted 17 lines · Martin Jansa

If you're testing it with master, then the xmllint from host cannot be used because of HOSTPATH filtering recently merged.

For other configuration you can see:
http://www.openembedded.org/wiki/Bitbake_World_Status_Setup

Quoted 8 lines · Benjamin Gaignard

2017-04-12 14:45 GMT+02:00 Martin Jansa <[email protected]>:

Quoted 2 lines

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

That is an error I never had in my setup.
I guess that libxml2 native is missing but I have way to reproduce the problem.
How is it possible to perform the same build then you ?

You need to make the configure tests for xsltproc, asciidoc and xmllint deterministic. e.g. to remove dependencies on all three, add:

ac_cv_path_XSLTPROC=no
ac_cv_path_A2X=no
ac_cv_path_XMLLINT=no

to EXTRA_OECONF (which would allow you to remove asciidoc-native from DEPENDS).

Quoted 89 lines
Quoted 89 lines
Quoted 35 lines
Quoted 32 lines · Benjamin Gaignard

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

meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
@@ -0,0 +1,14 @@
+[Unit]
+Description=Tinyproxy, Lightweight http(s) proxy daemon
+RequiresMountsFor=/var
+
+[Service]
+Group=tinyproxy
+ExecStartPre=/bin/mkdir -p /var/log/tinyproxy
Quoted 8 lines

Review

Quoted 8 lines
meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
+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
(quoted diff) +0 -0

8.4.bb

Quoted 10 lines

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb line 4

Quoted 10 lines

b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file mode 100644
index 0000000..ef2a2d8

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
@@ -0,0 +1,41 @@
+SUMMARY = "Lightweight http(s) proxy daemon"
+HOMEPAGE = "https://tinyproxy.github.io/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882b

be"

Quoted 3 lines
Quoted 3 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+
+SRC_URI =

"https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz

\

Quoted 30 lines
Quoted 30 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+                  file://tinyproxy.service"
+
+SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
+SRC_URI[sha256sum] =

"8234c879a129feee61efa98bac14a1a3e46e5cf08f01696a216940872aa70faf"

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +25 -0
+
+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',
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb line 41

Quoted 8 lines

'false', d)}; then

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+               install -d ${D}${systemd_system_unitdir}
+               install -m 0644 ${WORKDIR}/tinyproxy.service

${D}${systemd_system_unitdir}

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+       fi
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"

This shouldn't be required if SYSTEMD_SERVICE_${PN} includes "tinyproxy.service".

Quoted 10 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

--
1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw

2017-04-12 21:53 GMT+02:00 Andre McCurdy <[email protected]>:

Quoted 19 lines · Martin Jansa
Quoted 17 lines

If you're testing it with master, then the xmllint from host cannot be used because of HOSTPATH filtering recently merged.

For other configuration you can see:
http://www.openembedded.org/wiki/Bitbake_World_Status_Setup

Quoted 8 lines · Benjamin Gaignard

2017-04-12 14:45 GMT+02:00 Martin Jansa <[email protected]>:

Quoted 2 lines

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

That is an error I never had in my setup.
I guess that libxml2 native is missing but I have way to reproduce the problem.
How is it possible to perform the same build then you ?

Quoted 6 lines

You need to make the configure tests for xsltproc, asciidoc and xmllint deterministic. e.g. to remove dependencies on all three, add:

ac_cv_path_XSLTPROC=no
ac_cv_path_A2X=no
ac_cv_path_XMLLINT=no

I don't know what that could break in tinyproxy so I prefer to add the dependencies.

Quoted 95 lines

to EXTRA_OECONF (which would allow you to remove asciidoc-native from DEPENDS).

Quoted 92 lines
Quoted 92 lines
Quoted 35 lines
Quoted 32 lines · Benjamin Gaignard

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

meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
@@ -0,0 +1,14 @@
+[Unit]
+Description=Tinyproxy, Lightweight http(s) proxy daemon
+RequiresMountsFor=/var
+
+[Service]
+Group=tinyproxy
+ExecStartPre=/bin/mkdir -p /var/log/tinyproxy
Quoted 8 lines

Review

Quoted 8 lines
meta-networking/recipes-support/tinyproxy/tinyproxy/tinyproxy.service new file +7 -0
+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
(quoted diff) +0 -0

8.4.bb

Quoted 10 lines

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb line 4

Quoted 10 lines

b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file mode 100644
index 0000000..ef2a2d8

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
@@ -0,0 +1,41 @@
+SUMMARY = "Lightweight http(s) proxy daemon"
+HOMEPAGE = "https://tinyproxy.github.io/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882b

be"

Quoted 3 lines
Quoted 3 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+
+SRC_URI =

"https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz

\

Quoted 33 lines
Quoted 33 lines
meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+                  file://tinyproxy.service"
+
+SRC_URI[md5sum] = "3b60f7d08e0821ed1a3e2cf1e5778cac"
+SRC_URI[sha256sum] =

"8234c879a129feee61efa98bac14a1a3e46e5cf08f01696a216940872aa70faf"

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +25 -0
+
+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

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +2 -0
+               install -d ${D}${systemd_system_unitdir}
+               install -m 0644 ${WORKDIR}/tinyproxy.service
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb line 41

Quoted 5 lines

${D}${systemd_system_unitdir}

meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb new file +4 -0
+       fi
+}
+
+FILES_${PN} =+ "${systemd_system_unitdir}/tinyproxy.service"

This shouldn't be required if SYSTEMD_SERVICE_${PN} includes "tinyproxy.service".

Yes I will remove it.

Quoted 10 lines
Quoted 10 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

--
1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 7 lines
Benjamin Gaignard

Graphic Study Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog