Explorar o código

fix rc script

Michael van Elst %!s(int64=22) %!d(string=hai) anos
pai
achega
66b7bc5ff6
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  1. 8 3
      powerdns/powerdns.spec

+ 8 - 3
powerdns/powerdns.spec

@@ -151,9 +151,11 @@ Conflicts:    bind, bind8
     #   Creating run-command script
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
-    %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
-        -e 's;@l_susr@;%{l_susr};g' -e 's;@l_sgrp@;%{l_sgrp};g' \
-        -e 's;@l_musr@;%{l_musr};g' -e 's;@l_mgrp@;%{l_mgrp};g' \
+    %{l_shtool} install -c -m 755 \
+        -e 's;@l_prefix@;%{l_prefix};g' \
+        -e 's;@l_susr@;%{l_susr};g' \
+        -e 's;@l_rusr@;%{l_rusr};g' \
+        -e 's;@l_rgrp@;%{l_rgrp};g' \
         %{SOURCE rc.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
 
     #   Install setup script
@@ -168,6 +170,8 @@ Conflicts:    bind, bind8
         -e 's;@l_prefix@;%{l_prefix};g' \
         %{SOURCE fsl.%{name}} \
         $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/var/powerdns
 
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/*  >/dev/null 2>&1 || true
     strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
@@ -176,6 +180,7 @@ Conflicts:    bind, bind8
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
         %{l_files_std} \
         '%not %dir %{l_prefix}/etc/fsl' \
+        '%attr(775,%{l_musr},%{l_rgrp}) %{l_prefix}/var/powerdns' \
         '%config %{l_prefix}/etc/fsl/fsl.%{name}' \
         '%config %attr(0600,root,%{l_mgrp}) %{l_prefix}/etc/powerdns/*'