Rename service file
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 2 Mar 2016 02:48:25 +0000 (11:48 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 2 Mar 2016 04:54:57 +0000 (13:54 +0900)
Change-Id: I68e4e277257574ffce3b52a217e6982f98201049

packaging/libtbm.spec
service/tbm-drm-auth-user.path [new file with mode: 0644]
service/tbm-drm-auth-user.service [new file with mode: 0644]
service/tbm-drm-auth.path [new file with mode: 0644]
service/tbm-drm-auth.service [new file with mode: 0644]
service/tbm-drm-user.path [deleted file]
service/tbm-drm-user.service [deleted file]
service/tbm-drm.path [deleted file]
service/tbm-drm.service [deleted file]

index b2d5a80..7411e25 100644 (file)
@@ -54,26 +54,26 @@ cp -af COPYING %{buildroot}/usr/share/license/%{name}
 
 
 %__mkdir_p %{buildroot}%{_unitdir}
-install -m 644 service/tbm-drm.service %{buildroot}%{_unitdir}
-install -m 644 service/tbm-drm.path %{buildroot}%{_unitdir}
+install -m 644 service/tbm-drm-auth.service %{buildroot}%{_unitdir}
+install -m 644 service/tbm-drm-auth.path %{buildroot}%{_unitdir}
 %__mkdir_p %{buildroot}%{_unitdir_user}
-install -m 644 service/tbm-drm-user.service %{buildroot}%{_unitdir_user}
-install -m 644 service/tbm-drm-user.path %{buildroot}%{_unitdir_user}
+install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user}
+install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user}
 
 %clean
 rm -rf %{buildroot}
 
 %pre
 %__mkdir_p %{_unitdir}/graphical.target.wants
-ln -sf ../tbm-drm.path %{_unitdir}/graphical.target.wants/
+ln -sf ../tbm-drm-auth.path %{_unitdir}/graphical.target.wants/
 
 %__mkdir_p %{_unitdir_user}/default.target.wants
-ln -sf ../tbm-drm-user.path %{_unitdir_user}/default.target.wants/
+ln -sf ../tbm-drm-auth-user.path %{_unitdir_user}/default.target.wants/
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
-rm -f %{_unitdir}/graphical.target.wants/tbm-drm.path
-rm -f %{_unitdir_user}/default.target.wants/tbm-drm-user.path
+rm -f %{_unitdir}/graphical.target.wants/tbm-drm-auth.path
+rm -f %{_unitdir_user}/default.target.wants/tbm-drm-auth-user.path
 
 %files
 %manifest %{name}.manifest
@@ -92,9 +92,9 @@ rm -f %{_unitdir_user}/default.target.wants/tbm-drm-user.path
 %{_includedir}/tbm_bufmgr_backend.h
 %{_includedir}/tbm_type.h
 %{_includedir}/tbm_drm_helper.h
-%{_unitdir}/tbm-drm.path
-%{_unitdir}/tbm-drm.service
-%{_unitdir_user}/tbm-drm-user.path
-%{_unitdir_user}/tbm-drm-user.service
+%{_unitdir}/tbm-drm-auth.path
+%{_unitdir}/tbm-drm-auth.service
+%{_unitdir_user}/tbm-drm-auth-user.path
+%{_unitdir_user}/tbm-drm-auth-user.service
 %{_libdir}/libtbm.so
 %{_libdir}/pkgconfig/libtbm.pc
diff --git a/service/tbm-drm-auth-user.path b/service/tbm-drm-auth-user.path
new file mode 100644 (file)
index 0000000..0eaa8f2
--- /dev/null
@@ -0,0 +1,5 @@
+[Unit]
+Description=Wait for tbm-drm-auth display daemon socket
+
+[Path]
+PathExists=/run/tbm-drm-auth
diff --git a/service/tbm-drm-auth-user.service b/service/tbm-drm-auth-user.service
new file mode 100644 (file)
index 0000000..169a5f6
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=Creating a link file for user to access tbm-drm-auth
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ln -sf /run/tbm-drm-auth /run/user/%U/
diff --git a/service/tbm-drm-auth.path b/service/tbm-drm-auth.path
new file mode 100644 (file)
index 0000000..eaa5251
--- /dev/null
@@ -0,0 +1,5 @@
+[Unit]
+Description=Wait for tbm-drm-auth daemon socket
+
+[Path]
+PathExists=/run/tbm-drm-auth
diff --git a/service/tbm-drm-auth.service b/service/tbm-drm-auth.service
new file mode 100644 (file)
index 0000000..5053155
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description= tbm-drm-auth setup service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/chmod g+w /run/tbm-drm-auth
+ExecStart=/usr/bin/chgrp display /run/tbm-drm-auth
+ExecStart=/usr/bin/chsmack -a User /run/tbm-drm-auth
+
+[Install]
+WantedBy=graphical.target
diff --git a/service/tbm-drm-user.path b/service/tbm-drm-user.path
deleted file mode 100644 (file)
index 8525e86..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Unit]
-Description=Wait for tbm-drm display daemon socket
-
-[Path]
-PathExists=/run/tbm-drm
diff --git a/service/tbm-drm-user.service b/service/tbm-drm-user.service
deleted file mode 100644 (file)
index 3fae24a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Unit]
-Description=Creating a link file for user to access tbm-drm
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/ln -sf /run/tbm-drm /run/user/%U/
diff --git a/service/tbm-drm.path b/service/tbm-drm.path
deleted file mode 100644 (file)
index c8742b4..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Unit]
-Description=Wait for tbm_drm daemon socket
-
-[Path]
-PathExists=/run/tbm-drm
diff --git a/service/tbm-drm.service b/service/tbm-drm.service
deleted file mode 100644 (file)
index dabeeaf..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description= tbm-drm setup service
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/chmod g+w /run/tbm-drm
-ExecStart=/usr/bin/chgrp display /run/tbm-drm
-ExecStart=/usr/bin/chsmack -a User /run/tbm-drm
-
-[Install]
-WantedBy=graphical.target