-
Notifications
You must be signed in to change notification settings - Fork 30
/
luna-sysmgr-conf.bb
57 lines (45 loc) · 1.85 KB
/
luna-sysmgr-conf.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright (c) 2010-2013 LG Electronics, Inc.
SUMMARY = "Open webOS System Manager - machine specific configuration files"
SECTION = "webos/base"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
PV = "3.0.0-3+git${SRCPV}"
SRCREV = "bcbe46be9b841e5d8f9a59f7254d407cd74176ea"
inherit webos_ports_fork_repo
inherit webos_filesystem_paths
PACKAGE_ARCH = "${MACHINE_ARCH}"
WEBOS_REPO_NAME = "luna-sysmgr"
SRC_URI = "${WEBOS_PORTS_GIT_REPO_COMPLETE}"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${webos_sysconfdir}
install -d ${D}${webos_sysmgrdir}
# install all the platform specific conf files
# (no good way to do this with find/xargs, given the <base>-<machine>.conf -> <base>-platform.conf
# name change needed on the install copy => do them all individually)
# install the platform luna.conf file
if [ -f conf/luna-${MACHINE}.conf ]
then
install -v -m 644 conf/luna-${MACHINE}.conf ${D}${webos_sysconfdir}/luna-platform.conf
fi
# install the platform lunaAnimations.conf file
if [ -f conf/lunaAnimations-${MACHINE}.conf ]
then
install -v -m 644 conf/lunaAnimations-${MACHINE}.conf ${D}${webos_sysconfdir}/lunaAnimations-platform.conf
fi
# install the platform defaultPreferences.txt file
if [ -f conf/defaultPreferences-${MACHINE}.txt ]
then
install -v -m 644 conf/defaultPreferences-${MACHINE}.txt ${D}${webos_sysconfdir}/defaultPreferences-platform.txt
fi
if [ -d platform/${MACHINE} ]
then
# copy over platform specific images
if [ -d platform/${MACHINE}/images ]
then
cd ${S}/platform/${MACHINE} && tar --exclude-vcs --exclude-backups -cf - images | tar xf - -C ${D}${webos_sysmgrdir}
cd ${S}
fi
fi
}
FILES_${PN} += "${webos_sysmgrdir}"