From af507f3e46a363bb1fb85d1fe1376db2f88ab106 Mon Sep 17 00:00:00 2001 From: Suchang Woo Date: Tue, 17 Feb 2015 10:35:00 +0900 Subject: [PATCH] add default conf file for Tizen:TV Change-Id: I5a7d004ea9a09ffa86b59bee43cb0d3232f97933 Signed-off-by: Suchang Woo --- data/tizen/etc/gumd/gumd-tizen-tv.conf | 140 +++++++++++++++++++++++++++++++++ packaging/gumd.spec | 4 + 2 files changed, 144 insertions(+) create mode 100644 data/tizen/etc/gumd/gumd-tizen-tv.conf diff --git a/data/tizen/etc/gumd/gumd-tizen-tv.conf b/data/tizen/etc/gumd/gumd-tizen-tv.conf new file mode 100644 index 0000000..09ff6e5 --- /dev/null +++ b/data/tizen/etc/gumd/gumd-tizen-tv.conf @@ -0,0 +1,140 @@ +# +# gumd Configuration file. +# + +# +# This group contains top-level settings. +# +[General] + +# Primary group name for the new user. If the primary group does not +# exist, it will be created otherwise user gid will be set accordingly. +# Default primary group name is same as name of the user. +USR_PRIMARY_GRPNAME=users + +# Comma separate listed of groups, which every user (other than system user) +# will be added to at the time of user account creation. Default value is: +# '' +DEFAULT_USR_GROUPS=audio,video + +# Comma separate listed of groups, which admin user will be added to at the +# time of user account creation. Default value is: '' +#DEFAULT_ADMIN_GROUPS= + +# Path to passwd file which represents user information. Default is +# /etc/passwd. More information about the file format can be read at the +# manpages for 'passwd'. +# Can be overriden in debug builds by setting UM_PASSWD_FILE +# environment variable. +#PASSWD_FILE=/etc/passwd + +# Path to shadow file which represents user shadowed password information. +# Default is /etc/shadow. More information about the file format can be read +# at the manpages for 'shadow'. +# Can be overriden in debug builds by setting UM_SHADOW_FILE +# environment variable. +#SHADOW_FILE=/etc/shadow + +# Path to group file which represents group information. Default is /etc/group. +# More information about the file format can be read at the manpages for +# 'group'. +# Can be overriden in debug builds by setting UM_GROUP_FILE +# environment variable. +#GROUP_FILE=/etc/group + +# Path to group file which represents shadowed group information. +# Default is /etc/gshadow. More information about the file format can be read +# at the manpages for 'gshadow'. +# Can be overriden in debug builds by setting UM_GSHADOW_FILE +# environment variable. +#GSHADOW_FILE=/etc/gshadow + +# Prefix to be used when creating home directory for the user. For example, +# with prefix '/home', user 'newu' home directory will be created as +# '/home/newu'. Default value is '/home' +# Can be overriden in debug builds by setting UM_HOMEDIR_PREFIX +# environment variable. +#HOME_DIR=/home + +# Path to user shell executable. Default value is '/bin/bash' +#SHELL=/bin/bash + +# Path to skeleton folder. When new users are created, contents of the skel +# folder is copied to user home directory. Default value is '/etc/skel' +# Can be overriden in debug builds by setting UM_SKEL_DIR +# environment variable. +SKEL_DIR=/etc/skel + +# Path to user information folder. +USERINFO_DIR=/var/lib/gumd/user/ + +# Minimum value for the automatic uid selection. Default value is: 1000 +UID_MIN=5001 + +# Maximum value for the automatic uid selection. Default value is: 60000 +UID_MAX=60000 + +# Minimum value for the automatic uid selection for system user. Default +# value is: 100 +SYS_UID_MIN=100 + +# Maximum value for the automatic uid selection for system user. Default value +# is: 999 +SYS_UID_MAX=499 + +# Minimum value for the automatic gid selection. Default value is: 1000 +GID_MIN=5001 + +# Maximum value for the automatic gid selection. Default value is: 60000 +GID_MAX=60000 + +# Minimum value for the automatic gid selection for system user. Default value +# is: 100 +SYS_GID_MIN=100 + +# Maximum value for the automatic gid selection for system user. Default value +# is: 999 +SYS_GID_MAX=499 + +# Minimum number of days a password may be used. Default value is: 0 +#PASS_MIN_DAYS=0 + +# Maximum number of days allowed between password changes. Default value is: +# 99999 +#PASS_MAX_DAYS=99999 + +# Number of days warning given before a password expires. Default value is: +# 7 +#PASS_WARN_AGE=7 + +# Value used to set the mode of home directories created for new users. +# Default value is: 022 +#UMASK=022 + +# Value used to set the encryption algorithm. Default +# value is: 'SHA512' (other supported options are: 'MD5', 'SHA256', 'DES') +#ENCRYPT_METHOD=SHA512 + +# Value used to set the smack label for newly created files and folders. +SMACK64_NEW_FILES=_ + +# Value used to set the smack label for User files and folders. +SMACK64_USER_FILES=User::Home + +# +# D-Bus related settings. +# +[ObjectTimeouts] + +# Timeout in seconds for the daemon. Daemon will exit after specified idle time. +# If not set (or set to 0), the daemon will not exit. Has no effect if P2P DBus +# is in use. +#DAEMON_TIMEOUT=7 + +# Timeout in seconds for user dbus objects. If not set (or set to 0), the dbus +# objects will persist +#USER_TIMEOUT=5 + +# Timeout in seconds for group dbus objects. If not set (or set to 0), the dbus +# objects will persist +#GROUP_TIMEOUT=5 diff --git a/packaging/gumd.spec b/packaging/gumd.spec index 273c38b..3da58f6 100644 --- a/packaging/gumd.spec +++ b/packaging/gumd.spec @@ -95,7 +95,11 @@ rm -f %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf install -m 755 -d %{buildroot}%{_sysconfdir}/%{name} %if "%{profile}" != "ivi" +%if "%{profile}" == "tv" +install -m 644 data/tizen/etc/%{name}/%{name}-tizen-tv.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf +%else install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf +%endif %else install -m 644 data/tizen/etc/%{name}/%{name}-tizen-ivi.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf %endif -- 2.7.4