Name: boa
Version: 0.94.14
%define _rc rc17
-Release: 0.%{_rc}.1
+Release: 0.%{_rc}.2
Epoch: 1
License: GPL v2
Group: Networking/Daemons
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/ \
$RPM_BUILD_ROOT/var/log/httpd \
- $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html} \
+ $RPM_BUILD_ROOT/srv/httpd/{cgi-bin,html} \
$RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/conf,%{_mandir}/man8} \
$RPM_BUILD_ROOT/etc/logrotate.d
install src/{boa,boa_indexer} $RPM_BUILD_ROOT%{_sbindir}/
-install src/*.pl $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
-install examples/* $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
+install src/*.pl $RPM_BUILD_ROOT/srv/httpd/cgi-bin/
+install examples/* $RPM_BUILD_ROOT/srv/httpd/cgi-bin/
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
install boa.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
fi
else
echo "Creating user http UID=51"
- /usr/sbin/useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
+ /usr/sbin/useradd -u 51 -r -d /srv/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
fi
%postun
%attr(750,root,root) %dir %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/*
%attr(640,root,root) %config(noreplace) /etc/logrotate.d/%{name}
-%dir /home/services/httpd
-%attr(755,root,root) /home/services/httpd/html
-%attr(755,root,root) /home/services/httpd/cgi-bin
+%dir /srv/httpd
+%attr(755,root,root) /srv/httpd/html
+%attr(755,root,root) /srv/httpd/cgi-bin
%attr(750,root,root) %dir /var/log/httpd/
%attr(640,root,root) %ghost /var/log/httpd/*
%attr(755,root,root) %{_sbindir}/*