/[packages]/cauldron/webmin/current/SPECS/webmin.spec
ViewVC logotype

Diff of /cauldron/webmin/current/SPECS/webmin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 330513 by luigiwalser, Thu Dec 13 21:50:49 2012 UTC revision 330549 by luigiwalser, Thu Dec 13 22:40:10 2012 UTC
# Line 185  rm -fr %{buildroot}/usr/share/webmin/acl Line 185  rm -fr %{buildroot}/usr/share/webmin/acl
185  install -d %{buildroot}%{_sysconfdir}/logrotate.d  install -d %{buildroot}%{_sysconfdir}/logrotate.d
186  install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin  install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin
187    
188    # create /var/run/webmin
189    mkdir -p %{buildroot}%{_tmpfilesdir}
190    cat > %{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
191    D /run/webmin 0700 root bin -
192    EOF
193    
194  %post  %post
195  if [ "$1" != 0 ]; then  if [ "$1" != 0 ]; then
196      service webmin status >/dev/null 2>/dev/null && need_restart=1      service webmin status >/dev/null 2>/dev/null && need_restart=1
# Line 202  fi Line 208  fi
208    
209  %postun  %postun
210  if [ "$1" = 0 ]; then  if [ "$1" = 0 ]; then
211      rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin      rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/log/webmin
212  fi  fi
213    
214  %clean  %clean
# Line 220  rm -rf %{buildroot} Line 226  rm -rf %{buildroot}
226  %{_liconsdir}/%{name}.png  %{_liconsdir}/%{name}.png
227  %{_miconsdir}/%{name}.png  %{_miconsdir}/%{name}.png
228  %{_datadir}/applications/*.desktop  %{_datadir}/applications/*.desktop
229    %{_tmpfilesdir}/%{name}.conf

Legend:
Removed from v.330513  
changed lines
  Added in v.330549

  ViewVC Help
Powered by ViewVC 1.1.30