Change-Id: Ie23fbda18c9f7cc0562b11d0cab735ea4afa9c0a
Signed-off-by: Baptiste Durand <baptiste.durand@open.eurogiciel.org>
-inherit manifest autotools-brokensep
+inherit manifest autotools-brokensep useradd
BBCLASSEXTEND = ""
PROVIDES = ""
BBCLASSEXTEND = ""
PROVIDES = ""
ldconfig
# Create tizenglobalapp user needed for global installation
ldconfig
# Create tizenglobalapp user needed for global installation
- useradd -d $D${prefix}/apps -m tizenglobalapp -r -c "system user for common applications" -g root
#mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
#cd %TZ_SYS_RW_APP/
#ln -s .config/xwalk-service/applications/
#mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
#cd %TZ_SYS_RW_APP/
#ln -s .config/xwalk-service/applications/
chsmack -a '*' $D${prefix}/share/icons/default/small/
chmod g+w $D${prefix}/share/applications
chmod g+w $D${prefix}/share/applications
chsmack -a '*' $D${prefix}/share/icons/default/small/
chmod g+w $D${prefix}/share/applications
chmod g+w $D${prefix}/share/applications
- chown tizenglobalapp:root $D${prefix}/share/applications
- chown tizenglobalapp:root $D${prefix}/share/applications
- chown tizenglobalapp:root $D${prefix}/apps
- chown tizenglobalapp:root $D${prefix}/dbspace
- chown tizenglobalapp:root $D${prefix}/dbspace
- chown tizenglobalapp:root -R $D${prefix}/share/icons
+ chown 9998:root $D${prefix}/share/applications
+ chown 9998:root $D${prefix}/share/applications
+ chown 9998:root $D${prefix}/apps
+ chown 9998:root $D${prefix}/dbspace
+ chown 9998:root $D${prefix}/dbspace
+ chown 9998:root -R $D${prefix}/share/icons
chsmack -a '*' $D${prefix}/dbspace/.app_info.db*
chsmack -a '*' $D${prefix}/dbspace/.app_info.db*
require ail-extraconf.inc
require ail-extraconf.inc
+USERADD_PACKAGES = "ail"
+
+USERADD_PARAM_${PN} = " -u 9998 -m -d ${prefix}/apps -r -c 'system user for common applications' -g users tizenglobalapp"
+
+
RDEPENDS_${PN}_class-native += "coreutils"
RDEPENDS_${PN}_class-native += "smack"
RDEPENDS_${PN}_class-native += "coreutils"
RDEPENDS_${PN}_class-native += "smack"
do_prep_class-native() {
cd ${S}
do_prep_class-native() {
cd ${S}
+
+USERADD_PACKAGES = "buxton"
+
+USERADD_PARAM_${PN} = " -u 9997 -m buxton"
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
#!/bin/sh -e
[ "x$D" == "x" ] && ldconfig
+ [ "x$D" != "x" ] && exit 1
#buxtond runs as user buxton, which much be created
#buxtond runs as user buxton, which much be created
buxtonctl create-db base
buxtonctl create-db isp
if [ "$1" -eq 1 ] ; then
buxtonctl create-db base
buxtonctl create-db isp
if [ "$1" -eq 1 ] ; then
DESCRIPTION = "A weston image with Tizen common ."
# Crosswalk
DESCRIPTION = "A weston image with Tizen common ."
# Crosswalk
# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata security-manager"
# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata security-manager"
+
+EXTRA_USERS_PARAMS = "usermod -g root tizenglobalapp;"
+