Search
j0ke.net Open Build Service
>
Projects
>
ha
>
varnish2
> varnish.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File varnish.spec of Package varnish2 (Revision 42)
Currently displaying revision
42
,
show latest
# norootforbuild %define pversion 2.1.4 %define varnish_backend_secret 2010#${RANDOM} Name: varnish Version: 2.1.4 Release: 27 # License: BSD Group: Productivity/Networking/Web/Proxy # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ncurses-devel libxslt pcre-devel %if 0%{?suse_version} BuildRequires: pkg-config %endif %if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} BuildRequires: pkgconfig %endif Requires: gcc %define _bindir %{_sbindir} %define pkg_home %{_var}/lib/%{name} %define pkg_logdir %{_var}/log/%{name} %define pkg_cachedir %{_var}/cache/%{name} %define pkg_name %{name} # URL: http://www.varnish-cache.org/ Source: http://downloads.sourceforge.net/varnish/varnish-%{pversion}.tar.bz2 Source2: varnish.init Patch0: varnish-redhat-pid.patch Patch1: varnishncsa-vhost-2.1.4.patch # bugfixes # changeset 3308 / included since 2.0.1 #Patch100: %{name}-%{version}-acl_compile.patch # changeset 3315 / included since 2.0.1 #Patch101: %{name}-%{version}-coredump_http_protocol_input.patch # changeset 3322 / included since 2.0.2 #Patch102: %{name}-%{version}-ESI.patch Summary: Varnish is a high-performance HTTP accelerator %description Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse Proxy) is an application that stores (caches) documents that have been requested over the HTTP protocol. Based on certain criteria the next client requesting the document is either given the cached document, or a "fresh" document requested from a backend server. The purpose of this is to minimize the requests going to the backend server(s) by serving the same document to potentially many users. Authors: -------- Poul-Henning Kamp <phk@phk.freebsd.dk> %package -n libvarnish1 Group: Productivity/Networking/Web/Proxy # Summary: Shared libraries for Varnish %description -n libvarnish1 Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse Proxy) is an application that stores (caches) documents that have been requested over the HTTP protocol. Based on certain criteria the next client requesting the document is either given the cached document, or a "fresh" document requested from a backend server. The purpose of this is to minimize the requests going to the backend server(s) by serving the same document to potentially many users. This package holds the shared libraries for varnish. Authors: -------- Poul-Henning Kamp <phk@phk.freebsd.dk> %package devel Group: Development/Libraries/C and C++ Requires: %{name} = %{version} # Summary: Development files for Varnish %description devel Varnish is an HTTP accelerator. An HTTP accelerator (often called Reverse Proxy) is an application that stores (caches) documents that have been requested over the HTTP protocol. Based on certain criteria the next client requesting the document is either given the cached document, or a "fresh" document requested from a backend server. The purpose of this is to minimize the requests going to the backend server(s) by serving the same document to potentially many users. This package holds the development files for varnish. Authors: -------- Poul-Henning Kamp <phk@phk.freebsd.dk> %debug_package %prep %setup -n %{name}-%{pversion} %patch0 %patch1 ##%patch100 ##%patch101 ##%patch102 touch AUTHORS COPYING NEWS %build autoreconf -fi %if 0%{?suse_version} > 1000 export CFLAGS="%{optflags} -fstack-protector" %endif %configure --disable-static --localstatedir=%{_var}/cache/ \ --enable-debugging-symbols \ --enable-developer-warnings %{__make} %install %makeinstall find %{buildroot} -ls # # remove unneeded files # libvarnish.la has -lrt as dependency lib #%{__rm} -fv %{buildroot}%{_libdir}/*.la # # missing directories %{__install} -d -m 0755 %{buildroot}{%{pkg_logdir},%{pkg_home}} %{__install} -D -m 0644 redhat/varnish.logrotate %{buildroot}/etc/logrotate.d/varnish %if 0%{?suse_version} # # init scripts %{__install} -D -m 0644 redhat/varnish.sysconfig %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} %{__install} -D -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/%{name} %{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} # # config files %{__install} -D -m 0644 etc/default.vcl %{buildroot}%{_sysconfdir}/%{name}/default.vcl %{__install} -D -m 0644 etc/default.vcl %{buildroot}%{_sysconfdir}/%{name}/default.vcl.example echo %{varnish_backend_secret} > %{buildroot}%{_sysconfdir}/%{name}/secret %else # # init scripts %{__install} -D -m 0644 redhat/varnish.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name} %{__install} -D -m 0755 redhat/varnish.initrc %{buildroot}%{_sysconfdir}/init.d/%{name} # # config files %{__install} -D -m 0644 etc/default.vcl %{buildroot}%{_sysconfdir}/%{name}/default.vcl %{__install} -D -m 0644 etc/default.vcl %{buildroot}%{_sysconfdir}/%{name}/default.vcl.example echo %{varnish_backend_secret} > %{buildroot}%{_sysconfdir}/%{name}/secret # directorys %{__install} -m 0755 -d %{buildroot}%{pkg_cachedir} %endif %{__install} -m 0755 -d %{buildroot}%{_var}/run/%{name} %{__install} -m 0755 -d %{buildroot}/var/log/varnish %clean %{__rm} -rf %{buildroot} %pre /usr/sbin/groupadd -r %{pkg_name} &>/dev/null ||: /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "user for %{pkg_name}" -d %{pkg_home} %{pkg_name} &>/dev/null ||: %if 0%{?suse_version} %post %fillup_and_insserv %{pkg_name} %preun %stop_on_removal %{pkg_name} %postun %restart_on_update %{pkg_name} %{insserv_cleanup} %else # how to do the same for RH/mandriva? %endif %post -n libvarnish1 -p /sbin/ldconfig %postun -n libvarnish1 -p /sbin/ldconfig %files %defattr(-,root,root,-) %if 0%{?suse_version} %{_sbindir}/rc%{name} /var/adm/fillup-templates/sysconfig.%{name} %else %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %endif %config(noreplace) %{_sysconfdir}/init.d/%{name} # %dir %attr(750,%{pkg_name},%{pkg_name}) %{_sysconfdir}/%{name}/ %config(noreplace) %attr(640,%{pkg_name},%{pkg_name}) %{_sysconfdir}/%{name}/secret %config(noreplace) %attr(640,%{pkg_name},%{pkg_name}) %{_sysconfdir}/%{name}/default.vcl %config %attr(640,%{pkg_name},%{pkg_name}) %{_sysconfdir}/%{name}/default.vcl.example %dir %attr(750,%{pkg_name},%{pkg_name}) %{_var}/run/%{name}/ # %{_sbindir}/varnishd %{_sbindir}/varnishhist %{_sbindir}/varnishlog %{_sbindir}/varnishncsa %{_sbindir}/varnishstat %{_sbindir}/varnishtop %{_sbindir}/varnishadm %{_sbindir}/varnishreplay %{_sbindir}/varnishsizes %{_sbindir}/varnishtest ##%{_mandir}/man1/varnishadm.1* ##%{_mandir}/man1/varnishreplay.1* ##%{_mandir}/man1/varnishd.1* ##%{_mandir}/man1/varnishhist.1* ##%{_mandir}/man1/varnishlog.1* ##%{_mandir}/man1/varnishncsa.1* ##%{_mandir}/man1/varnishsizes.1* ##%{_mandir}/man1/varnishstat.1* ##%{_mandir}/man1/varnishtop.1* ##%{_mandir}/man1/varnishtest.1* ##%{_mandir}/man7/vcl.7* %doc ChangeLog LICENSE README %if ! 0%{?suse_version} %doc redhat/README.redhat %endif %dir %attr(750,%{pkg_name},%{pkg_name}) %{pkg_home} %dir %attr(750,%{pkg_name},%{pkg_name}) %{pkg_cachedir} %config /etc/logrotate.d/varnish %dir /var/log/varnish %files -n libvarnish1 %defattr(-,root,root,-) %{_libdir}/libvarnish.so.1 %{_libdir}/libvarnish.so.1.0.0 %{_libdir}/libvarnishapi.so.1 %{_libdir}/libvarnishapi.so.1.0.0 %{_libdir}/libvcl.so.1 %{_libdir}/libvcl.so.1.0.0 %{_libdir}/libvarnishcompat.so.1 %{_libdir}/libvarnishcompat.so.1.0.0 %files devel %defattr(-,root,root,-) %{_includedir}/varnish/ %{_libdir}/pkgconfig/varnishapi.pc %{_libdir}/libvarnish.la %{_libdir}/libvarnishapi.la %{_libdir}/libvcl.la %{_libdir}/libvarnishcompat.la %{_libdir}/libvarnish.so %{_libdir}/libvarnishapi.so %{_libdir}/libvcl.so %{_libdir}/libvarnishcompat.so %changelog * Mon Oct 25 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.4-1 - update to release 2.1.4 * Thu Oct 21 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.3-2 - added varnish log dir * Wed Aug 04 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.3-1 - update to release .2.1.3 * Sat May 22 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.2-25 - added missing secret file * Wed May 05 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.2-20 - update to release 2.1.2 * Sat Apr 24 2010 Carsten Schoene <cs@linux-administrator.com> - 2.1.0-14 - update to release 2.1.0 * Fri Dec 18 2009 Carsten Schoene <cs@linux-administrator.com> - 2.0.6-13 - update to release 2.0.6 * Tue Jun 16 2009 Carsten Schoene <cs@linux-administrator.com> - 2.0.4-12 - remove last patch * Thu Jun 04 2009 Carsten Schoene <cs@linux-administrator.com> - 2.0.4-11 - added notimeouts_norecycle.patch fixes (#495) * Thu Apr 02 2009 Carsten Schoene <cs@linux-administrator.com> - 2.0.4-10 - update to release 2.0.4 - Serve graced objects if the backend is unhealthy - Portability fixes for Solaris, MacOS X/Darwin and NetBSD - Documentation updates - Added server.hostname and server.identity to VCL - Fixed a problem where we would sleep for far too long when we would run out of file descriptors - Add support for processing binary objects with ESI * Sat Mar 28 2009 Carsten Schoene <cs@linux-administrator.com> - 2.0.3-9 - only changes in specfile * Mon Mar 09 2009 Carsten Schoene <cs@linux-administrator.com> - update to release 2.0.3 - Support for backend timeouts - Multiple fixes in how we process ESI - restart in vcl_hit is now supported - Documentation has been updated - Expiry processing is now more scalable - The default session workspace is now 16k instead of 8k - More graceful handling of too many headers from the client or the server. - More expressive purges * Fri Nov 14 2008 Carsten Schoene <cs@linux-administrator.com> - update to release 2.0.2 - This release fixes a possible ESI crash - increases the stack size for varnishreplay and makes it work on Linux - fixes the random director to actually work properly - makes it possible to remove duplicate purges - adds a man page for varnishtest - and makes resp.status work correctly in VCL * Mon Oct 20 2008 Carsten Schoene <cs@linux-administrator.com> - add ESI Patch / r3322 * Fri Oct 17 2008 Carsten Schoene <cs@linux-administrator.com> - update to release 2.0.1 * Fri Oct 17 2008 Carsten Schoene <cs@linux-administrator.com> - added two patches for 2.0 fixes: - acl_compile.patch - coredump_http_protocol_input.patch * Wed Oct 15 2008 Carsten Schoene <cs@linux-administrator.com> - build final version 2.0 * Tue Oct 14 2008 Carsten Schoene <cs@linux-administrator.com> - build varnish 2.0-rc1 as prepareration for final 2.0 * Tue Apr 08 2008 Carsten Schoene <cs@linux-administrator.com> - initial build of version 1.1.2