Add activationd rules and organize RPMs 70/211670/2 accepted/tizen/unified/20190809.035628 submit/tizen/20190809.010812
authorHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 8 Aug 2019 04:17:11 +0000 (13:17 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 8 Aug 2019 04:17:56 +0000 (13:17 +0900)
Change-Id: I2fb5757093b15b8e1b170e6086dfb70e549c42fa
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
activation.conf [new file with mode: 0644]
dbus_listener.conf [new file with mode: 0644]
packaging/activationd-plugin.manifest [new file with mode: 0644]
packaging/activationd-plugin.spec
unit_control_whitelist.conf [new file with mode: 0644]
vconf_listener.conf [new file with mode: 0644]

diff --git a/activation.conf b/activation.conf
new file mode 100644 (file)
index 0000000..2678c4e
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       "rules":[
+       ]
+}
diff --git a/dbus_listener.conf b/dbus_listener.conf
new file mode 100644 (file)
index 0000000..92a52f4
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       "signals":[
+       ]
+}
diff --git a/packaging/activationd-plugin.manifest b/packaging/activationd-plugin.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
index eef5dee..f0cebd9 100644 (file)
@@ -1,31 +1,39 @@
 Name:       activationd-plugin
-Summary:    GObject bindings for libudev
-Group:      System/Libraries
-Version:    0.1.0
+Version:    0.1.1
 Release:    0
 License:    Apache-2.0
-
-Source0:    %{name}-%{version}.tgz
-Source1:    %{name}.manifest
-
-%package devel
-Summary:    Activationd plugin modules
+Source0:    %{name}-%{version}.tar.xz
+Source1001: %{name}.manifest
+Summary:    Event-based activation daemon rules
+Group:      System/Monitoring
+Requires:   activationd
 
 %description
-Activationd plugin modules
+Rules for activationd
 
 %prep
+
 %setup -q
+cp %{SOURCE1001} .
 
 %build
-cp %{SOURCE1} .
-make
 
 %install
-make install DESTDIR=%{buildroot}
+%define cdir %{_libdir}/actd/modules.conf.d
+%define bcdir %{buildroot}/%{cdir}
+%define fname 70-activationd-plugin.conf
+
+mkdir -p %{bcdir}/unit_control_eh.conf.d
+mkdir -p %{bcdir}/vconf_listener_eh.conf.d
+mkdir -p %{bcdir}/dbus_listener.conf.d
+mkdir -p %{bcdir}/activation_eh.conf.d
+install -m644 unit_control_whitelist.conf %{bcdir}/unit_control_eh.conf.d/%{fname}
+install -m644 vconf_listener.conf %{bcdir}/vconf_listener_eh.conf.d/%{fname}
+install -m644 dbus_listener.conf  %{bcdir}/dbus_listener.conf.d/%{fname}
+install -m644 activation.conf     %{bcdir}/activation_eh.conf.d/%{fname}
 
 %files
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%{cdir}/unit_control_eh.conf.d/%{fname}
+%{cdir}/vconf_listener_eh.conf.d/%{fname}
+%{cdir}/activation_eh.conf.d/%{fname}
+%{cdir}/dbus_listener.conf.d/%{fname}
diff --git a/unit_control_whitelist.conf b/unit_control_whitelist.conf
new file mode 100644 (file)
index 0000000..11b950d
--- /dev/null
@@ -0,0 +1,15 @@
+{
+       "whitelist":[
+               "bluetooth-hci-logger.service",
+               "bluetooth-hci-logger-stop.service",
+               "bluetooth-hci-up.service",
+               "bluetooth-hci-down.service",
+               "bluetooth-stack-up.service",
+               "bluetooth-stack-down.service",
+               "bluetooth-stack-down-with-radio.service",
+               "bluetooth-rfkill-block.service",
+               "bluetooth-rfkill-unblock.service",
+               "bluez-start.service",
+               "bluetooth-share-start.service"
+       ]
+}
diff --git a/vconf_listener.conf b/vconf_listener.conf
new file mode 100644 (file)
index 0000000..a3c9bad
--- /dev/null
@@ -0,0 +1,3 @@
+{
+       "keys":[]
+}