Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meta-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
meta-nemo
Commits
69e52914
Commit
69e52914
authored
Feb 06, 2016
by
Florent Revest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
statefs: register loader and providers at first boot
parent
0e936c7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
statefs-providers_git.bb
recipes-nemomobile/statefs/statefs-providers_git.bb
+1
-0
statefs_git.bb
recipes-nemomobile/statefs/statefs_git.bb
+39
-3
No files found.
recipes-nemomobile/statefs/statefs-providers_git.bb
View file @
69e52914
...
...
@@ -10,6 +10,7 @@ PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
DEPENDS += "statefs boost qtbase statefs-qt qtsensors"
RDEPENDS_${PN} += "statefs-loader-qt"
inherit cmake_qt5
EXTRA_OECMAKE=" -DVERSION=x.x.x -DOE_QMAKE_PATH_EXTERNAL_HOST_BINS=${STAGING_DIR_NATIVE}/usr/bin/"
...
...
recipes-nemomobile/statefs/statefs_git.bb
View file @
69e52914
...
...
@@ -10,8 +10,8 @@ PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
DEPENDS += "boost fuse cor"
RDEPENDS_${PN} += "statefs-providers"
EXTRA_OECMAKE=" -DVERSION=0.3.0"
RDEPENDS_${PN} += "statefs-providers
util-linux-getopt
"
EXTRA_OECMAKE=" -DVERSION=0.3.0
-DENABLE_USER_SESSION=ON -DSYSTEMD_USER_UNIT_DIR=/usr/lib/systemd/user/
"
inherit cmake
...
...
@@ -21,5 +21,41 @@ do_configure_prepend() {
sed -i "/examples/d" CMakeLists.txt
}
FILES_${PN} += "/usr/lib/systemd"
do_install_append() {
install -d ${D}/etc/sysconfig/statefs/
echo "STATEFS_GID=1007" > ${D}/etc/sysconfig/statefs/system.conf
echo "STATEFS_UMASK=0002" >> ${D}/etc/sysconfig/statefs/system.conf
echo "STATEFS_GID=1007" > ${D}/etc/sysconfig/statefs/session.conf
echo "STATEFS_UMASK=0002" >> ${D}/etc/sysconfig/statefs/session.conf
install -d ${D}/var/lib/statefs/system
install -d ${D}/lib/systemd/system/multi-user.target.wants/
install -d ${D}/usr/lib/systemd/user/default.target.wants/
mv ${D}/usr/lib/systemd/system/statefs-system.service ${D}/lib/systemd/system/statefs-system.service
ln -s ../statefs.service ${D}/usr/lib/systemd/user/default.target.wants/statefs.service
ln -s ../statefs-system.service ${D}/lib/systemd/system/multi-user.target.wants/statefs-system.service
}
pkg_postinst_${PN}() {
#!/bin/sh -e
if [ x"$D" = "x" ]; then
setcap CAP_SYS_ADMIN=ep /usr/bin/statefs
/usr/lib/statefs/loader-action register /usr/lib/statefs/libloader-default.so
/usr/lib/statefs/loader-action register /usr/lib/statefs/libloader-inout.so
/usr/lib/statefs/loader-action register /usr/lib/statefs/libloader-qt5.so
/usr/lib/statefs/provider-action register /usr/lib/statefs/libprovider-power_udev.so default --system
/usr/lib/statefs/provider-action register /usr/lib/statefs/libprovider-bluez.so qt5 --system
/usr/lib/statefs/provider-action register /usr/lib/statefs/libprovider-connman.so qt5 --system
/usr/lib/statefs/provider-action register /usr/lib/statefs/libprovider-mce.so qt5 --system
/usr/lib/statefs/provider-action register /usr/lib/statefs/libprovider-profile.so qt5
/usr/lib/statefs/provider-action register /etc/timed-statefs.conf inout
else
exit 1
fi
}
FILES_${PN} += "/lib/systemd/ /usr/lib/systemd /var/lib/statefs/ /etc/sysconfig/statefs/"
FILES_${PN}-dbg += "/opt/"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment