Logoj0ke.net Open Build Service > Projects > multimedia > cdemu-daemon > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed cdemu-daemon.spec
x
 
1
@@ -8,7 +8,7 @@
2
 Group:         System Environment/Base
3
 URL:           http://cdemu.sourceforge.net
4
 Source0:       http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
5
-Source1:       cdemu-daemon.init
6
+Source1:       cdemu-daemon.init.suse
7
 Source2:       cdemu-daemon.sysconfig
8
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9
 BuildRequires:     dbus-1-devel >= 0.90
10
@@ -62,9 +62,9 @@
11
 
12
 %if %{WITH_SYSV}
13
 %{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
14
-%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
15
-%{__install} -Dpm 644 cdemu-daemon.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cdemu-daemon
16
-%{__install} -Dpm 755 cdemu-daemon.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/cdemu-daemon
17
+%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/init.d
18
+%{__install} -Dpm 755 cdemu-daemon.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/cdemu-daemon
19
+%{__install} -Dpm 644 cdemu-daemon.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/cdemu-daemon
20
 %endif
21
 
22
 
23
@@ -74,11 +74,13 @@
24
 %post sysv
25
 # Run cdemu-daemon by default:
26
 /sbin/chkconfig --add cdemu-daemon >/dev/null 2>&1 || :
27
+ln -s %{_sysconfdir}/init.d/cdemu-daemon %{_sbindir}/rccdemu-daemon
28
 
29
 %preun sysv
30
 if [ "$1" -eq 0 ]; then
31
     /sbin/service cdemu-daemon stop > /dev/null 2>&1 || :
32
     /sbin/chkconfig --del cdemu-daemon
33
+    rm -f %{_sbindir}/rccdemu-daemon
34
 fi
35
 
36
 %postun sysv
37
@@ -97,7 +99,7 @@
38
 %files sysv
39
 %defattr(-,root,root,-)
40
 %config(noreplace) %{_sysconfdir}/sysconfig/cdemu-daemon
41
-%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/cdemu-daemon
42
+%attr(0755,root,root) %{_sysconfdir}/init.d/cdemu-daemon
43
 %endif
44
 
45
 %changelog
46
[+] Added cdemu-daemon.init.suse ^