mirror of
https://abf.rosa.ru/djam/angie.git
synced 2025-02-24 19:32:47 +00:00
Automatic import for version 1.0.5
This commit is contained in:
commit
3392e9ba9d
13 changed files with 1013 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
"nginx-1.0.5.tar.gz": 34418bb8caade9a1204c6ddafc389edece052617
|
119
404.html
Normal file
119
404.html
Normal file
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>The page is not found</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif,helvetica;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:link {
|
||||
color: #c00;
|
||||
}
|
||||
:visited {
|
||||
color: #c00;
|
||||
}
|
||||
a:hover {
|
||||
color: #f50;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0.6em 2em 0.4em;
|
||||
background-color: #294172;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
font-size: 1.75em;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
h1 strong {
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #3C6EB4;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-bottom: 2px solid #294172;
|
||||
}
|
||||
h3 {
|
||||
text-align: center;
|
||||
background-color: #ff0000;
|
||||
padding: 0.5em;
|
||||
color: #fff;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
.content {
|
||||
padding: 1em 5em;
|
||||
}
|
||||
.alert {
|
||||
border: 2px solid #000;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 2px solid #fff;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
a:hover img {
|
||||
border: 2px solid #294172;
|
||||
}
|
||||
.logos {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1><strong>nginx error!</strong></h1>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h3>The page you are looking for is not found.</h3>
|
||||
|
||||
<div class="alert">
|
||||
<h2>Website Administrator</h2>
|
||||
<div class="content">
|
||||
<p>Something has triggered missing webpage on your
|
||||
website. This is the default 404 error page for
|
||||
<strong>nginx</strong> that is distributed with
|
||||
Mandriva. It is located
|
||||
<tt>/usr/share/nginx/html/404.html</tt></p>
|
||||
|
||||
<p>You should customize this error page for your own
|
||||
site or edit the <tt>error_page</tt> directive in
|
||||
the <strong>nginx</strong> configuration file
|
||||
<tt>/etc/nginx/nginx.conf</tt>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="logos">
|
||||
<a href="http://nginx.net/"><img
|
||||
src="nginx-logo.png"
|
||||
alt="[ Powered by nginx ]"
|
||||
width="121" height="32" /></a>
|
||||
|
||||
<a href="http://www.mandriva.com/"><img
|
||||
src="poweredby.png"
|
||||
alt="[ Powered by Mandriva ]"
|
||||
width="120" height="43" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
119
50x.html
Normal file
119
50x.html
Normal file
|
@ -0,0 +1,119 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>The page is temporarily unavailable</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif,helvetica;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:link {
|
||||
color: #c00;
|
||||
}
|
||||
:visited {
|
||||
color: #c00;
|
||||
}
|
||||
a:hover {
|
||||
color: #f50;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0.6em 2em 0.4em;
|
||||
background-color: #294172;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
font-size: 1.75em;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
h1 strong {
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #3C6EB4;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-bottom: 2px solid #294172;
|
||||
}
|
||||
h3 {
|
||||
text-align: center;
|
||||
background-color: #ff0000;
|
||||
padding: 0.5em;
|
||||
color: #fff;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
.content {
|
||||
padding: 1em 5em;
|
||||
}
|
||||
.alert {
|
||||
border: 2px solid #000;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 2px solid #fff;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
a:hover img {
|
||||
border: 2px solid #294172;
|
||||
}
|
||||
.logos {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1><strong>nginx error!</strong></h1>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h3>The page you are looking for is temporarily unavailable. Please try again later.</h3>
|
||||
|
||||
<div class="alert">
|
||||
<h2>Website Administrator</h2>
|
||||
<div class="content">
|
||||
<p>Something has triggered an error on your
|
||||
website. This is the default error page for
|
||||
<strong>nginx</strong> that is distributed with
|
||||
Mandriva. It is located
|
||||
<tt>/usr/share/nginx/html/50x.html</tt></p>
|
||||
|
||||
<p>You should customize this error page for your own
|
||||
site or edit the <tt>error_page</tt> directive in
|
||||
the <strong>nginx</strong> configuration file
|
||||
<tt>/etc/nginx/nginx.conf</tt>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="logos">
|
||||
<a href="http://nginx.net/"><img
|
||||
src="nginx-logo.png"
|
||||
alt="[ Powered by nginx ]"
|
||||
width="121" height="32" /></a>
|
||||
|
||||
<a href="http://www.mandriva.com/"><img
|
||||
src="poweredby.png"
|
||||
alt="[ Powered by Mandriva ]"
|
||||
width="120" height="43" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
116
index.html
Normal file
116
index.html
Normal file
|
@ -0,0 +1,116 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>Test Page for the Nginx HTTP Server on Mandriva</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif,helvetica;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:link {
|
||||
color: #c00;
|
||||
}
|
||||
:visited {
|
||||
color: #c00;
|
||||
}
|
||||
a:hover {
|
||||
color: #f50;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0.6em 2em 0.4em;
|
||||
background-color: #294172;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
font-size: 1.75em;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
h1 strong {
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #3C6EB4;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-bottom: 2px solid #294172;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
.content {
|
||||
padding: 1em 5em;
|
||||
}
|
||||
.alert {
|
||||
border: 2px solid #000;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 2px solid #fff;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
a:hover img {
|
||||
border: 2px solid #294172;
|
||||
}
|
||||
.logos {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Welcome to <strong>nginx _VERSION_</strong> on Mandriva!</h1>
|
||||
|
||||
<div class="content">
|
||||
<p>This page is used to test the proper operation of the
|
||||
<strong>nginx</strong> HTTP server after it has been
|
||||
installed. If you can read this page, it means that the
|
||||
web server installed at this site is working
|
||||
properly.</p>
|
||||
|
||||
<div class="alert">
|
||||
<h2>Website Administrator</h2>
|
||||
<div class="content">
|
||||
<p>This is the default <tt>index.html</tt> page that
|
||||
is distributed with <strong>nginx</strong> on
|
||||
Mandriva. It is located in
|
||||
<tt>/usr/share/nginx/html</tt>.</p>
|
||||
|
||||
<p>You should now put your content in a location of
|
||||
your choice and edit the <tt>root</tt> configuration
|
||||
directive in the <strong>nginx</strong>
|
||||
configuration file
|
||||
<tt>/etc/nginx/nginx.conf</tt>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="logos">
|
||||
<a href="http://nginx.net/"><img
|
||||
src="nginx-logo.png"
|
||||
alt="[ Powered by nginx ]"
|
||||
width="121" height="32" /></a>
|
||||
|
||||
<a href="http://www.mandriva.com/"><img
|
||||
src="poweredby.png"
|
||||
alt="[ Powered by Mandriva ]"
|
||||
width="120" height="43" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
7
nginx-1.0.5.tar.gz.asc
Normal file
7
nginx-1.0.5.tar.gz.asc
Normal file
|
@ -0,0 +1,7 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.10 (FreeBSD)
|
||||
|
||||
iEYEABECAAYFAk4liYUACgkQqTdhOaUkxT5+KQCeO0BooJEUKRtOucjrjH5vxdRP
|
||||
OyIAn0PY38S+mpwe2EvhR4RNqlmokHNW
|
||||
=J3RZ
|
||||
-----END PGP SIGNATURE-----
|
BIN
nginx-logo.png
Normal file
BIN
nginx-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 370 B |
133
nginx.init
Normal file
133
nginx.init
Normal file
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# nginx - this script starts and stops the nginx daemon
|
||||
#
|
||||
# chkconfig: - 85 15
|
||||
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
|
||||
# proxy and IMAP/POP3 proxy server
|
||||
# processname: nginx
|
||||
# config: /etc/nginx/nginx.conf
|
||||
# config: /etc/sysconfig/nginx
|
||||
# pidfile: /var/run/nginx/nginx.pid
|
||||
|
||||
# Source function library.
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
# Source networking configuration.
|
||||
. /etc/sysconfig/network
|
||||
|
||||
# Check that networking is up.
|
||||
[ "$NETWORKING" = "no" ] && exit 0
|
||||
|
||||
nginx="/usr/sbin/nginx"
|
||||
prog=$(basename $nginx)
|
||||
|
||||
NGINX_CONF_FILE="/etc/nginx/nginx.conf"
|
||||
|
||||
[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx
|
||||
|
||||
lockfile=/var/lock/subsys/nginx
|
||||
|
||||
start() {
|
||||
[ -x $nginx ] || exit 5
|
||||
[ -f $NGINX_CONF_FILE ] || exit 6
|
||||
echo -n $"Starting $prog: "
|
||||
daemon $nginx -c $NGINX_CONF_FILE
|
||||
retval=$?
|
||||
echo
|
||||
[ $retval -eq 0 ] && touch $lockfile
|
||||
return $retval
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc $prog
|
||||
retval=$?
|
||||
echo
|
||||
[ $retval -eq 0 ] && rm -f $lockfile
|
||||
return $retval
|
||||
}
|
||||
|
||||
restart() {
|
||||
configtest_q || configtest || return 6
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
reload() {
|
||||
configtest_q || configtest || return 6
|
||||
echo -n $"Reloading $prog: "
|
||||
killproc $nginx -HUP
|
||||
echo
|
||||
}
|
||||
|
||||
configtest() {
|
||||
$nginx -t -c $NGINX_CONF_FILE
|
||||
}
|
||||
|
||||
configtest_q() {
|
||||
configtest >/dev/null 2>&1
|
||||
}
|
||||
|
||||
rh_status() {
|
||||
status $prog
|
||||
}
|
||||
|
||||
rh_status_q() {
|
||||
rh_status >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# Upgrade the binary with no downtime.
|
||||
upgrade() {
|
||||
local pidfile="/var/run/${prog}/${prog}.pid"
|
||||
local oldbin_pidfile="${pidfile}.oldbin"
|
||||
|
||||
configtest_q || configtest || return 6
|
||||
echo -n $"Starting new master $prog: "
|
||||
killproc $nginx -USR2
|
||||
retval=$?
|
||||
echo
|
||||
sleep 1
|
||||
if [[ -f ${oldbin_pidfile} && -f ${pidfile} ]]; then
|
||||
echo -n $"Graceful shutdown of old $prog: "
|
||||
killproc -p ${oldbin_pidfile} -QUIT
|
||||
retval=$?
|
||||
echo
|
||||
return 0
|
||||
else
|
||||
echo $"Something bad happened, manual intervention required, maybe restart?"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
rh_status_q && exit 0
|
||||
$1
|
||||
;;
|
||||
stop)
|
||||
rh_status_q || exit 0
|
||||
$1
|
||||
;;
|
||||
restart|configtest)
|
||||
$1
|
||||
;;
|
||||
force-reload|upgrade)
|
||||
rh_status_q || exit 7
|
||||
upgrade
|
||||
;;
|
||||
reload)
|
||||
rh_status_q || exit 7
|
||||
$1
|
||||
;;
|
||||
status|status_q)
|
||||
rh_$1
|
||||
;;
|
||||
condrestart|try-restart)
|
||||
rh_status_q || exit 7
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|reload|configtest|status|force-reload|upgrade|restart}"
|
||||
exit 2
|
||||
esac
|
12
nginx.logrotate
Normal file
12
nginx.logrotate
Normal file
|
@ -0,0 +1,12 @@
|
|||
/var/log/nginx/*log {
|
||||
daily
|
||||
rotate 10
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ ! -f /var/run/nginx/nginx.pid ] || kill -USR1 `cat /var/run/nginx/nginx.pid`
|
||||
endscript
|
||||
}
|
||||
|
462
nginx.spec
Normal file
462
nginx.spec
Normal file
|
@ -0,0 +1,462 @@
|
|||
%define nginx_user nginx
|
||||
%define nginx_group %{nginx_user}
|
||||
%define nginx_home /var/lib/nginx
|
||||
%define nginx_home_tmp %{nginx_home}/tmp
|
||||
%define nginx_logdir /var/log/nginx
|
||||
%define nginx_confdir %{_sysconfdir}/nginx
|
||||
%define nginx_datadir %{_datadir}/nginx
|
||||
%define nginx_webroot %{nginx_datadir}/html
|
||||
|
||||
Summary: Robust, small and high performance http and reverse proxy server
|
||||
Name: nginx
|
||||
Version: 1.0.5
|
||||
Release: %mkrel 1
|
||||
Group: System/Servers
|
||||
# BSD License (two clause)
|
||||
# http://www.freebsd.org/copyright/freebsd-license.html
|
||||
License: BSD
|
||||
URL: http://nginx.net/
|
||||
Source0: http://nginx.org/download/nginx-%{version}.tar.gz
|
||||
Source1: http://nginx.org/download/nginx-%{version}.tar.gz.asc
|
||||
Source2: %{name}.init
|
||||
Source3: %{name}.logrotate
|
||||
Source4: virtual.conf
|
||||
Source5: ssl.conf
|
||||
Source6: %{name}.sysconfig
|
||||
Source100: index.html
|
||||
Source101: poweredby.png
|
||||
Source102: nginx-logo.png
|
||||
Source103: 50x.html
|
||||
Source104: 404.html
|
||||
Requires(post): rpm-helper
|
||||
Requires(preun): rpm-helper
|
||||
Requires(pre): rpm-helper
|
||||
Requires(postun): rpm-helper
|
||||
Requires(pre): apache-conf >= 2.2.0
|
||||
Requires: apache-conf >= 2.2.0
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl(ExtUtils::Embed)
|
||||
Requires: pcre
|
||||
Requires: openssl
|
||||
Provides: webserver
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
|
||||
%description
|
||||
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
|
||||
proxy server written by Igor Sysoev.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%serverbuild
|
||||
# nginx does not utilize a standard configure script. It has its own
|
||||
# and the standard configure options cause the nginx configure script
|
||||
# to error out. This is is also the reason for the DESTDIR environment
|
||||
# variable. The configure script(s) have been patched (Patch1 and
|
||||
# Patch2) in order to support installing into a build environment.
|
||||
export DESTDIR=%{buildroot}
|
||||
./configure \
|
||||
--user=%{nginx_user} \
|
||||
--group=%{nginx_group} \
|
||||
--prefix=%{nginx_datadir} \
|
||||
--sbin-path=%{_sbindir}/%{name} \
|
||||
--conf-path=%{nginx_confdir}/%{name}.conf \
|
||||
--error-log-path=%{nginx_logdir}/error.log \
|
||||
--http-log-path=%{nginx_logdir}/access.log \
|
||||
--http-client-body-temp-path=%{nginx_home_tmp}/client_body \
|
||||
--http-proxy-temp-path=%{nginx_home_tmp}/proxy \
|
||||
--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
|
||||
--pid-path=/var/run/%{name}/%{name}.pid \
|
||||
--lock-path=/var/lock/subsys/%{name} \
|
||||
--with-http_ssl_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_perl_module \
|
||||
--with-ipv6 \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-cc-opt="$CFLAGS $(pcre-config --cflags)"
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%makeinstall_std INSTALLDIRS=vendor
|
||||
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;
|
||||
find %{buildroot} -type f -empty -exec rm -f {} \;
|
||||
find %{buildroot} -type f -exec chmod 0644 {} \;
|
||||
find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \;
|
||||
chmod 0755 %{buildroot}%{_sbindir}/nginx
|
||||
|
||||
%{__install} -p -D -m 0755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
|
||||
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
%{__install} -p -D -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
%{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
|
||||
%{__install} -p -m 0644 %{SOURCE4} %{SOURCE5} %{buildroot}%{nginx_confdir}/conf.d
|
||||
%{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp}
|
||||
%{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir}
|
||||
%{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot}
|
||||
|
||||
%{__install} -p -m 0644 %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{buildroot}%{nginx_webroot}
|
||||
|
||||
# add current version
|
||||
perl -pi -e "s|_VERSION_|%{version}|g" %{buildroot}%{nginx_webroot}/index.html
|
||||
|
||||
# convert to UTF-8 all files that give warnings.
|
||||
for textfile in CHANGES; do
|
||||
mv $textfile $textfile.old
|
||||
iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
|
||||
rm -f $textfile.old
|
||||
done
|
||||
|
||||
install -d %{buildroot}%{_mandir}/man8
|
||||
install -m0644 man/*.8 %{buildroot}%{_mandir}/man8/
|
||||
|
||||
%pre
|
||||
%_pre_useradd %{nginx_user} %{nginx_home} /bin/false
|
||||
|
||||
%post
|
||||
%_post_service %{nginx_user}
|
||||
if [ -f /var/lock/subsys/%{name} ]; then
|
||||
%{_initrddir}/%{name} restart 1>&2;
|
||||
fi
|
||||
|
||||
%preun
|
||||
%_preun_service %{nginx_user}
|
||||
|
||||
%postun
|
||||
%_postun_userdel %{nginx_user}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE CHANGES README
|
||||
%{nginx_datadir}/
|
||||
%{_sbindir}/%{name}
|
||||
%{_mandir}/man3/%{name}.3pm*
|
||||
%{_mandir}/man8/*
|
||||
%{_initrddir}/%{name}
|
||||
%dir %{nginx_confdir}
|
||||
%dir %{nginx_confdir}/conf.d
|
||||
%config(noreplace) %{nginx_confdir}/conf.d/*.conf
|
||||
%config(noreplace) %{nginx_confdir}/win-utf
|
||||
%config(noreplace) %{nginx_confdir}/%{name}.conf.default
|
||||
%config(noreplace) %{nginx_confdir}/scgi_params
|
||||
%config(noreplace) %{nginx_confdir}/scgi_params.default
|
||||
%config(noreplace) %{nginx_confdir}/fastcgi.conf
|
||||
%config(noreplace) %{nginx_confdir}/fastcgi.conf.default
|
||||
%config(noreplace) %{nginx_confdir}/mime.types.default
|
||||
%config(noreplace) %{nginx_confdir}/fastcgi_params
|
||||
%config(noreplace) %{nginx_confdir}/fastcgi_params.default
|
||||
%config(noreplace) %{nginx_confdir}/koi-win
|
||||
%config(noreplace) %{nginx_confdir}/koi-utf
|
||||
%config(noreplace) %{nginx_confdir}/%{name}.conf
|
||||
%config(noreplace) %{nginx_confdir}/mime.types
|
||||
%config(noreplace) %{nginx_confdir}/uwsgi_params
|
||||
%config(noreplace) %{nginx_confdir}/uwsgi_params.default
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
||||
%dir %{perl_vendorarch}/auto/%{name}
|
||||
%{perl_vendorarch}/%{name}.pm
|
||||
%{perl_vendorarch}/auto/%{name}/%{name}.so
|
||||
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
|
||||
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp}
|
||||
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir}
|
||||
%attr(-,%{nginx_user},%{nginx_group}) %dir /var/run/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Aug 12 2011 Oden Eriksson <oeriksson@mandriva.com> 1.0.5-1mdv2011.0
|
||||
+ Revision: 694277
|
||||
- drop the config patch, seems redundant now
|
||||
- 1.0.5
|
||||
|
||||
* Wed Jun 01 2011 Funda Wang <fwang@mandriva.org> 1.0.4-1
|
||||
+ Revision: 682322
|
||||
- update to new version 1.0.4
|
||||
|
||||
* Mon May 30 2011 Oden Eriksson <oeriksson@mandriva.com> 1.0.3-2
|
||||
+ Revision: 681815
|
||||
- package loss
|
||||
|
||||
* Thu May 26 2011 Funda Wang <fwang@mandriva.org> 1.0.3-1
|
||||
+ Revision: 679137
|
||||
- update to new version 1.0.3
|
||||
|
||||
* Tue May 10 2011 Funda Wang <fwang@mandriva.org> 1.0.2-1
|
||||
+ Revision: 673308
|
||||
- update to new version 1.0.2
|
||||
|
||||
* Mon May 09 2011 Oden Eriksson <oeriksson@mandriva.com> 1.0.1-1
|
||||
+ Revision: 672714
|
||||
- 1.0.1
|
||||
|
||||
* Sun Apr 10 2011 Oden Eriksson <oeriksson@mandriva.com> 0.9.7-1
|
||||
+ Revision: 652249
|
||||
- 0.9.7
|
||||
|
||||
* Sat Apr 02 2011 Oden Eriksson <oeriksson@mandriva.com> 0.9.6-1
|
||||
+ Revision: 649785
|
||||
- 0.9.6
|
||||
|
||||
* Sat Jan 01 2011 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-1mdv2011.0
|
||||
+ Revision: 627093
|
||||
- 0.9.3
|
||||
|
||||
* Tue Nov 02 2010 Rémy Clouard <shikamaru@mandriva.org> 0.8.53-2mdv2011.0
|
||||
+ Revision: 592564
|
||||
- make nginx provide webserver
|
||||
|
||||
* Tue Oct 19 2010 Funda Wang <fwang@mandriva.org> 0.8.53-1mdv2011.0
|
||||
+ Revision: 586696
|
||||
- new version 0.8.53
|
||||
|
||||
* Mon Oct 04 2010 Funda Wang <fwang@mandriva.org> 0.8.52-1mdv2011.0
|
||||
+ Revision: 582791
|
||||
- update to new version 0.8.52
|
||||
|
||||
* Mon Aug 09 2010 Funda Wang <fwang@mandriva.org> 0.8.49-1mdv2011.0
|
||||
+ Revision: 567990
|
||||
- update to new version 0.8.49
|
||||
|
||||
* Wed Aug 04 2010 Funda Wang <fwang@mandriva.org> 0.8.48-1mdv2011.0
|
||||
+ Revision: 565647
|
||||
- update to new version 0.8.48
|
||||
|
||||
* Sun Aug 01 2010 Funda Wang <fwang@mandriva.org> 0.8.47-1mdv2011.0
|
||||
+ Revision: 564290
|
||||
- update to new version 0.8.47
|
||||
|
||||
* Tue Jul 20 2010 Jérôme Quelin <jquelin@mandriva.org> 0.8.46-2mdv2011.0
|
||||
+ Revision: 555663
|
||||
- rebuild
|
||||
|
||||
* Mon Jul 19 2010 Funda Wang <fwang@mandriva.org> 0.8.46-1mdv2011.0
|
||||
+ Revision: 554964
|
||||
- new version 0.8.46
|
||||
|
||||
* Tue Jun 15 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.41-1mdv2010.1
|
||||
+ Revision: 548065
|
||||
- 0.8.41
|
||||
|
||||
* Thu May 06 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.36-1mdv2010.1
|
||||
+ Revision: 542875
|
||||
- 0.8.36
|
||||
|
||||
* Wed Apr 14 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.35-1mdv2010.1
|
||||
+ Revision: 534664
|
||||
- 0.8.35
|
||||
- use the %%serverbuild macro
|
||||
|
||||
* Wed Apr 07 2010 Funda Wang <fwang@mandriva.org> 0.8.34-3mdv2010.1
|
||||
+ Revision: 532516
|
||||
- rebuild
|
||||
|
||||
* Mon Mar 29 2010 Michael Scherer <misc@mandriva.org> 0.8.34-2mdv2010.1
|
||||
+ Revision: 528833
|
||||
- remove patch0, no longer useful ( as nginx compile fine with -Werror
|
||||
and -D_FORTIFY_SOURCE=2 )
|
||||
|
||||
* Thu Mar 04 2010 Funda Wang <fwang@mandriva.org> 0.8.34-1mdv2010.1
|
||||
+ Revision: 514055
|
||||
- new version 0.8.34
|
||||
|
||||
* Fri Feb 26 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.33-2mdv2010.1
|
||||
+ Revision: 511596
|
||||
- rebuilt against openssl-0.9.8m
|
||||
|
||||
* Wed Feb 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.33-1mdv2010.1
|
||||
+ Revision: 506976
|
||||
- 0.8.33
|
||||
|
||||
* Thu Jan 14 2010 Michael Scherer <misc@mandriva.org> 0.8.31-2mdv2010.1
|
||||
+ Revision: 491109
|
||||
- enable ipv6, for point spec104 of 2010.1 ( ipv6 support )
|
||||
|
||||
+ Oden Eriksson <oeriksson@mandriva.com>
|
||||
- fix deps (shikamaru)
|
||||
|
||||
* Wed Jan 06 2010 Frederik Himpe <fhimpe@mandriva.org> 0.8.31-1mdv2010.1
|
||||
+ Revision: 486834
|
||||
- update to new version 0.8.31
|
||||
|
||||
* Sun Dec 20 2009 Oden Eriksson <oeriksson@mandriva.com> 0.8.30-1mdv2010.1
|
||||
+ Revision: 480481
|
||||
- 0.8.30
|
||||
|
||||
* Sat Dec 12 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.29-1mdv2010.1
|
||||
+ Revision: 477775
|
||||
- update to new version 0.8.29
|
||||
|
||||
* Wed Nov 25 2009 Funda Wang <fwang@mandriva.org> 0.8.28-1mdv2010.1
|
||||
+ Revision: 469934
|
||||
- update to new version 0.8.28
|
||||
|
||||
* Tue Nov 17 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.27-1mdv2010.1
|
||||
+ Revision: 467003
|
||||
- update to new version 0.8.27
|
||||
|
||||
* Sat Nov 07 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.22-1mdv2010.1
|
||||
+ Revision: 462619
|
||||
- update to new version 0.8.22
|
||||
|
||||
+ Thomas Backlund <tmb@mandriva.org>
|
||||
- fix typo in initscript
|
||||
|
||||
* Mon Sep 28 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.17-1mdv2010.0
|
||||
+ Revision: 450653
|
||||
- update to new version 0.8.17
|
||||
|
||||
* Mon Sep 14 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.15-1mdv2010.0
|
||||
+ Revision: 440749
|
||||
- update to new version 0.8.15
|
||||
|
||||
* Sat Aug 29 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.11-1mdv2010.0
|
||||
+ Revision: 422223
|
||||
- update to new version 0.8.11
|
||||
|
||||
* Wed Aug 12 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.8-1mdv2010.0
|
||||
+ Revision: 415678
|
||||
- update to new version 0.8.8
|
||||
|
||||
* Sun Jun 28 2009 Oden Eriksson <oeriksson@mandriva.com> 0.8.4-1mdv2010.0
|
||||
+ Revision: 390248
|
||||
- import nginx
|
||||
|
||||
|
||||
* Sun Jun 28 2009 Oden Eriksson <oeriksson@mandriva.com> 0.8.4-1
|
||||
- initial Mandriva package (fedora import)
|
||||
|
||||
* Sun May 17 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-2
|
||||
- init script updates from Gena Makhomed
|
||||
- remove nginx-upstream-fair
|
||||
|
||||
* Sat Apr 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-1
|
||||
- update to 0.6.36
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.35-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-2
|
||||
- rebuild
|
||||
|
||||
* Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-1
|
||||
- update to 0.6.35
|
||||
|
||||
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.6.34-2
|
||||
- rebuild with new openssl
|
||||
|
||||
* Tue Dec 30 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.34-1
|
||||
- update to 0.6.34
|
||||
|
||||
* Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6.33-2
|
||||
- Fix inclusion of /usr/share/nginx tree => no unowned directories.
|
||||
|
||||
* Sun Nov 23 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.33-1
|
||||
- update to 0.6.33
|
||||
|
||||
* Tue Jul 22 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.32-1
|
||||
- update to 0.6.32
|
||||
- nginx now supports DESTDIR so removed the patches that enabled it
|
||||
|
||||
* Mon May 26 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-3
|
||||
- init script fixes
|
||||
- resolve 'listen 80 default' [#447873]
|
||||
|
||||
* Mon May 12 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-2
|
||||
- update to 0.6.31
|
||||
|
||||
* Sun May 11 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.30-2
|
||||
- upate to new upstream stable branch 0.6
|
||||
- added 3rd party module nginx-upstream-fair
|
||||
- added default webpages
|
||||
|
||||
* Sun Apr 20 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-2
|
||||
- update init script to match recommended guidelines
|
||||
- add /etc/nginx/conf.d support [#443280]
|
||||
- use /etc/sysconfig/nginx to determine nginx.conf [#442708]
|
||||
|
||||
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5.35-3
|
||||
- add Requires for versioned perl (libperl.so)
|
||||
- drop silly file Requires
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.35-2
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Sat Jan 19 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-1
|
||||
- update to 0.5.35
|
||||
|
||||
* Sat Dec 15 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.34-1
|
||||
- update to 0.5.34
|
||||
|
||||
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 0.5.33-2
|
||||
- Rebuild for deps
|
||||
|
||||
* Sun Nov 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.33-1
|
||||
- update to 0.5.33
|
||||
|
||||
* Mon Sep 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.32-1
|
||||
- updated to 0.5.32
|
||||
- fixed rpmlint UTF-8 complaints.
|
||||
|
||||
* Sat Aug 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-2
|
||||
- added --with-http_stub_status_module build option.
|
||||
- added --with-http_sub_module build option.
|
||||
- added use of pcre-config --cflags
|
||||
|
||||
* Fri Aug 17 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-1
|
||||
- Update to 0.5.31
|
||||
- specify license is BSD
|
||||
|
||||
* Sat Aug 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-2
|
||||
- Add BuildRequires: perl-devel - fixing rawhide build
|
||||
|
||||
* Mon Jul 30 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-1
|
||||
- Update to 0.5.30
|
||||
|
||||
* Tue Jul 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.29-1
|
||||
- Update to 0.5.29
|
||||
|
||||
* Wed Jul 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.28-1
|
||||
- Update to 0.5.28
|
||||
|
||||
* Mon Jul 09 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.27-1
|
||||
- Update to 0.5.27
|
||||
|
||||
* Mon Jun 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.26-1
|
||||
- Update to 0.5.26
|
||||
|
||||
* Sat Apr 28 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.19-1
|
||||
- Update to 0.5.19
|
||||
|
||||
* Mon Apr 02 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.17-1
|
||||
- Update to 0.5.17
|
||||
|
||||
* Mon Mar 26 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.16-1
|
||||
- Update to 0.5.16
|
||||
- add ownership of /usr/share/nginx/html (#233950)
|
||||
|
||||
* Fri Mar 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-3
|
||||
- fixed package review bugs (#235222) given by ruben@rubenkerkhof.com
|
||||
|
||||
* Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-2
|
||||
- fixed package review bugs (#233522) given by kevin@tummy.com
|
||||
|
||||
* Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-1
|
||||
- create patches to assist with building for Fedora
|
||||
- initial packaging for Fedora
|
4
nginx.sysconfig
Normal file
4
nginx.sysconfig
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Configuration file for the nginx service
|
||||
|
||||
# set this to the location of the nginx configuration file
|
||||
NGINX_CONF_FILE=/etc/nginx/nginx.conf
|
BIN
poweredby.png
Normal file
BIN
poweredby.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
24
ssl.conf
Normal file
24
ssl.conf
Normal file
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
# HTTPS server configuration
|
||||
#
|
||||
|
||||
#server {
|
||||
# listen 443;
|
||||
# server_name _;
|
||||
|
||||
# ssl on;
|
||||
# ssl_certificate cert.pem;
|
||||
# ssl_certificate_key cert.key;
|
||||
|
||||
# ssl_session_timeout 5m;
|
||||
|
||||
# ssl_protocols SSLv2 SSLv3 TLSv1;
|
||||
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
|
||||
# ssl_prefer_server_ciphers on;
|
||||
|
||||
# location / {
|
||||
# root html;
|
||||
# index index.html index.htm;
|
||||
# }
|
||||
#}
|
||||
|
15
virtual.conf
Normal file
15
virtual.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# A virtual host using mix of IP-, name-, and port-based configuration
|
||||
#
|
||||
|
||||
#server {
|
||||
# listen 8000;
|
||||
# listen somename:8080;
|
||||
# server_name somename alias another.alias;
|
||||
|
||||
# location / {
|
||||
# root html;
|
||||
# index index.html index.htm;
|
||||
# }
|
||||
#}
|
||||
|
Loading…
Add table
Reference in a new issue