diff options
author | Markus Volk <f_l_k@t-online.de> | 2024-03-28 17:12:58 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-03-28 11:45:02 -0700 |
commit | 0586dd9f1343424be9dae9faa5d1e3e7dadd05d2 (patch) | |
tree | 167639b1f53795bda507f71b7c694b2ce4455249 | |
parent | 6665650b2a66117d5770eecee5bdee69cc4a7a4c (diff) | |
download | meta-openembedded-0586dd9f1343424be9dae9faa5d1e3e7dadd05d2.tar.gz |
gnome-user-share: add recipe
- 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 <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 45 insertions, 1 deletions
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} += " \ | |||
69 | 69 | ||
70 | FILES:${PN}-dev += "${datadir}/gettext" | 70 | FILES:${PN}-dev += "${datadir}/gettext" |
71 | 71 | ||
72 | RDEPENDS:${PN} += "gsettings-desktop-schemas tecla system-config-printer cups-pk-helper" | 72 | 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 @@ | |||
1 | SUMMARY = "This is gnome-user-share 43.0, a system for easy sharing of user files." | ||
2 | LICENSE="GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
4 | |||
5 | |||
6 | DEPENDS = " \ | ||
7 | glib-2.0-native \ | ||
8 | glib-2.0 \ | ||
9 | systemd \ | ||
10 | " | ||
11 | |||
12 | inherit gnomebase gsettings features_check | ||
13 | |||
14 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
15 | |||
16 | SRC_URI = "git://gitlab.gnome.org/GNOME/gnome-user-share.git;protocol=https;branch=master" | ||
17 | SRCREV = "a0e790aa9494db9d1b1f48b4fc0d2f78e112044d" | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | PACKAGECONFIG ??= "modules" | ||
21 | PACKAGECONFIG[httpd] = "-Dhttpd=/usr/sbin/httpd,,,apache2 mod-dnssd" | ||
22 | PACKAGECONFIG[modules] = "-Dmodules_path=/usr/libexec/apache2/modules" | ||
23 | |||
24 | FILES:${PN} += "${systemd_user_unitdir}" | ||
diff --git a/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb new file mode 100644 index 000000000..5fac0a6ed --- /dev/null +++ b/meta-webserver/recipes-httpd/apache-mod/mod-dnssd_0.6.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "Avahi Module for Apache2." | ||
2 | HOMEPAGE = "https://0pointer.de/lennart/projects/mod_dnssd/" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
5 | |||
6 | DEPENDS = "apache2 avahi" | ||
7 | |||
8 | SRC_URI = "git://git.0pointer.de/mod_dnssd;protocol=git;branch=master" | ||
9 | SRCREV = "be2fb9f6158f800685de7a1bc01c39b6cf1fa12c" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | EXTRA_OECONF = "--disable-lynx" | ||
14 | |||
15 | inherit autotools pkgconfig | ||
16 | |||
17 | do_install() { | ||
18 | install -Dm755 ${S}/src/.libs/mod_dnssd.so ${D}${libexecdir}/apache2/modules/mod_dnssd.so | ||
19 | } | ||
20 | |||