Updated el6 branch to the 2.1.x series.
This commit is contained in:
parent
e80274523c
commit
2e84a84013
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
varnish-2.0.6.tar.gz
|
varnish-2.0.6.tar.gz
|
||||||
|
varnish-2.1.3.tar.gz
|
||||||
|
/varnish-2.1.3.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
d91dc21c636db61c69b5e8f061c5bb95 varnish-2.0.6.tar.gz
|
357d99a760de173d841ac37bf2052be8 varnish-2.1.3.tar.gz
|
||||||
|
11
varnish.ppc64_stacksize_test.patch
Normal file
11
varnish.ppc64_stacksize_test.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- bin/varnishtest/tests/c00031.vtc.orig 2010-08-24 12:33:29.062232351 +0200
|
||||||
|
+++ bin/varnishtest/tests/c00031.vtc 2010-08-24 12:31:57.804150780 +0200
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
txresp
|
||||||
|
} -start
|
||||||
|
|
||||||
|
-varnish v1 -arg "-p thread_pool_stack=131072" -vcl+backend {} -start
|
||||||
|
+varnish v1 -arg "-p thread_pool_stack=262144" -vcl+backend {} -start
|
||||||
|
|
||||||
|
client c1 {
|
||||||
|
txreq -url "/"
|
15
varnish.s390_pagesize.patch
Normal file
15
varnish.s390_pagesize.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -Naur ../varnish-2.1.2.orig/lib/libjemalloc/jemalloc_linux.c ./lib/libjemalloc/jemalloc_linux.c
|
||||||
|
--- ../varnish-2.1.2.orig/lib/libjemalloc/jemalloc_linux.c 2010-05-05 09:32:02.000000000 +0200
|
||||||
|
+++ ./lib/libjemalloc/jemalloc_linux.c 2010-07-29 15:39:00.221232248 +0200
|
||||||
|
@@ -273,6 +273,11 @@
|
||||||
|
# define QUANTUM_2POW 4
|
||||||
|
# define SIZEOF_PTR_2POW 2
|
||||||
|
#endif
|
||||||
|
+#ifdef __s390__
|
||||||
|
+# define PAGESIZE_2POW 12
|
||||||
|
+# define QUANTUM_2POW 4
|
||||||
|
+# define SIZEOF_PTR_2POW 2
|
||||||
|
+#endif
|
||||||
|
#ifdef __s390x__
|
||||||
|
# define PAGESIZE_2POW 12
|
||||||
|
# define QUANTUM_2POW 4
|
78
varnish.spec
78
varnish.spec
@ -1,23 +1,24 @@
|
|||||||
Summary: High-performance HTTP accelerator
|
Summary: High-performance HTTP accelerator
|
||||||
Name: varnish
|
Name: varnish
|
||||||
Version: 2.0.6
|
Version: 2.1.3
|
||||||
Release: 2.2%{?dist}
|
Release: 2%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.varnish-cache.org/
|
URL: http://www.varnish-cache.org/
|
||||||
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
|
||||||
Patch0: varnish.varnishtest_debugflag.patch
|
Patch1: varnish.s390_pagesize.patch
|
||||||
Patch1: varnish.changes-2.0.6.patch
|
Patch2: varnish.ppc64_stacksize_test.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
# The svn sources needs autoconf, automake and libtool to generate a suitable
|
# The svn sources needs autoconf, automake and libtool to generate a suitable
|
||||||
# configure script. Release tarballs would not need this
|
# configure script. Release tarballs would not need this
|
||||||
#BuildRequires: automake autoconf libtool
|
#BuildRequires: automake autoconf libtool
|
||||||
BuildRequires: ncurses-devel libxslt groff
|
BuildRequires: ncurses-devel libxslt groff pcre-devel pkgconfig
|
||||||
Requires: varnish-libs = %{version}-%{release}
|
Requires: varnish-libs = %{version}-%{release}
|
||||||
Requires: logrotate
|
Requires: logrotate
|
||||||
Requires: ncurses
|
Requires: ncurses
|
||||||
|
Requires: pcre
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): /sbin/chkconfig, /usr/bin/mkpasswd
|
||||||
Requires(preun): /sbin/chkconfig
|
Requires(preun): /sbin/chkconfig
|
||||||
Requires(preun): /sbin/service
|
Requires(preun): /sbin/service
|
||||||
Requires(preun): initscripts
|
Requires(preun): initscripts
|
||||||
@ -65,13 +66,17 @@ Varnish is a high-performance HTTP accelerator
|
|||||||
%setup -q
|
%setup -q
|
||||||
#%setup -q -n varnish-cache
|
#%setup -q -n varnish-cache
|
||||||
|
|
||||||
|
%patch1
|
||||||
|
|
||||||
|
# tests/c00031.vtc crashes on rhel6/ppc64 because of hardcoded stack size
|
||||||
|
%ifarch ppc64
|
||||||
|
%patch2
|
||||||
|
%endif
|
||||||
|
|
||||||
# The svn sources needs to generate a suitable configure script
|
# The svn sources needs to generate a suitable configure script
|
||||||
# Release tarballs would not need this
|
# Release tarballs would not need this
|
||||||
#./autogen.sh
|
#./autogen.sh
|
||||||
|
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
# Hack to get 32- and 64-bits tests run concurrently on the same build machine
|
# Hack to get 32- and 64-bits tests run concurrently on the same build machine
|
||||||
case `uname -m` in
|
case `uname -m` in
|
||||||
ppc64 | s390x | x86_64 | sparc64 )
|
ppc64 | s390x | x86_64 | sparc64 )
|
||||||
@ -92,13 +97,18 @@ cp bin/varnishd/default.vcl etc/zope-plone.vcl examples
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
# No pkgconfig/libpcre.pc in rhel4
|
||||||
|
%if 0%{?rhel} == 4
|
||||||
|
export PCRE_CFLAGS=`pcre-config --cflags`
|
||||||
|
export PCRE_LIBS=`pcre-config --libs`
|
||||||
|
%endif
|
||||||
|
|
||||||
# Remove "--disable static" if you want to build static libraries
|
# Remove "--disable static" if you want to build static libraries
|
||||||
# jemalloc is not compatible with Red Hat's ppc* RHEL5 kernel koji server :-(
|
# jemalloc is not compatible with Red Hat's ppc RHEL kernel koji server :-(
|
||||||
|
# Fedora users running varnish on ppc with a fedora kernel might want to try
|
||||||
|
# to build with jemalloc.
|
||||||
%ifarch ppc64 ppc
|
%ifarch ppc64 ppc
|
||||||
if [[ `uname -r` =~ "2.6.18-.*" ]]
|
%configure --disable-static --localstatedir=/var/lib --disable-jemalloc
|
||||||
then %configure --disable-static --localstatedir=/var/lib --disable-jemalloc
|
|
||||||
else %configure --disable-static --localstatedir=/var/lib
|
|
||||||
fi
|
|
||||||
%else
|
%else
|
||||||
%configure --disable-static --localstatedir=/var/lib
|
%configure --disable-static --localstatedir=/var/lib
|
||||||
%endif
|
%endif
|
||||||
@ -129,11 +139,6 @@ tail -n +11 etc/default.vcl >> redhat/default.vcl
|
|||||||
redhat/varnish.initrc redhat/varnishlog.initrc redhat/varnishncsa.initrc
|
redhat/varnish.initrc redhat/varnishlog.initrc redhat/varnishncsa.initrc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Fix for broken changes-2.0.6.html
|
|
||||||
pushd doc
|
|
||||||
%{__make} clean; %{__make}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# rhel5 on ppc64 is just too strange
|
# rhel5 on ppc64 is just too strange
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
@ -238,6 +243,7 @@ exit 0
|
|||||||
/sbin/chkconfig --add varnish
|
/sbin/chkconfig --add varnish
|
||||||
/sbin/chkconfig --add varnishlog
|
/sbin/chkconfig --add varnishlog
|
||||||
/sbin/chkconfig --add varnishncsa
|
/sbin/chkconfig --add varnishncsa
|
||||||
|
test -f /etc/varnish/secret || (mkpasswd > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -lt 1 ]; then
|
if [ $1 -lt 1 ]; then
|
||||||
@ -254,7 +260,39 @@ fi
|
|||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Dec 23 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-2.2
|
* Tue Aug 24 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-2
|
||||||
|
- Added a RHEL6/ppc64 specific patch for that changes the hard coded
|
||||||
|
stack size in tests/c00031.vtc
|
||||||
|
|
||||||
|
* Thu Jul 29 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-1
|
||||||
|
- New upstream release
|
||||||
|
- Add a patch for jemalloc on s390 that lacks upstream
|
||||||
|
|
||||||
|
* Wed May 05 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.2-1
|
||||||
|
- New upstream release
|
||||||
|
- Remove patches merged upstream
|
||||||
|
|
||||||
|
* Tue Apr 27 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.1-1
|
||||||
|
- New upstream release
|
||||||
|
- Added a fix for missing pkgconfig/libpcre.pc on rhel4
|
||||||
|
- Added a patch from trunk making the rpm buildable on lowspec
|
||||||
|
build hosts (like Red Hat's ppc build farm nodes)
|
||||||
|
- Removed patches that are merged upstream
|
||||||
|
|
||||||
|
* Wed Apr 14 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.0-2
|
||||||
|
- Added a patch from svn that fixes changes-2.0.6-2.1.0.xml
|
||||||
|
|
||||||
|
* Tue Apr 06 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.1.0-1
|
||||||
|
- New upstream release; note: Configuration changes, see the README
|
||||||
|
- Removed unneeded patches
|
||||||
|
- CVE-2009-2936: Added a patch from Debian that adds the -S option
|
||||||
|
to the varnisdh(1) manpage and to the sysconfig defaults, thus
|
||||||
|
password-protecting the admin interface port (#579536,#579533)
|
||||||
|
- Generates that password in the post script, requires mkpasswd
|
||||||
|
- Added a patch from Robert Scheck for explicit linking to libm
|
||||||
|
- Requires pcre
|
||||||
|
|
||||||
|
* Wed Dec 23 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-2
|
||||||
- Added a test that enables jemalloc on ppc if the kernel is
|
- Added a test that enables jemalloc on ppc if the kernel is
|
||||||
not a rhel5 kernel (as on redhat builders)
|
not a rhel5 kernel (as on redhat builders)
|
||||||
- Removed tests c00031.vtc and r00387on rhel4/ppc as they fail
|
- Removed tests c00031.vtc and r00387on rhel4/ppc as they fail
|
||||||
|
Loading…
Reference in New Issue
Block a user