Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039315
en ru br
Репозитории ALT
S:1.24.0-alt3
5.1: 1.0.4-alt0.M51.1
4.1: 0.6.29-alt1.M41.2
4.0: 0.5.38-alt0.M40.1
+backports:0.5.33-alt1.M40.1
3.0: 0.1.45-alt1
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: nginx

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

%define pcre_version 4.5

Name: nginx
Version: 0.1.45
Release: alt1

Summary: Fast HTTP server
License: BSD
Group: System/Servers

Url: http://sysoev.ru/nginx
Source: %url/%name-%version.tar.gz
Source1: %name.conf
Source2: %name.init
Patch: nginx-0.1.41-not-exists.patch
Patch1: nginx-0.1.35-gzip_vary.patch

Packager: Denis Smirnov <mithraen at altlinux.ru>

# Automatically added by buildreq on Sun Jul 24 2005

BuildRequires: libpcre-devel libssl-devel zlib-devel

Requires(pre): shadow-utils

%define nginx_user _nginx
%define nginx_group _nginx
%define nginx_etc %_sysconfdir/%name
%define nginx_spool %_spooldir/%name

%description
Fast HTTP server, extremely useful as an Apache frontend

%prep
%setup -q
%patch -p1

# I can build it for Sisyphus, but not branch-3.0

%patch1 -p1

%build
%ifarch i686
CPU="-mtune=pentiumpro" \
%else
CPU="-mtune=%_arch" \
%endif
%ifarch i586
CPU="" \
%endif
CFLAGS="%optflags $CPU" ./configure \
--prefix=%buildroot \
--with-poll_module \
--conf-path=%buildroot%nginx_etc/nginx.conf \
--sbin-path=%buildroot%_sbindir \
--error-log-path=%buildroot%_logdir/nginx.error.log \
--http-log-path=%buildroot%_logdir/nginx.log \
--pid-path=%buildroot%_var/run/nginx.pid \
--user=%nginx_user \
--group=%nginx_group \
--with-http_ssl_module \
--with-cc-opt="-I %_includedir/pcre/" \
--with-rtsig_module \
--with-select_module    \
--with-poll_module      \
--with-http_ssl_module  \
--with-imap

%__subst s!%buildroot!!g objs/*.h
%make_build

%install
%__mkdir_p %buildroot{%nginx_etc,%_sbindir,%_spooldir/nginx/tmp}
%makeinstall

%__rm -f %buildroot%nginx_etc/%name.conf
%__install -pD -m644 %SOURCE1 %buildroot/etc/%name/%name.conf
%__install -pD -m755 %SOURCE2 %buildroot%_initdir/%name

%files
%_initdir/*
%_sbindir/*
%dir %nginx_etc
%dir %_spooldir/nginx/tmp
%attr(0700,%nginx_user,%nginx_group) %dir %nginx_spool
%config(noreplace) %nginx_etc/mime.types
%config(noreplace) %nginx_etc/nginx.conf
%nginx_etc/*.default
%nginx_etc/koi-win

%doc CHANGES CHANGES.ru

%pre
%_sbindir/groupadd -r -f %nginx_group ||:
%_sbindir/useradd -r -g %nginx_group -d /dev/null -s /dev/null -n %nginx_user \
2> /dev/null > /dev/null ||:

%post
%post_service %name

%preun
%preun_service %name
%changelog

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

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