Quellcode durchsuchen

add optional ICAP support through handmade/regenerated patch

Ralf S. Engelschall vor 21 Jahren
Ursprung
Commit
d53ea2a4ef
1 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen
  1. 10 1
      squid/squid.spec

+ 10 - 1
squid/squid.spec

@@ -39,17 +39,19 @@ Class:        BASE
 Group:        Web
 License:      GPL
 Version:      %{V_maj}.%{V_min}.%{V_rev}
-Release:      20040709
+Release:      20040716
 
 #   package options
 %option       with_fsl   yes
 %option       with_ssl   no
 %option       with_snmp  no
+%option       with_icap  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
 Source1:      rc.squid
 Source2:      fsl.squid
+Patch0:       ftp://ftp.openpkg.org/sources/CPY/squid/squid-%{V_maj}.%{V_min}.STABLE%{V_rev}-icap.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -82,6 +84,10 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n squid-%{V_maj}.%{V_min}.STABLE%{V_rev}
+%if "%{with_icap}" == "yes"
+    %patch -p0
+    find . -name "*.orig" -print | xargs rm -f
+%endif
 
 %build
     #   configure package
@@ -105,6 +111,9 @@ AutoReqProv:  no
 %endif
 %if "%{with_snmp}" == "yes"
         --enable-snmp \
+%endif
+%if "%{with_icap}" == "yes"
+        --enable-icap-support \
 %endif
         --enable-default-err-language=English \
         --enable-err-languages=English \