Skip to contentSkip to conversation

gnome-user-share: add recipe

PATCH [email protected] 2 participants 4 messages Mar 28, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

one more update ;)

mod-dnssd is moved to meta-webserver/recipes-httpd/apache-mod. I guess thats where it belongs

Quoted 116 lines · Markus Volk

- add it as runtime dependency to gnome-control-center because without it,
the file sharing options are hidden.
- configure the paths to fit to openembedded env
- add mod_dnssd runtime dependency for apache2 as this is a requirement

To enable the feature, PACKAGECONFIG httpd needs to be added. This is not done by default to avoid apache2 runtime dependency just by including this recipe.
NOTE: Apache2 httpd doesn't need to be running. It'll get
started and stopped on demand by systemd.

Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>
---
 .../gnome-control-center_46.0.bb              |  2 +-
 .../gnome-user-share/gnome-user-share_43.0.bb | 24 
+++++++++++++++++++
 .../recipes-httpd/apache-mod/mod-dnssd_git.bb | 21 ++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletion(-)
 create mode 100644 
meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb
 create mode 100644 

meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb

meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb +0 -1
index a691b8d3f..fe9f1efbc 100644
--- 

a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb
+++
b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb

meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb +0 -1
@@ -69,4 +69,4 @@ FILES:${PN} += " \
 
 FILES:${PN}-dev += "${datadir}/gettext"
 
-RDEPENDS:${PN} += "gsettings-desktop-schemas tecla 

system-config-printer cups-pk-helper"
+RDEPENDS:${PN} += "gsettings-desktop-schemas tecla
system-config-printer cups-pk-helper ${@bb.utils.contains <mailto:${@bb.utils.contains>('DISTRO_FEATURES', 'systemd', 'gnome-user-share', '' , d)}"

(quoted diff) +0 -0
new file mode 100644
index 000000000..3ff8f938a

b/meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb

(quoted diff) +1 -0
@@ -0,0 +1,24 @@
+SUMMARY = "This is gnome-user-share 43.0, a system for easy sharing 

of user files."

(quoted diff) +2 -0
+LICENSE="GPL-2.0-only"
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" <file://copying;md5=94d55d512a9ba36caa9b7df079bae19f/>

(quoted diff) +13 -0
+
+
+DEPENDS = " \
+    glib-2.0-native \
+    glib-2.0 \
+    systemd \
+"
+
+inherit gnomebase gsettings features_check
+
+REQUIRED_DISTRO_FEATURES = "systemd"
+
+SRC_URI = 

"git://gitlab.gnome.org/GNOME/gnome-user-share.git;protocol=https;branch=master"

(quoted diff) +6 -0
+SRCREV = "a0e790aa9494db9d1b1f48b4fc0d2f78e112044d"
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ??= "modules"
+PACKAGECONFIG[httpd] = "-Dhttpd=/usr/sbin/httpd,,,apache2 mod-dnssd"
+PACKAGECONFIG[modules] = 

"-Dmodules_path=/usr/libexec/apache2/modules"

(quoted diff) +2 -0
+
+FILES:${PN} += "${systemd_user_unitdir}"
meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb new file +4 -0
new file mode 100644
index 000000000..25bd5f201
@@ -0,0 +1,21 @@
+DESCRIPTION = "Avahi Module for Apache2."
+HOMEPAGE = "https://0pointer.de/lennart/projects/mod_dnssd/"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = 

"file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" <file://license;md5=3b83ef96387f14655fc854ddc3c6bd57/>

meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb new file +4 -0
+
+DEPENDS = "apache2 avahi"
+
+SRC_URI = 

"git://git.0pointer.de/mod_dnssd;protocol=git;branch=master"

meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb new file +11 -0
+SRCREV = "be2fb9f6158f800685de7a1bc01c39b6cf1fa12c"
+PV = "0.6"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OECONF = "--disable-lynx"
+
+inherit autotools pkgconfig
+
+do_install() {
+	install -Dm755 ${S}/src/.libs/mod_dnssd.so 

${D}${libexecdir}/apache2/modules/mod_dnssd.so

meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb new file +2 -1
+}
+
--

2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109666): <https://lists.openembedded.org/g/openembedded-devel/message/109666>
Mute This Topic: <https://lists.openembedded.org/mt/105195949/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

I do not see v7

Quoted 11 lines · On Thu, Mar 28, 2024 at 6:03 AM <[email protected]> wrote:

one more update ;)

mod-dnssd is moved to meta-webserver/recipes-httpd/apache-mod. I guess thats where it belongs

On Thu, Mar 28 2024 at 02:01:44 PM +01:00:00, Markus Volk <[email protected]> wrote:

- add it as runtime dependency to gnome-control-center because without it, the file sharing options are hidden. - configure the paths to fit to openembedded env - add mod_dnssd runtime dependency for apache2 as this is a requirement To enable the feature, PACKAGECONFIG httpd needs to be added. This is not done by default to avoid apache2 runtime dependency just by including this recipe. NOTE: Apache2 httpd doesn't need to be running. It'll get started and stopped on demand by systemd. Signed-off-by: Markus Volk <[email protected]> --- .../gnome-control-center_46.0.bb | 2 +- .../gnome-user-share/gnome-user-share_43.0.bb | 24 +++++++++++++++++++ .../recipes-httpd/apache-mod/mod-dnssd_git.bb | 21 ++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb create mode 100644 meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb diff --git a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb index a691b8d3f..fe9f1efbc 100644 --- a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb +++ b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.0.bb @@ -69,4 +69,4 @@ FILES:${PN} += " \ FILES:${PN}-dev += "${datadir}/gettext" -RDEPENDS:${PN} += "gsettings-desktop-schemas tecla system-config-printer cups-pk-helper" +RDEPENDS:${PN} += "gsettings-desktop-schemas tecla system-config-printer cups-pk-helper ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'gnome-user-share', '' , d)}" diff --git a/meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb b/meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb new file mode 100644 index 000000000..3ff8f938a --- /dev/null +++ b/meta-gnome/recipes-gnome/gnome-user-share/gnome-user-share_43.0.bb @@ -0,0 +1,24 @@ +SUMMARY = "This is gnome-user-share 43.0, a system for easy sharing of user files." +LICENSE="GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" + + +DEPENDS = " \ + glib-2.0-native \ + glib-2.0 \ + systemd \ +" + +inherit gnomebase gsettings features_check + +REQUIRED_DISTRO_FEATURES = "systemd" + +SRC_URI = "git://gitlab.gnome.org/GNOME/gnome-user-share.git;protocol=https;branch=master" +SRCREV = "a0e790aa9494db9d1b1f48b4fc0d2f78e112044d" +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= "modules" +PACKAGECONFIG[httpd] = "-Dhttpd=/usr/sbin/httpd,,,apache2 mod-dnssd" +PACKAGECONFIG[modules] = "-Dmodules_path=/usr/libexec/apache2/modules" + +FILES:${PN} += "${systemd_user_unitdir}" diff --git a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb new file mode 100644 index 000000000..25bd5f201 --- /dev/null +++ b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_git.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Avahi Module for Apache2." +HOMEPAGE = "https://0pointer.de/lennart/projects/mod_dnssd/" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +DEPENDS = "apache2 avahi" + +SRC_URI = "git://git.0pointer.de/mod_dnssd;protocol=git;branch=master" +SRCREV = "be2fb9f6158f800685de7a1bc01c39b6cf1fa12c" +PV = "0.6" + +S = "${WORKDIR}/git" + +EXTRA_OECONF = "--disable-lynx" + +inherit autotools pkgconfig + +do_install() { + install -Dm755 ${S}/src/.libs/mod_dnssd.so ${D}${libexecdir}/apache2/modules/mod_dnssd.so +} + --
2.44.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#109666): https://lists.openembedded.org/g/openembedded-devel/message/109666 Mute This Topic: https://lists.openembedded.org/mt/105195949/3618223 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

mod-dnssd recipe has PV = "0.6" it is better to rename the recipe to mod-dnssd_0.6.bb and remove PV

Quoted 7 lines · On Thu, Mar 28, 2024 at 8:47 AM <[email protected]> wrote:

On Thu, Mar 28 2024 at 07:59:03 AM -07:00:00, Khem Raj <[email protected]> wrote:

I do not see v7

v6 is the latest one