BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(openssl)
-BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(dpl-efl)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libpcre)
%build
%{!?build_type:%define build_type "Release"}
%cmake . -DPREFIX=%{_prefix} \
- -DEXEC_PREFIX=%{_exec_prefix} \
- -DBINDIR=%{_bindir} \
- -DINCLUDEDIR=%{_includedir} \
- -DCMAKE_BUILD_TYPE=%{build_type} \
- -DTZ_SYS_SHARE=%TZ_SYS_SHARE \
- -DTZ_SYS_BIN=%TZ_SYS_BIN
+ -DEXEC_PREFIX=%{_exec_prefix} \
+ -DBINDIR=%{_bindir} \
+ -DINCLUDEDIR=%{_includedir} \
+ -DCMAKE_BUILD_TYPE=%{build_type} \
+ -DTZ_SYS_SHARE=%TZ_SYS_SHARE \
+ -DTZ_SYS_BIN=%TZ_SYS_BIN
make %{?jobs:-j%jobs}
fi
fi
-chsmack -a 'User' %TZ_SYS_DB/.cert_svc_vcore.db*
+chsmack -a 'User' %{TZ_SYS_DB}/.cert_svc_vcore.db*
%endif #tizen_feature_certsvc_ocsp_crl
%postun
/sbin/ldconfig
%defattr(-,root,root,-)
%manifest %{name}.manifest
-%attr(0755,root,root) %{_bindir}/cert_svc_create_clean_db.sh
+%attr(0755,root,root) %{TZ_SYS_BIN}/cert_svc_create_clean_db.sh
%{_libdir}/*.so.*
#%{_bindir}/dpkg-pki-sig
%{TZ_SYS_SHARE}/cert-svc/targetinfo
%if 0%{?tizen_feature_certsvc_ocsp_crl}
-%{_datadir}/cert-svc/cert_svc_vcore_db.sql
+%{TZ_SYS_SHARE}/cert-svc/cert_svc_vcore_db.sql
%endif
-%{_datadir}/license/%{name}
+%{TZ_SYS_SHARE}/license/%{name}
%{TZ_SYS_SHARE}/cert-svc/schema/schema.xsd
%dir %attr(0755,root,use_cert) %{TZ_SYS_SHARE}/cert-svc
-#%dir %attr(0755,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/ca-certs
-#%dir %attr(0755,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/ca-certs/code-signing
-#%dir %attr(0755,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/ca-certs/code-signing/native
-#%dir %attr(0755,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/ca-certs/code-signing/wac
-
-#%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/certs/code-signing
-#%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/certs/code-signing/wac
-#%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/certs/code-signing/tizen
%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc
%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/certs
%dir %attr(0775,root,use_cert) %{TZ_SYS_SHARE}/cert-svc/certs/sim
#include <dpl/assert.h>
#include <dpl/log/log.h>
+#include <tzplatform_config.h>
+
namespace {
#ifdef TIZEN_FEATURE_CERT_SVC_OCSP_CRL
DPL::DB::ThreadDatabaseSupport *threadInterface = NULL;
-const std::string DatabasePath = "/opt/dbspace/.cert_svc_vcore.db";
+const std::string DatabasePath = tzplatform_mkpath(TZ_SYS_DB, ".cert_svc_vcore.db");
#endif
-const std::string FingerprintListPath = "/usr/share/ca-certificates/fingerprint/fingerprint_list.xml";
-const std::string FingerprintListSchemaPath = "/usr/share/ca-certificates/fingerprint/fingerprint_list.xsd";
+const std::string FingerprintListPath = tzplatform_mkpath(TZ_SYS_SHARE, "ca-certificates/fingerprint/fingerprint_list.xml");
+const std::string FingerprintListSchemaPath = tzplatform_mkpath(TZ_SYS_SHARE, "ca-certificates/fingerprint/fingerprint_list.xsd");
} // namespace anonymous