[Tizen-submit] 21497: Changes to Tizen:IVI/csr-framework

noreply at tizen.org noreply at tizen.org
Fri Feb 21 20:06:08 GMT 2014


Hi,
Stephane Desneux have made the following changes to csr-framework in project Tizen:IVI. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #21497

  submit:       Tizen:IVI:build/csr-framework(cleanup) -> Tizen:IVI


Message:
Submitter: Stephane Desneux <stephane.desneux at open.eurogiciel.org>
Comments: Add multi-user support
Git project: platform/upstream/csr-framework
Tag: submit/tizen/20140221.200534
Commit: 4009df71f3dbc03d45c73d06ffbf84b3a332a1b5 Add multi-user support

State:   new        2014-02-21T20:05:48 tizenrobot
Comment: <no comment>
spec files:
-----------
--- csr-framework.spec
+++ csr-framework.spec
@@ -1,14 +1,15 @@
 
 Summary: Content Security Framework
 Name: csr-framework
+VCS:           platform/upstream/csr-framework#4009df71f3dbc03d45c73d06ffbf84b3a332a1b5
 Version: 1.0.0
-Release: 1
-VCS:     platform/upstream/csr-framework#submit/tizen/20130912.075649-0-gfb3259f487244540742920126b05b2a04974e0e8
+Release:       0
 License: BSD-3-Clause
 Group: Security/Libraries
 URL: http://tizen.org
 Source: %{name}-%{version}.tar.gz
 Source1001: 	csr-framework.manifest
+BuildRequires: pkgconfig(libtzplatform-config)
 
 %description
 A general purpose content screening and reputation solution. 
@@ -18,7 +19,6 @@
 cp %{SOURCE1001} .
 
 %build 
-
 make all
 
 %install

other changes:
--------------

++++++ csr-framework-1.0.0.tar.gz
--- Makefile
+++ Makefile
@@ -33,7 +33,7 @@
 TARGET = $(OUTDIR)/libsecfw.so
 SRCDIR = framework
 INCLUDE = -I. $(TCS_INC) -I../plugin
-LD_FLAGS := $(LD_FLAGS) -ldl
+LD_FLAGS := $(LD_FLAGS) -ldl -ltzplatform-config-1.0
 
 ifeq ($(TCS_CC), )
 	CC = gcc
Binary files doc/Tizen Web Protection API Specification.pdf and doc/Tizen Web Protection API Specification.pdf differ
Binary files doc/Tizen Web Protection Plugin API Specification.pdf and doc/Tizen Web Protection Plugin API Specification.pdf differ
--- framework/TCSImpl.c
+++ framework/TCSImpl.c
@@ -34,6 +34,9 @@
 #include <dlfcn.h>
 #include <malloc.h>
 
+/* For multi-user support */
+#include <tzplatform_config.h>
+
 #include "TCSImpl.h"
 #include "TCSErrorCodes.h"
 
@@ -49,7 +52,7 @@
 #endif
 
 
-#define PLUGIN_PATH "/opt/usr/share/sec_plugin/libengine.so"
+#define PLUGIN_PATH tzplatform_mkpath(TZ_USER_SHARE, "sec_plugin/libengine.so")
 
 
 typedef TCSLIB_HANDLE (*FuncLibraryOpen)(void);
--- framework/TWPImpl.c
+++ framework/TWPImpl.c
@@ -34,10 +34,13 @@
 #include <dlfcn.h>
 #include <malloc.h>
 
+/* For multi-user support */
+#include <tzplatform_config.h>
+
 #include "TWPImpl.h"
 
 
-#define SITE_PLUGIN_PATH "/opt/usr/share/sec_plugin/libwpengine.so"
+#define SITE_PLUGIN_PATH tzplatform_mkpath(TZ_USER_SHARE, "sec_plugin/libwpengine.so")
 
 #if defined(DEBUG)
 #define DEBUG_LOG(_fmt_, _param_...)    { \

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list