head 1.24;
access;
symbols
OPENPKG_E1_MP_HEAD:1.5
OPENPKG_E1_MP:1.5
OPENPKG_E1_MP_2_STABLE:1.3.2.2
OPENPKG_E1_FP:1.3.2.2
OPENPKG_2_STABLE_MP:1.3
OPENPKG_2_STABLE_20061018:1.3.2.2
OPENPKG_2_STABLE:1.3.0.2;
locks; strict;
comment @-- @;
1.24
date 2009.12.16.18.58.31; author rse; state Exp;
branches;
next 1.23;
commitid qmXTPds9I1vccDfu;
1.23
date 2009.11.09.18.58.01; author rse; state Exp;
branches;
next 1.22;
commitid LoJ8OiXQYuQLnSau;
1.22
date 2009.06.30.20.21.40; author rse; state Exp;
branches;
next 1.21;
commitid mW7f5wxeUG4f4VTt;
1.21
date 2009.04.18.13.17.48; author rse; state Exp;
branches;
next 1.20;
commitid 4pHXU27WTIGCZuKt;
1.20
date 2009.04.02.20.15.48; author rse; state Exp;
branches;
next 1.19;
commitid x9Eo20RiMF7SUtIt;
1.19
date 2009.03.27.12.15.30; author rse; state Exp;
branches;
next 1.18;
commitid N6PWDB4SrVf4sFHt;
1.18
date 2008.11.18.20.18.42; author rse; state Exp;
branches;
next 1.17;
commitid PvvuzGsfonJUg8rt;
1.17
date 2008.10.18.18.18.51; author rse; state Exp;
branches;
next 1.16;
commitid XbBShXg6ZCWzB8nt;
1.16
date 2008.09.25.07.20.25; author rse; state Exp;
branches;
next 1.15;
commitid COLLtYuGLRgxH7kt;
1.15
date 2008.01.01.15.06.46; author rse; state Exp;
branches;
next 1.14;
commitid B8esaHJHoduuKILs;
1.14
date 2007.12.20.16.40.08; author cs; state Exp;
branches;
next 1.13;
commitid XAzPKFYB8QMyNbKs;
1.13
date 2007.12.13.17.54.37; author rse; state Exp;
branches;
next 1.12;
commitid iON3i3teVt84riJs;
1.12
date 2007.10.06.08.46.47; author rse; state Exp;
branches;
next 1.11;
commitid DwYm8iF0tcwDAvAs;
1.11
date 2007.09.10.15.08.41; author cs; state Exp;
branches;
next 1.10;
commitid mi4vxbaMLyhtxcxs;
1.10
date 2007.08.21.21.06.42; author cs; state Exp;
branches;
next 1.9;
commitid sACjPcg4GvZ8aFus;
1.9
date 2007.08.07.21.18.27; author cs; state Exp;
branches;
next 1.8;
commitid WodDm0xfX2c5GRss;
1.8
date 2007.07.20.19.28.11; author cs; state Exp;
branches;
next 1.7;
commitid pF8IqQqlrhZ7Exqs;
1.7
date 2007.05.21.07.25.05; author rse; state Exp;
branches;
next 1.6;
commitid mXDOhiQ6R62DzLis;
1.6
date 2007.02.20.14.26.09; author rse; state Exp;
branches;
next 1.5;
commitid wjfvVqXwjZKrNe7s;
1.5
date 2007.01.01.17.42.41; author rse; state Exp;
branches;
next 1.4;
commitid BicZD6VUl7GuqP0s;
1.4
date 2006.11.07.14.13.39; author cs; state Exp;
branches;
next 1.3;
commitid 4p7ZSvww0UFp6KTr;
1.3
date 2006.10.13.17.35.27; author thl; state Exp;
branches
1.3.2.1;
next 1.2;
commitid q5GSxzsSDX29XxQr;
1.2
date 2006.10.11.20.53.42; author rse; state Exp;
branches;
next 1.1;
commitid 1UuJRfzvzzerbjQr;
1.1
date 2006.10.11.18.04.03; author cs; state Exp;
branches;
next ;
commitid t5LGHrbqNGNffiQr;
1.3.2.1
date 2006.10.13.17.35.27; author rse; state dead;
branches;
next 1.3.2.2;
commitid iZxwRSmmWscPXUQr;
1.3.2.2
date 2006.10.16.14.57.43; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.24
log
@upgrading package: varnish 2.0.5 -> 2.0.6
@
text
@##
## varnish.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_opkg 2.0.6
%define V_dist 2.0.6
# package information
Name: varnish
Summary: High-Performance HTTP Accelerator
URL: http://www.varnish-cache.org/
Vendor: Poul-Henning Kamp et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Web
License: BSD
Version: %{V_opkg}
Release: 20091216
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/varnish/varnish-%{V_dist}.tar.gz
Source1: rc.varnish
Source2: varnish.vcl
Patch0: varnish.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc
PreReq: OpenPKG, openpkg >= 20060823, gcc
BuildPreReq: ncurses
PreReq: ncurses
AutoReq: no
AutoReqProv: no
%description
Varnish was written from the ground up to be a high performance
HTTP caching reverse proxy. The configuration is specified using
a domain-specific language called VCL, the Varnish Configuration
Language. The varnishd(1) management process translates the VCL code
to C and compiles it to a shared object, which is then dynamically
linked into the server process.
Varnish is targeted primarily at the FreeBSD 6 and Linux 2.6
platforms, and will take full advantage of the advanced I/O features
offered by these operating systems.
%track
prog varnish = {
version = %{V_dist}
url = http://sourceforge.net/projects/varnish/files/
regex = varnish-(__VER__)\.tar\.gz
}
%prep
# platform checks
case "%{l_platform -t}" in
*-sunos5.1[01]* ) ;;
*-freebsd[6-8]* ) ;;
*-linux2.6* ) ;;
* )
set +x
echo "Platform \"%{l_platform -t}\" not supported." |\
%{l_rpmtool} msg -b -t error
exit 1
;;
esac
# unpack and patch Varnish distribution
%setup -q -n varnish-%{V_dist}
%patch -p0
%build
# ensure OpenPKG %{l_cc} is being used for VCL code generation
%{l_shtool} subst \
-e 's;exec cc;exec %{l_cc};g' \
configure
# configure package
export CC="%{l_cc}"
export CFLAGS="%{l_cflags -O}"
export CPPFLAGS="%{l_cppflags ncurses}"
export LDFLAGS="%{l_ldflags}"
export LIBS=""
CPPFLAGS="$CPPFLAGS -DOPKG_PIDFILE=\\\"%{l_prefix}/var/varnish/varnishd.pid\\\""
case "%{l_platform -t}" in
*-sunos* ) LIBS="$LIBS -lsocket -lnsl" ;;
esac
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
--disable-shared
# build package
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# install package
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
# create additional directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/varnish
# install default configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/varnish
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE varnish.vcl} \
$RPM_BUILD_ROOT%{l_prefix}/etc/varnish/
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.varnish} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# strip installation
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/varnish/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} varnish status 2>/dev/null`
[ ".$varnish_active" = .yes ] && %{l_rc} varnish restart
exit 0
%preun
# before erase, stop service
[ $1 -eq 0 ] || exit 0
%{l_rc} varnish stop 2>/dev/null
exit 0
@
1.23
log
@upgrading package: varnish 2.0.4 -> 2.0.5
@
text
@d25 2
a26 2
%define V_opkg 2.0.5
%define V_dist 2.0.5
d39 1
a39 1
Release: 20091109
@
1.22
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@d25 2
a26 2
%define V_opkg 2.0.4
%define V_dist 2.0.4
d39 1
a39 1
Release: 20090402
@
1.21
log
@bump years in copyright messages
@
text
@d72 1
a72 1
url = http://prdownloads.sourceforge.net/varnish/
@
1.20
log
@upgrading package: varnish 2.0.3 -> 2.0.4
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.19
log
@upgrading package: varnish 2.0.2 -> 2.0.3
@
text
@d25 2
a26 2
%define V_opkg 2.0.3
%define V_dist 2.0.3
d39 1
a39 1
Release: 20090327
@
1.18
log
@upgrading package: varnish 2.0.1 -> 2.0.2
@
text
@d25 2
a26 2
%define V_opkg 2.0.2
%define V_dist 2.0.2
d39 1
a39 1
Release: 20081118
@
1.17
log
@upgrading package: varnish 2.0b2 -> 2.0.1
@
text
@d25 2
a26 2
%define V_opkg 2.0.1
%define V_dist 2.0.1
d39 1
a39 1
Release: 20081018
@
1.16
log
@upgrading package: varnish 1.1.2 -> 2.0b2
@
text
@d25 2
a26 2
%define V_opkg 2.0b2
%define V_dist 2.0-beta2
d39 1
a39 1
Release: 20080925
@
1.15
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d24 4
d38 2
a39 2
Version: 1.1.2
Release: 20080101
d42 1
a42 1
Source0: http://switch.dl.sourceforge.net/sourceforge/varnish/varnish-%{version}.tar.gz
d71 1
a71 1
version = %{version}
d91 1
a91 1
%setup -q
d97 2
a98 2
-e 's;@@l_cc@@;%{l_cc};g' \
bin/varnishd/mgt_vcc.c
@
1.14
log
@upgrading package: varnish 1.1.1 -> 1.1.2
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d35 1
a35 1
Release: 20071220
@
1.13
log
@support FreeBSD 8
@
text
@d35 2
a36 2
Version: 1.1.1
Release: 20071213
@
1.12
log
@port to Sun Solaris; remove some unnecessary sub-shell constructs and move the overriding subst to %build to allow one to more easily patch varnish
@
text
@d36 1
a36 1
Release: 20071006
d77 1
a77 1
*-freebsd[6-7]* ) ;;
@
1.11
log
@support FreeBSD 7 as well
@
text
@d36 1
a36 1
Release: 20070910
d75 11
a85 11
( case "%{l_platform -t}" in
*-freebsd[6-7]* ) ;;
*-linux2.6* ) ;;
* )
set +x
( echo "Platform \"%{l_platform -t}\" not supported."
) | %{l_rpmtool} msg -b -t error
exit 1
;;
esac
) || exit $?
d91 1
a96 1
%build
d98 9
a106 3
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags ncurses} -DOPKG_PIDFILE=\\\"%{l_prefix}/var/varnish/varnishd.pid\\\"" \
@
1.10
log
@upgrading package: varnish 1.1 -> 1.1.1
@
text
@d36 1
a36 1
Release: 20070821
d76 2
a77 2
*-freebsd6* ) ;;
*-linux2.6* ) ;;
@
1.9
log
@fix path of and man pages
@
text
@d35 2
a36 2
Version: 1.1
Release: 20070807
@
1.8
log
@upgrading package: varnish 1.0.4 -> 1.1
@
text
@d36 1
a36 1
Release: 20070720
d103 1
@
1.7
log
@upgrading package: varnish 1.0.3 -> 1.0.4
@
text
@d35 2
a36 2
Version: 1.0.4
Release: 20070521
d93 2
a94 2
-e 's;^\([ ]*"\)cc\( -fpic.*\)$;\1%{l_cc}\2;' \
lib/libvcl/vcc_compile.c
@
1.6
log
@upgrading package: varnish 1.0.2 -> 1.0.3
@
text
@d35 2
a36 2
Version: 1.0.3
Release: 20070220
@
1.5
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version: 1.0.2
Release: 20061107
@
1.4
log
@upgrading package: varnish 1.0.1 -> 1.0.2
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.3
log
@new world order for "Packager" and "Distribution" headers
@
text
@d35 2
a36 2
Version: 1.0.1
Release: 20061013
@
1.3.2.1
log
@file varnish.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:57:43 +0000
@
text
@d1 158
@
1.3.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 158
##
## varnish.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: varnish
Summary: High-Performance HTTP Accelerator
URL: http://www.varnish-cache.org/
Vendor: Poul-Henning Kamp et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Web
License: BSD
Version: 1.0.1
Release: 2.20061018
# list of sources
Source0: http://switch.dl.sourceforge.net/sourceforge/varnish/varnish-%{version}.tar.gz
Source1: rc.varnish
Source2: varnish.vcl
Patch0: varnish.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, make, gcc
PreReq: OpenPKG, openpkg >= 2.20061018, gcc
BuildPreReq: ncurses
PreReq: ncurses
AutoReq: no
AutoReqProv: no
%description
Varnish was written from the ground up to be a high performance
HTTP caching reverse proxy. The configuration is specified using
a domain-specific language called VCL, the Varnish Configuration
Language. The varnishd(1) management process translates the VCL code
to C and compiles it to a shared object, which is then dynamically
linked into the server process.
Varnish is targeted primarily at the FreeBSD 6 and Linux 2.6
platforms, and will take full advantage of the advanced I/O features
offered by these operating systems.
%track
prog varnish = {
version = %{version}
url = http://prdownloads.sourceforge.net/varnish/
regex = varnish-(__VER__)\.tar\.gz
}
%prep
# platform checks
( case "%{l_platform -t}" in
*-freebsd6* ) ;;
*-linux2.6* ) ;;
* )
set +x
( echo "Platform \"%{l_platform -t}\" not supported."
) | %{l_rpmtool} msg -b -t error
exit 1
;;
esac
) || exit $?
# unpack and patch Varnish distribution
%setup -q
%patch -p0
# ensure OpenPKG %{l_cc} is being used for VCL code generation
%{l_shtool} subst \
-e 's;^\([ ]*"\)cc\( -fpic.*\)$;\1%{l_cc}\2;' \
lib/libvcl/vcc_compile.c
%build
# configure package
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
CPPFLAGS="%{l_cppflags ncurses} -DOPKG_PIDFILE=\\\"%{l_prefix}/var/varnish/varnishd.pid\\\"" \
./configure \
--prefix=%{l_prefix} \
--disable-shared
# build package
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# install package
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
# create additional directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/varnish
# install default configuration
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/varnish
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE varnish.vcl} \
$RPM_BUILD_ROOT%{l_prefix}/etc/varnish/
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.varnish} \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# strip installation
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/varnish/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} varnish status 2>/dev/null`
[ ".$varnish_active" = .yes ] && %{l_rc} varnish restart
exit 0
%preun
# before erase, stop service
[ $1 -eq 0 ] || exit 0
%{l_rc} varnish stop 2>/dev/null
exit 0
@
1.2
log
@- bugfix: exit(1) in case the PID file is not writable or
a segfault would happen by the following fprintf/fclose.
- cleanup: do not keep the C library files in the package as they
are both useless without the corresponding C header files and even with
them they are not really useful as varnish is a self-contained application.
- consistency: use "switch" instead of "osdn" for SourceForge URLs
to be in sync with all(!) other packages (although
we know that the host "osdn" is available again).
- cosmetics: use our usual 'all-caps' style in Summary header
- cosmetics: use 0-prefix patch to avoid hard-coded versions
in patch files when easily possible
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20061011
@
1.1
log
@new package: varnish 1.0.1 (High-performance HTTP accelerator)
@
text
@d27 1
a27 1
Summary: High-performance HTTP accelerator
d39 1
a39 1
Source0: http://osdn.dl.sourceforge.net/sourceforge/varnish/varnish-%{version}.tar.gz
d89 1
a89 1
%patch -p1
d134 1
@