Bug 513

Summary: Add new squid package
Product: buildroot Reporter: Gustavo Zacarias <gustavo>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: enhancement CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: 2010.05   
Hardware: PC   
OS: Linux   
URL: http://www.squid-cache.org
Host: i686-linux Target: arm-softfloat-linux-uclibcgnueabi
Build:
Attachments: Add squid package
Add squid package (2)
New package: squid-3.0.STABLE17
New package squid-3.0STABLE19
New package squid-3.0STABLE20
squid-3.0.STABLE20 package
New package squid-3.0STABLE21

Description Gustavo Zacarias 2009-07-30 13:35:46 UTC
Created attachment 525 [details]
Add squid package

Caching proxy for HTTP, HTTPS and FTP.
This package disables HTCP, WCCP and SNMP AgentX support in squid to keep the binary as small as possible.
Comment 1 Thomas Petazzoni 2009-07-30 13:52:50 UTC
+SQUID_MAKE_OPT = HOSTCXX=g++

should probably be

+SQUID_MAKE_OPT = HOSTCXX=$(CXX_FOR_BUILD)

BTW, why not using directly the CXX_FOR_BUILD environment variable in the configure.in/Makefile.am of Squid ? These environment variables are already passed to the ./configure script.

It's probably not needed in this case, but passing CXXFLAGS_FOR_BUILD might also be a good thing, since it is used to pass the correct -I flags to the host headers in the $(HOST_DIR).
Comment 2 Gustavo Zacarias 2009-07-30 13:58:36 UTC
The patch is a rip from gentoo, so yeah it could be updated to avoid the kludge.

This package is a good example of the usefulness of the HOOK_POST_UNINSTALL i've mentioned in irc.
The uninstall target from the Makefile fails to remove some stuff, most notably from $(TARGET_DIR)/usr/share/errors and $(TARGET_DIR)/usr/share/icons IIRC.

I'll rework the patch, this package is low priority though - better get it right than stick it for 2009.08.
Comment 3 Gustavo Zacarias 2009-07-30 15:55:21 UTC
Created attachment 527 [details]
Add squid package (2)
Comment 4 Thomas Petazzoni 2009-07-30 16:18:43 UTC
Thanks for the improvements. The patch looks good now (but I didn't test it).

Could you also submit the squid patch upstream ?
Comment 5 Gustavo Zacarias 2009-07-30 16:37:43 UTC
http://www.squid-cache.org/bugs/show_bug.cgi?id=2662

Basically the only big change they need to do with respect to the original patch is consider that $build may be wrong thus just pick up CXX_FOR_BUILD or HOSTCXX in configure.
Comment 6 Gustavo Zacarias 2009-08-14 19:54:37 UTC
Created attachment 601 [details]
New package: squid-3.0.STABLE17

Bump squid to 3.0.STABLE17, fixes some stability issues.
Enable heap removal policies in the package build, keep squidclient (useful for stats) and bump threads/FDs to handle some moderate load.
Comment 7 Gustavo Zacarias 2009-11-10 17:29:10 UTC
Created attachment 739 [details]
New package squid-3.0STABLE19

Bump to squid-3.0STABLE19, bugfixes.
Comment 8 Gustavo Zacarias 2009-11-30 17:00:10 UTC
Created attachment 781 [details]
New package squid-3.0STABLE20


Bump again to 3.0STABLE20.
Comment 9 Gustavo Zacarias 2009-12-02 19:50:42 UTC
Created attachment 801 [details]
squid-3.0.STABLE20 package

Enabled transparent netfilter mode.
Enabled SSL mode when openssl is installed.
Comment 10 Gustavo Zacarias 2009-12-23 12:34:08 UTC
Created attachment 863 [details]
New package squid-3.0STABLE21

Bump to 3.0STABLE21.
Comment 11 Thomas Petazzoni 2010-02-21 22:33:01 UTC
Move milestone to 2010.05 since enhancements will not be handled before the release of 2010.02.
Comment 12 Peter Korsgaard 2010-03-24 08:23:04 UTC
Committed, thanks