Code Review
/
AGL
/
meta-agl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
agl-service: hvac: add HVAC service recipe
[AGL/meta-agl.git]
/
meta-app-framework
/
recipes-core
/
base-files
/
base-files_%.bbappend
diff --git
a/meta-app-framework/recipes-core/base-files/base-files_%.bbappend
b/meta-app-framework/recipes-core/base-files/base-files_%.bbappend
index
7e12bc8
..
b837d03
100644
(file)
--- a/
meta-app-framework/recipes-core/base-files/base-files_%.bbappend
+++ b/
meta-app-framework/recipes-core/base-files/base-files_%.bbappend
@@
-1,12
+1,19
@@
-
DEPENDS_append_smack = " smack-userspace-native
"
-
RDEPENDS_${PN}_append_smack = " smack-userspac
e"
+
RDEPENDS_${PN}_append_with-lsm-smack = " smack
"
+
PACKAGE_WRITE_DEPS_append_with-lsm-smack = " smack-nativ
e"
do_install_append() {
install -d ${D}/${sysconfdir}/skel/app-data
install -d ${D}/${sysconfdir}/skel/.config
do_install_append() {
install -d ${D}/${sysconfdir}/skel/app-data
install -d ${D}/${sysconfdir}/skel/.config
+ install -m 0755 -d ${D}/var
+ if [ -d ${D}/usr/local ]; then
+ mv ${D}/usr/local ${D}/var
+ else
+ install -m 0755 -d ${D}/var/local
+ fi
+ ln -s ../../var/local ${D}/usr/local
}
}
-do_install_append_smack () {
+do_install_append_
with-lsm-
smack () {
install -d ${D}/${sysconfdir}/smack/accesses.d
cat > ${D}/${sysconfdir}/smack/accesses.d/default-access-domains-no-user <<EOF
System User::App-Shared rwxat
install -d ${D}/${sysconfdir}/smack/accesses.d
cat > ${D}/${sysconfdir}/smack/accesses.d/default-access-domains-no-user <<EOF
System User::App-Shared rwxat
@@
-15,8
+22,9
@@
EOF
chmod 0644 ${D}/${sysconfdir}/smack/accesses.d/default-access-domains-no-user
}
chmod 0644 ${D}/${sysconfdir}/smack/accesses.d/default-access-domains-no-user
}
-pkg_postinst_${PN}_append_smack() {
+pkg_postinst_${PN}_append_
with-lsm-
smack() {
chsmack -r -a 'User::Home' -t -D $D/${sysconfdir}/skel
chsmack -a 'User::App-Shared' -D $D/${sysconfdir}/skel/app-data
chsmack -r -a 'User::Home' -t -D $D/${sysconfdir}/skel
chsmack -a 'User::App-Shared' -D $D/${sysconfdir}/skel/app-data
+ cp -rTf --preserve=all $D/${sysconfdir}/skel $D/${ROOT_HOME}
}
}