Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37334630
en ru br
Репозитории ALT
S:0.2-alt1.qa1
5.1: 0.2-alt1
4.1: 0.2-alt1
4.0: 0.2-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: trac-spawn-fcgi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_without M24

%if_with M24
%define _release alt0.M24.1
%else
%define _release alt1
%endif

Name: trac-spawn-fcgi
Version: 0.2
Release: %_release.qa1
Packager: Grigory Batalov <bga at altlinux.ru>

Summary: Trac FastCGI frontend spawn daemon
License: BSD
Group: Development/Other

# taken from lighttpd-1.4.13

Source0: spawn-fcgi-1.4.13.c
Source1: spawn-fcgi.copying

Source2: %name-0.1-alt-init
Source3: %name-0.1-alt-sysconfig

%description
This package contains trac FastCGI frontend spawn daemon
for use with web server like nginx.

%prep
%setup -q -c -T
install -m644 %SOURCE0 %name.c
install -m644 %SOURCE1 COPYING.spawn-fcgi
cat << _EOF > sys-socket.h
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/un.h>
#include <arpa/inet.h>
_EOF

%build
cc -g %optflags \
-DHAVE_PWD_H \
-DHAVE_GETOPT_H \
-DHAVE_SYS_WAIT_H \
-DHAVE_SOCKLEN_T \
-DHAVE_SYS_UN_H \
-DPACKAGE_VERSION=\"1.4.10\" \
-o %name %name.c

%install
mkdir -p %buildroot{%_bindir,%_initdir,%_sysconfdir/sysconfig,%_var/run/%name}
install -m755 %name %buildroot%_bindir/%name
install -m755 %SOURCE2 %buildroot%_initdir/%name
install -m644 %SOURCE3 %buildroot%_sysconfdir/sysconfig/%name
touch %buildroot%_var/run/%name/%name.pid

%post
%post_service %name

%preun
%preun_service %name

%files
%doc COPYING.spawn-fcgi
%_bindir/%name
%_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/%name
%dir %_var/run/%name/
%ghost %_var/run/%name/%name.pid

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin