diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/libprivacy-manager-client.manifest | 5 | ||||
-rw-r--r-- | packaging/privacy-manager-client.manifest | 5 | ||||
-rw-r--r-- | packaging/privacy-manager-server.changes | 2 | ||||
-rw-r--r-- | packaging/privacy-manager-server.manifest | 18 | ||||
-rw-r--r-- | packaging/privacy-manager-server.service | 9 | ||||
-rw-r--r-- | packaging/privacy-manager.spec | 155 |
6 files changed, 194 insertions, 0 deletions
diff --git a/packaging/libprivacy-manager-client.manifest b/packaging/libprivacy-manager-client.manifest new file mode 100644 index 0000000..c00c25b --- /dev/null +++ b/packaging/libprivacy-manager-client.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_" /> + </request> +</manifest> diff --git a/packaging/privacy-manager-client.manifest b/packaging/privacy-manager-client.manifest new file mode 100644 index 0000000..c00c25b --- /dev/null +++ b/packaging/privacy-manager-client.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_" /> + </request> +</manifest> diff --git a/packaging/privacy-manager-server.changes b/packaging/privacy-manager-server.changes new file mode 100644 index 0000000..a8af1cc --- /dev/null +++ b/packaging/privacy-manager-server.changes @@ -0,0 +1,2 @@ +* Thu Jul 25 2013 Hyunwoo Kim <hwlove.kim@samsung.com> +- If a feature is not supported in devices, related privacy ID is ignored. diff --git a/packaging/privacy-manager-server.manifest b/packaging/privacy-manager-server.manifest new file mode 100644 index 0000000..51c3106 --- /dev/null +++ b/packaging/privacy-manager-server.manifest @@ -0,0 +1,18 @@ +<manifest> + <define> + <domain name="privacy-manager" /> + <provide> + <label name="privacy-manager::daemon" /> + <label name="privacy-manager::db" /> + </provide> + <request> + <smack request="security-server::api-app-permissions" type="w"/> + </request> + </define> + <request> + <domain name="_" /> + </request> + <assign> + <filesystem path="/opt/dbspace/.privacylist.db" label="privacy-manager::db" exec_label="none" /> + </assign> +</manifest> diff --git a/packaging/privacy-manager-server.service b/packaging/privacy-manager-server.service new file mode 100644 index 0000000..2e7a99c --- /dev/null +++ b/packaging/privacy-manager-server.service @@ -0,0 +1,9 @@ + +[Unit] +Description=privacy manager server + +[Service] +ExecStart=/usr/bin/privacy-manager-server + +[Install] +WantedBy=multi-user.target diff --git a/packaging/privacy-manager.spec b/packaging/privacy-manager.spec new file mode 100644 index 0000000..69c3234 --- /dev/null +++ b/packaging/privacy-manager.spec @@ -0,0 +1,155 @@ +Name: privacy-manager-server +Summary: Privacy Management +Version: 0.0.6 +Release: 0 +Group: System/Libraries +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: privacy-manager-server.service +BuildRequires: cmake +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(capi-base-common) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(db-util) +BuildRequires: pkgconfig(pkgmgr-info) +BuildRequires: pkgconfig(capi-system-info) +BuildRequires: pkgconfig(libprivilege-control) +BuildRequires: pkgconfig(security-server) +BuildRequires: pkgconfig(capi-appfw-app-manager) +BuildRequires: pkgconfig(capi-appfw-package-manager) +BuildRequires: pkgconfig(libsmack) +BuildRequires: pkgconfig(vconf) +BuildRequires: gettext-tools + +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description +Privacy Management + +%package -n privacy-manager-server-devel +summary: privacy-manager server +Group: Development/Libraries +Requires: privacy-manager-server = %{version}-%{release} + +%description -n privacy-manager-server-devel +privacy-manager server devel + +%package -n privacy-manager-client +summary: privacy-manager client +Group: Development/Libraries +Requires: privacy-manager-server = %{version}-%{release} + +%description -n privacy-manager-client +privacy-manager client + +%package -n privacy-manager-client-devel +Summary: privacy-manager client devel +Group: Development/Libraries +BuildRequires: pkgconfig(libxml-2.0) +Requires: privacy-manager-client = %{version}-%{release} + +%description -n privacy-manager-client-devel +Privacy Management(development files) + +%prep +%setup -q + +%build +#%{!?build_type:%define build_type "Release"} + +export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" +export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" +export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" + +export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE" +export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE" +export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE" + +echo cmake . -DPREFIX=%{_prefix} \ + -DEXEC_PREFIX=%{_exec_prefix} \ + -DLIBDIR=%{_libdir} \ + -DINCLUDEDIR=%{_includedir} \ + -DCMAKE_BUILD_TYPE=%{build_type} \ + -DVERSION=%{version} \ + -DFILTER_LISTED_PKG=ON +cmake . -DPREFIX=%{_prefix} \ + -DEXEC_PREFIX=%{_exec_prefix} \ + -DLIBDIR=%{_libdir} \ + -DINCLUDEDIR=%{_includedir} \ + -DCMAKE_BUILD_TYPE=%{build_type} \ + -DVERSION=%{version} \ + -DFILTER_LISTED_PKG=ON +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/license +cp LICENSE.Apache-2.0 %{buildroot}/usr/share/license/privacy-manager-server +mkdir -p %{buildroot}/usr/share/license +cp LICENSE.Apache-2.0 %{buildroot}/usr/share/license/privacy-manager-client +mkdir -p %{buildroot}/usr/bin +cp res/usr/bin/* %{buildroot}/usr/bin/ +mkdir -p %{buildroot}/opt/dbspace +cp res/opt/dbspace/.privacylist.db /%{buildroot}/opt/dbspace/ +mkdir -p %{buildroot}/usr/share/privacy-manager/ +cp res/usr/share/privacy-manager/privacy-filter-list.ini %{buildroot}/usr/share/privacy-manager/ +cp res/usr/share/privacy-manager/privacy-location-filter-list.ini %{buildroot}/usr/share/privacy-manager/ + +%make_install + +mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants + +%clean +rm -rf %{buildroot} + +%post -n privacy-manager-server +/sbin/ldconfig + +echo "Check privacy DB" +if [ ! -f /opt/dbspace/.privacy.db ] +then + echo "Create privacy DB" + /usr/bin/privacy_manager_create_clean_db.sh +fi +rm /usr/bin/privacy_manager_create_clean_db.sh +rm /usr/bin/privacy_db.sql + +%postun +/sbin/ldconfig + +%files -n privacy-manager-server +%defattr(-,root,root,-) +%manifest packaging/privacy-manager-server.manifest +%{_libdir}/libprivacy-manager-server.so* +/usr/share/license/privacy-manager-server +/opt/dbspace/.privacylist.db +/usr/bin/* + +%files -n privacy-manager-server-devel +%{_includedir}/privacy_manager/privacy_manager_daemon.h +%{_libdir}/pkgconfig/privacy-manager-server.pc + +%files -n privacy-manager-client +%defattr(-,root,root,-) +%manifest packaging/privacy-manager-client.manifest +%{_libdir}/libprivacy-manager-client.so* +/usr/share/license/privacy-manager-client +/usr/share/privacy-manager/privacy-filter-list.ini +/usr/share/privacy-manager/privacy-location-filter-list.ini +/usr/etc/package-manager/parserlib/libprivileges.so + +%files -n privacy-manager-client-devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/privacy-manager-client.pc + +%{_includedir}/privacy_manager/PrivacyManagerClient.h +%{_includedir}/privacy_manager/PrivacyChecker.h +%{_includedir}/privacy_manager/privacy_info_client.h +%{_includedir}/privacy_manager/privacy_manager_client.h +%{_includedir}/privacy_manager/privacy_checker_client.h +%{_includedir}/privacy_manager/privacy_manager_client_types.h + |