|
|
@@ -21,10 +21,12 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+# FIXME: rse: with_ecap=yes still does not build
|
|
|
+
|
|
|
# package version
|
|
|
%define V_maj 3
|
|
|
-%define V_min 0
|
|
|
-%define V_rev 25
|
|
|
+%define V_min 1
|
|
|
+%define V_rev 1
|
|
|
|
|
|
# package information
|
|
|
Name: squid
|
|
|
@@ -37,7 +39,7 @@ Class: BASE
|
|
|
Group: Web
|
|
|
License: GPL
|
|
|
Version: %{V_maj}.%{V_min}.%{V_rev}
|
|
|
-Release: 20100315
|
|
|
+Release: 20100330
|
|
|
|
|
|
# package options
|
|
|
%option with_fsl yes
|
|
|
@@ -46,12 +48,14 @@ Release: 20100315
|
|
|
%option with_ntlm no
|
|
|
%option with_largefile no
|
|
|
%option with_icap no
|
|
|
+%option with_ecap no
|
|
|
%option with_esi no
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.squid-cache.org/Versions/v%{V_maj}/%{V_maj}.%{V_min}/squid-%{V_maj}.%{V_min}.STABLE%{V_rev}.tar.gz
|
|
|
+Source0: http://www.squid-cache.org/Versions/v%{V_maj}/%{V_maj}.%{V_min}/squid-%{V_maj}.%{V_min}.%{V_rev}.tar.gz
|
|
|
Source1: rc.squid
|
|
|
Source2: fsl.squid
|
|
|
+Patch0: squid.patch
|
|
|
|
|
|
# build information
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes, perl
|
|
|
@@ -67,6 +71,10 @@ PreReq: openssl
|
|
|
%if "%{with_ntlm}" == "yes"
|
|
|
PreReq: samba
|
|
|
%endif
|
|
|
+%if "%{with_ecap}" == "yes"
|
|
|
+PreReq: libecap
|
|
|
+BuildPreReq: libecap
|
|
|
+%endif
|
|
|
|
|
|
%description
|
|
|
Squid is a full-featured Web proxy which supports proxying and
|
|
|
@@ -76,13 +84,14 @@ PreReq: samba
|
|
|
|
|
|
%track
|
|
|
prog squid = {
|
|
|
- version = %{V_maj}.%{V_min}.STABLE%{V_rev}
|
|
|
+ version = %{V_maj}.%{V_min}.%{V_rev}
|
|
|
url = http://www.squid-cache.org/Versions/v%{V_maj}/%{V_maj}.%{V_min}/
|
|
|
- regex = squid-(%{V_maj}\.\d+\.STABLE\d+)\.tar\.gz
|
|
|
+ regex = squid-(%{V_maj}\.\d+(?:\.\d+)+)\.tar\.gz
|
|
|
}
|
|
|
|
|
|
%prep
|
|
|
- %setup -q -n squid-%{V_maj}.%{V_min}.STABLE%{V_rev}
|
|
|
+ %setup -q -n squid-%{V_maj}.%{V_min}.%{V_rev}
|
|
|
+ %patch -p0
|
|
|
%if "%{with_ntlm}" == "yes"
|
|
|
%{l_shtool} subst \
|
|
|
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
|
|
|
@@ -97,9 +106,9 @@ PreReq: samba
|
|
|
-e 's;/cgi-bin/;/openpkg-cgi/;' \
|
|
|
tools/cachemgr.cc
|
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O}" \
|
|
|
+ CFLAGS="%{l_cflags -O} -pthread" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
- LDFLAGS="%{l_fsl_ldflags}" \
|
|
|
+ LDFLAGS="%{l_fsl_ldflags} -pthread" \
|
|
|
LIBS="%{l_fsl_libs}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
@@ -127,6 +136,9 @@ PreReq: samba
|
|
|
%if "%{with_icap}" == "yes"
|
|
|
--enable-icap-client \
|
|
|
%endif
|
|
|
+%if "%{with_ecap}" == "yes"
|
|
|
+ --enable-ecap \
|
|
|
+%endif
|
|
|
%if "%{with_esi}" == "yes"
|
|
|
--enable-esi \
|
|
|
%endif
|
|
|
@@ -134,7 +146,7 @@ PreReq: samba
|
|
|
--enable-digest-auth-helpers="password" \
|
|
|
--enable-default-err-language=English \
|
|
|
--enable-err-languages=English \
|
|
|
- --enable-storeio="ufs diskd null" \
|
|
|
+ --enable-storeio="ufs diskd" \
|
|
|
--enable-removal-policies="lru heap" \
|
|
|
--enable-cache-digests \
|
|
|
--enable-forw-via-db \
|