1 Summary: A fast, lightweighte, non-forking HTTP server for UN*X systems
2 Summary(pl): Szybki, niedu¿y, nie forkuj±cy siê serwer HTTP
8 Source0: http://www.mathopd.org/dist/%{name}-1.4-gamma.tar.gz
11 URL: http://www.mathopd.org/
14 Requires(pre): sh-utils
15 Requires(pre): user-http
16 Requires(post,preun): /sbin/chkconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Mathopd is a very small, yet very fast HTTP server for UN*X systems.
21 Mathopd is designed specifically to handle a large number of
22 connections with minimal fuss. It contains no unnecessary add-ons, but
23 it does the trick for most things.
26 Mathopd jest bardzo ma³ym, bardzo szybkim serwerem HTTP dla systemów
27 uniksowych. Jest zaprojektowany specjalnie do obs³ugi du¿ej liczby
28 po³±czeñ. Nie ma niepotrzebnych dodatków, ale potrafi wiêkszo¶æ
32 %setup -q -n %{name}-1.4
35 CFLAGS="%{rpmcflags}"; export CFLAGS
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT/home/httpd/cgi-bin \
42 $RPM_BUILD_ROOT/etc/rc.d/init.d \
43 $RPM_BUILD_ROOT{%{_sbindir},%{_var}/log/mathopd}
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mathopd
46 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
47 install src/mathopd $RPM_BUILD_ROOT%{_sbindir}
50 rm -rf $RPM_BUILD_ROOT
53 /sbin/chkconfig --add %{name}
54 if [ -f /var/lock/subsys/mathopd ]; then
55 /etc/rc.d/init.d/mathopd restart 1>&2
57 echo "Run \"/etc/rc.d/init.d/mathopd start\" to start %{name} daemon."
61 if [ "$1" = "0" ]; then
62 if [ -f /var/lock/subsys/mathopd ]; then
63 /etc/rc.d/init.d/mathopd stop 1>&2
65 /sbin/chkconfig --del %{name}
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_sbindir}/mathopd
72 %attr(-, http, http) /home/httpd/*
73 %attr(0755, root, root) /etc/rc.d/init.d/mathopd
74 %config %{_sysconfdir}/mathopd.conf
75 %attr(750,http,http) %dir %{_var}/log/mathopd