ALT Linux repositórios
Group :: Sistema/Servidores
RPM: mathopd
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: mathopd
Version: 1.5p6
Release: alt1.qa1
Summary: Fast, lightweight, non-forking HTTP server for UN*X systems.
License: GPL
Group: System/Servers
Url: http://www.%name.org/
Source: %url/dist/%name-%version.tar.gz
Source1: %name.8.gz
Source2: %name.conf.5.gz
Source3: %name.init
Source4: %name.conf
Source5: %name.logrotate
Source6: %url/dist/dir_cgi.c.txt
Source7: %name.cron
Source9: TODO
Source10: %name.sysconfig
Patch: %name-1.5p5-alt-pidfile.patch
Patch1: %name-alt-dircgi.patch
Patch2: %name.getline.patch
#equires: logrotate
Requires: crontabs, gzip, findutils
%define mylogdir %_logdir/%name
%define logrotate_dir %_sysconfdir/logrotate.d
%define crondaily_dir %_sysconfdir/cron.daily
Summary(ru_RU.KOI8-R): ëÏÍÐÁËÔÎÙÊ ÂÙÓÔÒÙÊ HTTP-ÓÅÒ×ÅÒ ÄÌÑ àÎÉËÓ-ÓÉÓÔÅÍ
%description
Mathopd is a very small, yet very fast HTTP server for UN*X systems.
Mathopd supports useful features of HTTP/1.1, such as persistent connections,
partial responses and pipelining. It does not support things like content
negotation. The latest version of the software (1.5) also supports CGI/1.1.
Mathopd was designed specifically to run as a single process,
and to never grow in size. When this software was first written (early 1996)
this is something that other HTTP servers were not very good at.
For preventing conflicts with another HTTP-services Mathopd in ALTLinux
listens on port 8000 instead of standard port 80.
%description -l ru_RU.KOI8-R
Mathopd - ÜÔÏ ÏÞÅÎØ ËÏÍÐÁËÔÎÙÊ É ÂÙÓÔÒÙÊ ÓÅÒ×ÅÒ HTTP ÄÌÑ àÎÉËÓ-ÓÉÓÔÅÍ.
Mathopd ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÎÏÇÉÅ ×ÏÚÍÏÖÎÏÓÔÉ ÐÒÏÔÏËÏÌÁ HTTP/1.1,
ÔÁËÉÅ ËÁË ÐÏÓÔÏÑÎÎÙÅ (persistent) ÓÏÅÄÉÎÅÎÉÑ ÄÌÑ ÓÅÒÉÊ ÚÁÐÒÏÓÏ×, ËÏÎ×ÅÊÅÒ
(ÐÒÉ£Í ÎÏ×ÙÈ ÚÁÐÒÏÓÏ× ÞÅÒÅÚ ÐÏÓÔÏÑÎÎÏÅ ÓÏÅÄÉÎÅÎÉÅ ÄÏ ÔÏÇÏ, ËÁË ÂÕÄÕÔ ÇÏÔÏ×Ù
ÏÔ×ÅÔÙ ÎÁ ÐÒÅÄÙÄÕÝÉÅ), ÏÔÐÒÁ×ËÁ ÄÁÎÎÙÈ ÐÏ ÞÁÓÔÑÍ (partial responses)
É, ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 1.5 - ÚÁÐÕÓË ×ÎÅÛÎÉÈ ÐÒÉÌÏÖÅÎÉÊ ÐÏ ÐÒÏÔÏËÏÌÕ CGI/1.1.
Mathopd ×ÙÐÏÌÎÑÅÔÓÑ ËÁË ÏÄÉÎ-ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÒÏÃÅÓÓ É ÎÉËÏÇÄÁ ÎÅ ÚÁÐÒÁÛÉ×ÁÅÔ
ÄÌÑ ÒÁÂÏÔÙ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÐÁÍÑÔÉ. éÓÐÏÌØÚÕÊÔÅ ÅÇÏ ÄÌÑ ÐÒÏÓÔÙÈ ÚÁÄÁÞ
(ÓÔÁÔÉÞÅÓËÉÅ ÓÔÒÁÎÉÃÙ Ó ÄÏËÕÍÅÎÔÁÃÉÅÊ, ÆÁÊÌÏÐÏÍÏÊËÁ Ó ÄÏÓÔÕÐÏÍ ÐÏ HTTP É Ô.Ä.),
ÄÌÑ ËÏÔÏÒÙÈ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÉÚÂÙÔÏÞÎÁ.
þÔÏÂÙ ÎÅ ËÏÎÆÌÉËÔÏ×ÁÔØ Ó ÄÒÕÇÉÍÉ HTTP-ÓÅÒ×ÅÒÁÍÉ, ÐÏ ÕÍÏÌÞÁÎÉÀ Mathopd
× ALTLinux ÏÖÉÄÁÅÔ ÐÏÄËÌÀÞÅÎÉÊ ÞÅÒÅÚ ÐÏÒÔ 8000 ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÏÇÏ 80.
%prep
%setup -q
%patch0 -p1
%__cp -a %SOURCE6 ./dir_cgi.c
%patch1
%patch2 -p2
%build
%__cc -O3 -DFORMAT_V2=1 -o dir_cgi dir_cgi.c
cd src
%make_build
%install
%__mkdir -p %buildroot{%_bindir,%_sbindir,%_initdir,%_man5dir,%_man8dir,%mylogdir,%logrotate_dir,%crondaily_dir}
%makeinstall -C src SBINDIR=%buildroot%_sbindir PREFIX=%buildroot install
%__cp -a %SOURCE1 %buildroot%_man8dir/
%__cp -a %SOURCE2 %buildroot%_man5dir/
%__install %SOURCE3 %buildroot%_initdir/%name
%__cp -a %SOURCE4 %buildroot%_sysconfdir/
%__cp -a %SOURCE5 %buildroot%logrotate_dir/%name
%__install -p %SOURCE7 %buildroot%crondaily_dir/%name
%__install -pD -m600 %SOURCE10 %buildroot%_sysconfdir/sysconfig/%name
%__install -p dir_cgi %buildroot%_bindir/
/bin/touch %buildroot%mylogdir/{errorlog,childlog}
%files
%_bindir/*
%_sbindir/*
%_man8dir/*
%_man5dir/*
%attr(0700,root,root) %_initdir/%name
%exclude %mylogdir/*log*
%attr(0750,%name,%name) %mylogdir
%ghost %mylogdir/*log*
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/sysconfig/%name
%exclude %logrotate_dir/%name
%crondaily_dir/%name
%doc doc/* README COPYING
%pre
id -un %name >/dev/null 2>&1 || /usr/sbin/useradd -s /dev/null -d %mylogdir -r %name
%post
%post_service %name
%preun
%preun_service %name
echo "NOTE: %name account still exist, remove it manually if you need"
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.5p6
Release: alt1.qa1
Summary: Fast, lightweight, non-forking HTTP server for UN*X systems.
License: GPL
Group: System/Servers
Url: http://www.%name.org/
Source: %url/dist/%name-%version.tar.gz
Source1: %name.8.gz
Source2: %name.conf.5.gz
Source3: %name.init
Source4: %name.conf
Source5: %name.logrotate
Source6: %url/dist/dir_cgi.c.txt
Source7: %name.cron
Source9: TODO
Source10: %name.sysconfig
Patch: %name-1.5p5-alt-pidfile.patch
Patch1: %name-alt-dircgi.patch
Patch2: %name.getline.patch
#equires: logrotate
Requires: crontabs, gzip, findutils
%define mylogdir %_logdir/%name
%define logrotate_dir %_sysconfdir/logrotate.d
%define crondaily_dir %_sysconfdir/cron.daily
Summary(ru_RU.KOI8-R): ëÏÍÐÁËÔÎÙÊ ÂÙÓÔÒÙÊ HTTP-ÓÅÒ×ÅÒ ÄÌÑ àÎÉËÓ-ÓÉÓÔÅÍ
%description
Mathopd is a very small, yet very fast HTTP server for UN*X systems.
Mathopd supports useful features of HTTP/1.1, such as persistent connections,
partial responses and pipelining. It does not support things like content
negotation. The latest version of the software (1.5) also supports CGI/1.1.
Mathopd was designed specifically to run as a single process,
and to never grow in size. When this software was first written (early 1996)
this is something that other HTTP servers were not very good at.
For preventing conflicts with another HTTP-services Mathopd in ALTLinux
listens on port 8000 instead of standard port 80.
%description -l ru_RU.KOI8-R
Mathopd - ÜÔÏ ÏÞÅÎØ ËÏÍÐÁËÔÎÙÊ É ÂÙÓÔÒÙÊ ÓÅÒ×ÅÒ HTTP ÄÌÑ àÎÉËÓ-ÓÉÓÔÅÍ.
Mathopd ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÎÏÇÉÅ ×ÏÚÍÏÖÎÏÓÔÉ ÐÒÏÔÏËÏÌÁ HTTP/1.1,
ÔÁËÉÅ ËÁË ÐÏÓÔÏÑÎÎÙÅ (persistent) ÓÏÅÄÉÎÅÎÉÑ ÄÌÑ ÓÅÒÉÊ ÚÁÐÒÏÓÏ×, ËÏÎ×ÅÊÅÒ
(ÐÒÉ£Í ÎÏ×ÙÈ ÚÁÐÒÏÓÏ× ÞÅÒÅÚ ÐÏÓÔÏÑÎÎÏÅ ÓÏÅÄÉÎÅÎÉÅ ÄÏ ÔÏÇÏ, ËÁË ÂÕÄÕÔ ÇÏÔÏ×Ù
ÏÔ×ÅÔÙ ÎÁ ÐÒÅÄÙÄÕÝÉÅ), ÏÔÐÒÁ×ËÁ ÄÁÎÎÙÈ ÐÏ ÞÁÓÔÑÍ (partial responses)
É, ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 1.5 - ÚÁÐÕÓË ×ÎÅÛÎÉÈ ÐÒÉÌÏÖÅÎÉÊ ÐÏ ÐÒÏÔÏËÏÌÕ CGI/1.1.
Mathopd ×ÙÐÏÌÎÑÅÔÓÑ ËÁË ÏÄÉÎ-ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÒÏÃÅÓÓ É ÎÉËÏÇÄÁ ÎÅ ÚÁÐÒÁÛÉ×ÁÅÔ
ÄÌÑ ÒÁÂÏÔÙ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÐÁÍÑÔÉ. éÓÐÏÌØÚÕÊÔÅ ÅÇÏ ÄÌÑ ÐÒÏÓÔÙÈ ÚÁÄÁÞ
(ÓÔÁÔÉÞÅÓËÉÅ ÓÔÒÁÎÉÃÙ Ó ÄÏËÕÍÅÎÔÁÃÉÅÊ, ÆÁÊÌÏÐÏÍÏÊËÁ Ó ÄÏÓÔÕÐÏÍ ÐÏ HTTP É Ô.Ä.),
ÄÌÑ ËÏÔÏÒÙÈ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÉÚÂÙÔÏÞÎÁ.
þÔÏÂÙ ÎÅ ËÏÎÆÌÉËÔÏ×ÁÔØ Ó ÄÒÕÇÉÍÉ HTTP-ÓÅÒ×ÅÒÁÍÉ, ÐÏ ÕÍÏÌÞÁÎÉÀ Mathopd
× ALTLinux ÏÖÉÄÁÅÔ ÐÏÄËÌÀÞÅÎÉÊ ÞÅÒÅÚ ÐÏÒÔ 8000 ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÏÇÏ 80.
%prep
%setup -q
%patch0 -p1
%__cp -a %SOURCE6 ./dir_cgi.c
%patch1
%patch2 -p2
%build
%__cc -O3 -DFORMAT_V2=1 -o dir_cgi dir_cgi.c
cd src
%make_build
%install
%__mkdir -p %buildroot{%_bindir,%_sbindir,%_initdir,%_man5dir,%_man8dir,%mylogdir,%logrotate_dir,%crondaily_dir}
%makeinstall -C src SBINDIR=%buildroot%_sbindir PREFIX=%buildroot install
%__cp -a %SOURCE1 %buildroot%_man8dir/
%__cp -a %SOURCE2 %buildroot%_man5dir/
%__install %SOURCE3 %buildroot%_initdir/%name
%__cp -a %SOURCE4 %buildroot%_sysconfdir/
%__cp -a %SOURCE5 %buildroot%logrotate_dir/%name
%__install -p %SOURCE7 %buildroot%crondaily_dir/%name
%__install -pD -m600 %SOURCE10 %buildroot%_sysconfdir/sysconfig/%name
%__install -p dir_cgi %buildroot%_bindir/
/bin/touch %buildroot%mylogdir/{errorlog,childlog}
%files
%_bindir/*
%_sbindir/*
%_man8dir/*
%_man5dir/*
%attr(0700,root,root) %_initdir/%name
%exclude %mylogdir/*log*
%attr(0750,%name,%name) %mylogdir
%ghost %mylogdir/*log*
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/sysconfig/%name
%exclude %logrotate_dir/%name
%crondaily_dir/%name
%doc doc/* README COPYING
%pre
id -un %name >/dev/null 2>&1 || /usr/sbin/useradd -s /dev/null -d %mylogdir -r %name
%post
%post_service %name
%preun
%preun_service %name
echo "NOTE: %name account still exist, remove it manually if you need"
%changelog
…
Todas as alterações você pod ver aqui