Browse Source

fix Squid installation

Ralf S. Engelschall 24 years ago
parent
commit
9a48a4d434
1 changed files with 1 additions and 2 deletions
  1. 1 2
      squid/squid.spec

+ 1 - 2
squid/squid.spec

@@ -40,7 +40,6 @@ Release:      2
 #   list of sources
 Source0:      http://www.squid-cache.org/Versions/v2/2.4/squid-%{V_long}-src.tar.gz
 Source1:      rc.squid
-Patch0:       squid-%{V_long}.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -58,7 +57,6 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n squid-%{V_long}
-#%patch -p0
 
 %build
     CC="%{l_cc}" \
@@ -87,6 +85,7 @@ AutoReqProv:  no
         "s;^\\(prefix[^=]*=\\).*\$;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
         "s;^\\(exec_prefix[^=]*=\\).*\$;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
         "s;^\\(sysconfdir[^=]*=\\).*\$;\\1 $RPM_BUILD_ROOT%{l_prefix}/etc/squid;" \
+        "s;^\\(localstatedir[^=]*=\\).*\$;\\1 $RPM_BUILD_ROOT%{l_prefix}/var/squid;" \
         -- `find . -name Makefile -print`
     %{l_rpmtool} subst \
         's;install: all install-mkdirs;install: install-mkdirs;' \