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 |
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 |
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 |