X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fstc-manager.spec;h=b86122b4254bb5bb822df5b7e090ba754028b30d;hb=f96096d10de30f2feae573ba758d8a8277a2f607;hp=d52468343a7ba82cbc8e09962de4ab2adbfbf863;hpb=36fa79a2cc082b052a069775b0d8269a251a1b28;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git diff --git a/packaging/stc-manager.spec b/packaging/stc-manager.spec index d524683..b86122b 100644 --- a/packaging/stc-manager.spec +++ b/packaging/stc-manager.spec @@ -1,6 +1,6 @@ Name: stc-manager Summary: STC(Smart Traffic Control) manager -Version: 0.0.79 +Version: 0.0.91 Release: 0 Group: Network & Connectivity/Other License: Apache-2.0 @@ -57,12 +57,31 @@ Summary: STC manager exception proc file system plugin %description plugin-procfs A smart traffic control manager extension for proc file system plugin +%package plugin-pcap +Summary: STC manager exception packet capture plugin +BuildRequires: libpcap-devel + +%description plugin-pcap +A smart traffic control manager extension for packet capture plugin + %package plugin-tether Summary: Tethering plugin for data usage of tethering clients %description plugin-tether A smart traffic control manager extension for tethering client data usage plugin +%package plugin-monitor +Summary: Monitor plugin for data usage of clients + +%description plugin-monitor +A smart traffic control manager extension for monitoring client data usage plugin + +%package plugin-firewall +Summary: Firewall plugin for managing firewall rules + +%description plugin-firewall +A smart traffic control manager extension for firewall plugin + %prep %setup -q chmod 644 %{SOURCE0} @@ -72,6 +91,10 @@ chmod 644 %{SOURCE0} export CFLAGS="$CFLAGS -D_GNU_SOURCE" export CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE" +%if "%{tizen_profile_name}" == "tv" + CFLAGS+=" -DTIZEN_TV_EXT" +%endif + %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DBIN_DIR=%{_bindir} \ -DLIB_PATH=%{_lib} \ @@ -113,6 +136,9 @@ ln -s ../stc-manager.service %{buildroot}%{_libdir}/systemd/system/multi-user.ta mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d cp resources/dbus/stc-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/stc-manager.conf +mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/ +cp resources/dbus/net.stc-manager.service %{buildroot}%{_datadir}/dbus-1/system-services/net.stc-manager.service + %files %manifest %{name}.manifest %license LICENSE @@ -127,6 +153,7 @@ cp resources/dbus/stc-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/st #DBus DAC %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/* +%attr(644,root,root) %{_datadir}/dbus-1/system-services/* %if %{?enable_database} == YES %config(noreplace) %attr(660, root, root) %{database_full_path} @@ -150,6 +177,18 @@ cp resources/dbus/stc-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/st %manifest %{name}.manifest %attr(500,root,root) %{_libdir}/stc-plugin-procfs.so +%files plugin-pcap +%manifest %{name}.manifest +%attr(500,root,root) %{_libdir}/stc-plugin-pcap.so + %files plugin-tether %manifest %{name}.manifest %attr(500,root,root) %{_libdir}/stc-plugin-tether.so + +%files plugin-monitor +%manifest %{name}.manifest +%attr(500,root,root) %{_libdir}/stc-plugin-monitor.so + +%files plugin-firewall +%manifest %{name}.manifest +%attr(500,root,root) %{_libdir}/stc-plugin-firewall.so