Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/ossystems-factory-defaults.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

inherit ossystems-factory-defaults-base

member[doc] = "Return success if the first argument is present in the remaining arguments."
member() {
elt=$1
shift
Expand Down Expand Up @@ -65,7 +66,7 @@ do_install:append() {
local dir
for file in $no_leading_slash; do
dir="${D}/`dirname $file`"
mkdir -p $dir
install -d $dir
cd $dir
ln -sf ${OSSYSTEMS_FACTORY_DEFAULTS_RUNTIME_DIR}/$file `basename $file`
done
Expand Down
34 changes: 17 additions & 17 deletions classes/release-bundle-generation.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install[noexec] = "1"
do_populate_sysroot[noexec] = "1"
do_packagedata[noexec] = "1"
do_package[noexec] = "1"
do_package_qa[noexec] = "1"
do_packagedata[noexec] = "1"

LICENSE = "MIT"
SRC_URI = "file://bundle-shar-extract.sh"

PACKAGES = ""

INHIBIT_DEFAULT_DEPS = "1"
Expand All @@ -35,25 +36,18 @@ RELEASE_BUNDLE_VERSION ?= "${DISTRO_VERSION}"

RELEASE_BUNDLE_DEPLOY = "${DEPLOY_DIR}/release-bundle"
RELEASE_BUNDLE_WORKDIR = "${TMPDIR}/release-bundle/workdir"
RELEASE_BUNDLE_TMP_DOWNLOAD_CACHE ?= "${TMPDIR}/release-bundle/download-cache"
RELEASE_BUNDLE_OUTPUTNAME ?= "${RELEASE_BUNDLE_NAME}-release-${RELEASE_BUNDLE_VERSION}"
RELEASE_BUNDLE_RECIPES_WITH_SOURCE ?= ""

SRC_URI = "file://bundle-shar-extract.sh"

python() {
recipes = d.getVar('RELEASE_BUNDLE_RECIPES_WITH_SOURCE', True).split()
d.appendVarFlag('do_release_bundle_finalize',
'depends',
" ".join(map(lambda x:
x + ":do_collect_recipe_source",
recipes)))

d.delVarFlag('do_build', 'recrdeptask')
d.delVarFlag('do_build', 'depends')
}
do_build[depends] = ""
do_build[recrdeptask] = ""
do_release_bundle_finalize[depends] += "${@' '.join('%s:do_collect_recipe_source' % recipe for recipe in d.getVar('RELEASE_BUNDLE_RECIPES_WITH_SOURCE').split())}"

addtask collect_platform_source before do_release_bundle_finalize
do_collect_platform_source[cleandirs] = "${RELEASE_BUNDLE_WORKDIR}"
do_collect_platform_source[depends] += "repo-native:do_populate_sysroot "
do_collect_platform_source[doc] = "Collect platform repositories into the release bundle work directory."
do_collect_platform_source[nostamp] = "1"
do_collect_platform_source() {
cd "${PLATFORM_ROOT_DIR}"
Expand All @@ -77,6 +71,7 @@ RELEASE_BUNDLE_TAR_OPTS = "--owner=root --group=root"
RELEASE_BUNDLE_OLDEST_KERNEL = "3.2.0"
RELEASE_BUNDLE_PATH = "\$HOME/src/${RELEASE_BUNDLE_NAME}/${RELEASE_BUNDLE_VERSION}"

tar_release_bundle[doc] = "Create the compressed release bundle archive."
fakeroot tar_release_bundle() {
mkdir -p ${RELEASE_BUNDLE_DEPLOY}
cd ${RELEASE_BUNDLE_WORKDIR}
Expand All @@ -86,13 +81,18 @@ fakeroot tar_release_bundle() {
addtask release_bundle_finalize after do_unpack do_collect_platform_source before do_build
do_release_bundle_finalize[dirs] = "${RELEASE_BUNDLE_WORKDIR}/download"
do_release_bundle_finalize[depends] += "pbzip2-native:do_populate_sysroot "
do_release_bundle_finalize[doc] = "Finalize and emit the self-extracting release bundle."
do_release_bundle_finalize() {
cp --archive -L ${RELEASE_BUNDLE_TMP_DOWNLOAD_CACHE}/*/* ${RELEASE_BUNDLE_WORKDIR}/
for bundle_dir in ${RELEASE_BUNDLE_TMP_DOWNLOAD_CACHE}/*/*; do
[ -e "$bundle_dir" ] || continue
cp --archive -L "$bundle_dir" ${RELEASE_BUNDLE_WORKDIR}/
done

find ${RELEASE_BUNDLE_WORKDIR} -type d -empty -delete

tar_release_bundle

cp "${WORKDIR}/bundle-shar-extract.sh" ${RELEASE_BUNDLE_DEPLOY}/${RELEASE_BUNDLE_OUTPUTNAME}.sh
cp "${UNPACKDIR}/bundle-shar-extract.sh" ${RELEASE_BUNDLE_DEPLOY}/${RELEASE_BUNDLE_OUTPUTNAME}.sh

# substitute variables
sed -e "s#@RELEASE_BUNDLE_PATH@#${RELEASE_BUNDLE_PATH}#g" \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
SUMMARY = "Startup script and service for the Chromium Browser using Ozone"
DESCRIPTION = "Installs init scripts, systemd unit files, and default configuration for launching Chromium Ozone Wayland."
HOMEPAGE = "https://www.chromium.org"
BUGTRACKER = "https://issues.chromium.org/issues"
SECTION = "graphics"
CVE_PRODUCT = "chromium"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "\
file://COPYING.MIT \
file://${BPN}.default \
file://${BPN}.initd \
file://${BPN}.service \
"
S = "${UNPACKDIR}"

inherit systemd update-rc.d

## Configuration variables

# URL to load when start.
CHROMIUM_URL ?= "https://ossystems.com.br"
CHROMIUM_URL ?= "https://ossystems.com.br"

# Extra arguments to pass to 'chromium' application.
CHROMIUM_EXTRA_ARGS ?= ""
Expand All @@ -34,13 +41,13 @@ do_compile[noexec] = "1"

do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/chromium-ozone-wayland
install -Dm 0755 ${UNPACKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/chromium-ozone-wayland
fi
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -Dm 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/chromium-ozone-wayland.service
install -Dm 0644 ${UNPACKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/chromium-ozone-wayland.service
fi

install -Dm 0644 ${WORKDIR}/${BPN}.default ${D}${sysconfdir}/default/chromium-ozone-wayland
install -Dm 0644 ${UNPACKDIR}/${BPN}.default ${D}${sysconfdir}/default/chromium-ozone-wayland

echo ${CHROMIUM_ENV} >> ${D}${sysconfdir}/default/chromium-ozone-wayland

Expand All @@ -49,6 +56,8 @@ do_install() {
-i ${D}${sysconfdir}/default/chromium-ozone-wayland
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

RDEPENDS:${PN} += "chromium-ozone-wayland"

PACKAGE_ARCH = "${MACHINE_ARCH}"
BBCLASSEXTEND = ""
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Upstream is dual licensed on GPLv2 | GPLv3, so force GPLv2 in order
# to allow safe checks via image-license-checker
LICENSE = "GPL-2.0-only"

# Disabled by default to avoid conflicts with NM/systemd
SYSTEMD_AUTO_ENABLE = "disable"
SYSTEMD_AUTO_ENABLE:oel = "disable"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
SUMMARY = "Startup script and service for the Kiosk Browser"
DESCRIPTION = "Installs init scripts, systemd unit files, and default configuration for launching Qt Kiosk Browser."
HOMEPAGE = "https://github.com/OSSystems/qt-kiosk-browser"
BUGTRACKER = "https://github.com/OSSystems/qt-kiosk-browser/issues"
SECTION = "graphics"
CVE_PRODUCT = "qt-kiosk-browser"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
SRC_URI = "\
file://COPYING.MIT \
file://${BPN}.default \
file://${BPN}.initd \
file://${BPN}.service \
file://${BPN}.conf \
"
S = "${UNPACKDIR}"

inherit systemd update-rc.d

Expand All @@ -21,7 +28,6 @@ QT_KIOSK_SCREENSAVER_TIME ?= "0"
# Defines the time to restart the browser after entering in screen saving mode (0 to disable).
QT_KIOSK_RESTART_TIME ?= "0"


SYSTEMD_SERVICE:${PN} = "qt-kiosk-browser.service"

# Start after weston-init
Expand All @@ -34,22 +40,24 @@ INITSCRIPT_NAME = "qt-kiosk-browser"

do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
install -Dm 0755 ${WORKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/kiosk
install -Dm 0755 ${UNPACKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/kiosk
fi
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -Dm 0644 ${WORKDIR}/${PN}.service ${D}${systemd_system_unitdir}/qt-kiosk-browser.service
install -Dm 0644 ${UNPACKDIR}/${PN}.service ${D}${systemd_system_unitdir}/qt-kiosk-browser.service
fi

install -Dm 0644 ${WORKDIR}/${PN}.default ${D}${sysconfdir}/default/qt-kiosk-browser
install -Dm 0644 ${UNPACKDIR}/${PN}.default ${D}${sysconfdir}/default/qt-kiosk-browser

install -Dm 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/qt-kiosk-browser.conf
install -Dm 0644 ${UNPACKDIR}/${PN}.conf ${D}${sysconfdir}/qt-kiosk-browser.conf

sed -e 's,@QT_KIOSK_URL@,${QT_KIOSK_URL},g' \
-e 's,@QT_KIOSK_RESTART_TIME@,${QT_KIOSK_RESTART_TIME},g' \
-e 's,@QT_KIOSK_SCREENSAVER_TIME@,${QT_KIOSK_SCREENSAVER_TIME},g' \
-i ${D}${sysconfdir}/qt-kiosk-browser.conf
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

RDEPENDS:${PN} += "qt-kiosk-browser"

PACKAGE_ARCH = "${MACHINE_ARCH}"
BBCLASSEXTEND = ""
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
FILESEXTRAPATHS:prepend:oel := "${THISDIR}/${PN}:"

#The default config file is removed to allow the generation of a new one with the proper parameters
do_install:append() {
do_install:append:oel() {
rm ${D}${sysconfdir}/${PN}.conf
}
28 changes: 0 additions & 28 deletions recipes-core/net-persistent-mac/net-persistent-mac.bb

This file was deleted.

23 changes: 23 additions & 0 deletions recipes-core/net-persistent-mac/net-persistent-mac/COPYING.MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

35 changes: 35 additions & 0 deletions recipes-core/net-persistent-mac/net-persistent-mac_1.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SUMMARY = "Network device MAC persistency"
DESCRIPTION = "Provides support to store/restore the MAC of a specific network device"
HOMEPAGE = "https://github.com/OSSystemsEmbeddedLinux/meta-ossystems-base"
BUGTRACKER = "https://github.com/OSSystemsEmbeddedLinux/meta-ossystems-base/issues"
SECTION = "base"
CVE_PRODUCT = "net-persistent-mac"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "\
file://COPYING.MIT \
file://${BPN} \
file://${BPN}.default \
file://${BPN}.service \
"
S = "${UNPACKDIR}"

OSSYSTEMS_FACTORY_DEFAULTS_HOOKS = "file://${BPN}.factory-defaults-hook"

inherit ossystems-factory-defaults systemd

SYSTEMD_SERVICE:${PN} = "${PN}.service"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
install -Dm 0644 ${UNPACKDIR}/${PN}.service ${D}${systemd_system_unitdir}/${PN}.service
install -Dm 0644 ${UNPACKDIR}/${PN}.default ${D}${sysconfdir}/default/${PN}
install -Dm 0755 ${UNPACKDIR}/${PN} ${D}${bindir}/${PN}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

BBCLASSEXTEND = ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Loading