ADD_DEFINITIONS("-D_APPFW_FEATURE_SUPPORT_ONLYCAP")
ENDIF(_APPFW_FEATURE_SUPPORT_ONLYCAP)
-IF(_APPFW_FEATURE_PKGNAME_RESTRICTION)
- ADD_DEFINITIONS("-D_APPFW_FEATURE_PKGNAME_RESTRICTION")
-ENDIF(_APPFW_FEATURE_PKGNAME_RESTRICTION)
-
IF(_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY)
ADD_DEFINITIONS("-D_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY")
ENDIF(_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY)
_installer_util_delete_dir(root_path);
}
-#ifdef _APPFW_FEATURE_PKGNAME_RESTRICTION
/*pkgid should not be same with SMACK label used by system*/
if (security_server_check_domain_name(pkgid) == SECURITY_SERVER_API_SUCCESS) {
_LOGE("Cannot install this pkg[%s] : It has invalid pkg name", pkgid);
ret = RPM_INSTALLER_ERR_INTERNAL;
goto err;
}
-#endif
/* pre_install */
ret = __pre_install_for_mmc(pkgid, pkgfile, &dir_list, &handle, pkg_file_info->install_location);
%if "%{?tizen_profile_name}" == "tv"
%define appfw_feature_support_onlycap 0
%define appfw_feature_support_debugmode_for_sdk 0
-%define appfw_feature_pkgname_restriction 0
%define appfw_feature_directory_permission_opt_only 1
%else
%define appfw_feature_support_onlycap 1
%define appfw_feature_support_debugmode_for_sdk 1
-%define appfw_feature_pkgname_restriction 1
%define appfw_feature_directory_permission_opt_only 0
%endif
_SUPPORT_DEBUGMODE_FOR_SDK=OFF
%endif
-%if 0%{?appfw_feature_pkgname_restriction}
-_APPFW_FEATURE_PKGNAME_RESTRICTION=ON
-%endif
-
%if 0%{?appfw_feature_directory_permission_opt_only}
_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY=ON
%else
-D_APPFW_FEATURE_MOUNT_INSTALL:BOOL=${_MOUNT_INSTALL} \
-D_APPFW_FEATURE_SUPPORT_DEBUGMODE_FOR_SDK:BOOL=${_SUPPORT_DEBUGMODE_FOR_SDK} \
-D_APPFW_FEATURE_SUPPORT_ONLYCAP:BOOL=${_SUPPORT_ONLYCAP} \
- -D_APPFW_FEATURE_PKGNAME_RESTRICTION:BOOL=${_APPFW_FEATURE_PKGNAME_RESTRICTION} \
-D_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY:BOOL=${_APPFW_FEATURE_DIRECTORY_PERMISSION_OPT_ONLY}
make %{?jobs:-j%jobs}