diff options
Diffstat (limited to 'meta/recipes-webos/luna-prefs')
-rw-r--r-- | meta/recipes-webos/luna-prefs/luna-prefs-data.bb | 47 | ||||
-rw-r--r-- | meta/recipes-webos/luna-prefs/luna-prefs.bb | 32 |
2 files changed, 79 insertions, 0 deletions
diff --git a/meta/recipes-webos/luna-prefs/luna-prefs-data.bb b/meta/recipes-webos/luna-prefs/luna-prefs-data.bb new file mode 100644 index 0000000000..cd6b3844c6 --- /dev/null +++ b/meta/recipes-webos/luna-prefs/luna-prefs-data.bb @@ -0,0 +1,47 @@ +# Copyright (c) 2015 LG Electronics, Inc. + +# WARNING: This recipe appears in the SIGGEN_EXCLUDERECIPES_ABISAFE list in +# conf/layer.conf which means that changes to it will not be used in the generation +# of sstate signatures. This is unlikely to cause problems, unless luna-prefs is +# changed to no longer use the files under /etc/prefs/properties to determine the +# properties its exposes and their values. + +SUMMARY = "Preferences Manager data for ${MACHINE}" +AUTHOR = "Oleksandr Ivanov <oleksandr.ivanov@lge.com>" +SECTION = "webos/base" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +PV = "3.0.0" +PR = "r1" + +inherit webos_machine_dep + +PRODUCT_DEVICE_NAME ?= "${DISTRO_NAME} Device" +PRODUCT_DEVICE_NAME_BRANDED ?= "LGE ${DISTRO_NAME} Device" +PRODUCT_DEVICE_NAME_SHORT ?= "${DISTRO_NAME} Device" +PRODUCT_DEVICE_NAME_SHORT_BRANDED ?= "LGE ${DISTRO_NAME} Device" +PRODUCT_DEVICE_NAME_PRODUCT_LINE_NAME ?= "${DISTRO_NAME} Device" +PRODUCT_DEVICE_NAME_PRODUCT_CLASS ?= "${DISTRO_NAME}" +PRODUCT_DEVICE_NAME_PRODUCT_BROWSER_OS_NAME ?= "${DISTRO_NAME}" + +# Versions can not be overridden +PRODUCT_DEVICE_NAME_PRODUCT_BROWSER_OS_VERSION = "${WEBOS_DISTRO_API_VERSION}" + +do_install() { + install -d ${D}${sysconfdir}/prefs/properties + + echo -n "${PRODUCT_DEVICE_NAME}" > ${D}${sysconfdir}/prefs/properties/deviceName + echo -n "${PRODUCT_DEVICE_NAME_BRANDED}" > ${D}${sysconfdir}/prefs/properties/deviceNameBranded + echo -n "${PRODUCT_DEVICE_NAME_SHORT}" > ${D}${sysconfdir}/prefs/properties/deviceNameShort + echo -n "${PRODUCT_DEVICE_NAME_SHORT_BRANDED}" > ${D}${sysconfdir}/prefs/properties/deviceNameShortBranded + echo -n "${MACHINE}" > ${D}${sysconfdir}/prefs/properties/machineName + echo -n "${PRODUCT_DEVICE_NAME_PRODUCT_LINE_NAME}" > ${D}${sysconfdir}/prefs/properties/productLineName + echo -n "${PRODUCT_DEVICE_NAME_PRODUCT_CLASS}" > ${D}${sysconfdir}/prefs/properties/productClass + echo -n "${PRODUCT_DEVICE_NAME_PRODUCT_BROWSER_OS_NAME}" > ${D}${sysconfdir}/prefs/properties/browserOsName + if [ "webOS" = "${PRODUCT_DEVICE_NAME_PRODUCT_BROWSER_OS_NAME}" ] + then + echo -n "${PRODUCT_DEVICE_NAME_PRODUCT_BROWSER_OS_VERSION}" > ${D}${sysconfdir}/prefs/properties/browserOsVersion + fi +} + diff --git a/meta/recipes-webos/luna-prefs/luna-prefs.bb b/meta/recipes-webos/luna-prefs/luna-prefs.bb new file mode 100644 index 0000000000..b1b03ac8e0 --- /dev/null +++ b/meta/recipes-webos/luna-prefs/luna-prefs.bb @@ -0,0 +1,32 @@ +# Copyright (c) 2012-2018 LG Electronics, Inc. + +SUMMARY = "webOS preferences manager" +AUTHOR = "Oleksandr Ivanov <oleksandr.ivanov@lge.com>" +SECTION = "webos/base" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +DEPENDS = "luna-service2 cjson sqlite3 glib-2.0 nyx-lib" +RDEPENDS_${PN} = "luna-prefs-data" + +WEBOS_VERSION = "3.0.0-1_0827814ccdc5ebe2b372d90120427043cc6ac94e" +PR = "r12" + +#inherit webos_component +inherit webos_public_repo +inherit webos_enhanced_submissions +inherit webos_cmake +inherit webos_program +inherit webos_library +inherit webos_system_bus + +SRC_URI = "${WEBOSOSE_GIT_REPO_COMPLETE}" +S = "${WORKDIR}/git" + +do_install_append() { + # CFISH-930: remove "other" perms granted by pmmakefiles (aka palmmake): + chmod o-rwx ${D}${bindir}/luna-prefs-service + chmod o-rwx ${D}${bindir}/lunaprop + +} + |