Commit graph

54 commits

Author SHA1 Message Date
tron
dd013767dd Use "--enable-storeio=ufs,diskd" instead of "--enable-storeio=diskd" to
get "ufs" storage type build again because we will otherwise break lots
of existing configurations. Problem pointed out by Simon Burge via e-mail.
2001-11-06 07:22:13 +00:00
tron
823ce591bc Activate store type "diskd" by default as suggested by Grant Beattie in
PR pkg/14476.
2001-11-06 03:05:14 +00:00
tron
153306a3ea Update "squid" package to 2.4.STABLE2. Changes since 2.4.STABLE1:
- Expanded configure's GCC opimization disabling check to
  include GCC 2.95.3
- avoid negative served_date in storeTimestampsSet().
- Made 'diskd' pathnames more configurable
- Make sure squid parent dies if child is killed with
  KILL signal
- Changed diskd offset args to off_t instead of int
- Fixed bugs #102, #101, #205: various problems with useragent
  log files
- Fixed bug #116: Large Age: values still cause problems
- Fixed bug #119: Floating point exception in
  storeDirUpdateSwapSize()
- Fixed bug #114: usernames not logged with
  authenticate_ip_ttl_is_strict
- Fixed bug #115: squid eating up ressources (eventAdd args)
- Fixed bug #125: garbage HTCP requests cause assertion
- Fixed bug #134: 'virtual port' support ignores
  httpd_accel_port, causes a loop in httpd_accel mode
- Fixed bug #135: assertion failed: logfile.c:135: "lf->offset
  <= lf->bufsz"
- Fixed bug #137: Ranges on misses are over-done
- Fixed bug #160: referer_log doesn't seem to work
- Fixed bug #162: some memory leaks (SNMP, delay_pools,
  comm_dns_incoming histogram)
- Fixed bug #165: "Store Mem Buffer" leaks badly
- Fixed bug #172: Ident Based ACLs fail when applied to
  cache_peer_access
- Fixed bug #177: LinuxPPC 2000 segfault bug due to varargs abuse
- Fixed bug #182: 'config' cachemgr option dumps core with
  null storage
- Fixed bug #185: storeDiskdDirParseQ[12]() use wrong number
  of args in debug/printf
- Fixed bug #187: bugs in lib/base64.c
- Fixed bug #184: storeDiskdShmGet() assertion; changed
  diskd to use bitmap instead of linked list
- Fixed bug #194: Compilation fails on index() on some
  non-BSD plaforms
- Fixed bug #197: refreshIsCachable() incorrectly checks
  entry->mem_obj->reply
- Fixed bug #215: NULL pointer access for proxy requests
  in accel-only mode
2001-10-09 19:01:49 +00:00
tron
f38aa4ec86 Adapt package list to configuration options dynamically. This fixes
PR pkg/13971 by David Sainty.
2001-09-18 16:24:57 +00:00
tron
7e69535eb5 Remove "--enable-parent-hack" now that "squid" is invoked without
"RunCache" again.
2001-07-30 07:32:13 +00:00
tron
369b9ee1cf Rework startup script:
- We don't want to wait forever until "squid" terminates. Wait at most
  20 seconds after a shutdown command use "kill" afterwards.
- Don't use "RunCache" to start "squid", it is not necessary and only
  causes trouble.
- Bring the "rotate" command which got lost in last update.
Bump package version number to 2.4.1nb2.
2001-07-30 07:30:11 +00:00
tron
8b0b9ed443 Remove commands to create data directories which could break existing
squid installations. These directories should be created by the
administrator after selecting the proper directory.
2001-07-29 16:47:01 +00:00
tron
40cda95416 - Apply some of the changes suggested by Greg A. Woods in PR 13427 and
include his improved "rc.d" script.
- Use the same directory structure as in the Apache package. The
  configuration files are now in "${PREFIX}/etc/squid" and won't be
  removed during deinstallation.
- Remove unnecessary configuration variables "SQUID_HTTP_PORT" and
  "SQUID_ICP_PORT". These values can perfectly be adjusted by editing
  the configuration file and supporting all these variables would make
  the package too complex.
- Bump the version number to 2.4.1nb1.
2001-07-29 16:41:18 +00:00
wennmach
96058422d4 o remove whitespace from Makefile
o add $NetBSD$ RCS tag to patch-ab
o regen distinfo
2001-05-01 18:07:48 +00:00
jlam
1edfee944f Change build dependency from perl-5.* to perl>=${PERL5_REQD}. 2001-04-30 03:46:32 +00:00
tron
6c7cb1ab30 Update "squid" package to version 2.4STABLE1. Changes since 2.3STABLE4:
- Fixed a bug in and cleaned up class 2/3 delay pools incrementing.
- Fixed a coredump bug when using external dnsservers that become overloaded.
- Fixed some NULL pointer bugs for NULL storage system when reconfiguring.
- Fixed a bug with useragent logging that caused Squid to think the logfile
  never got opened.
- Fixed a compiling bug with --disable-unlinkd.
- Changed src/squid.h to always use O_NONBLOCK on Solaris if it is defined.
- Fixed a bug with signed/unsigned bitfield flag variables that caused
  problems on Solaris.
- Fixed a bug in clientBuildReplyHeader() that could add an Age: header with
  a negative value, causing an assertion later.
- Fixed an SNMP reporting bug.   cacheCurrentResFileDescrCnt was returning
  the number of FDs in use, rather than the number of reserved FDs.
- Added the 'pipeline_prefetch' configuration option.
- cache_dir syntax changed to use options instead of many arguments. This
  means that the max_objsize argument now is an optional option, and that
  the syntax for how to specify the diskd magics is slightly different.
- Various fixes for CYGWIN
- Upgraded MSNT auth module to version 2.0.
- Fixed potential problems with HTML by making sure all HTML output is
  properly encoded.
- Fixed a memory initialization problem with resource records in
  lib/rfc1035.c.
- Rewrote date parsing in lib/rfc1123.c and made it a little more lenient.
- Added Cache-control: max-stale support.
- Fixed 'range_offset_limit' again.  The problem this time is that
  client_side.c wouldn't set the we_dont_do_ranges flag for normal cache
  misses.  It was only being set for requests that might have been hits,
  but we decided to change to a miss.
- Added the Authenticate-Info and Proxy-Authenticate-Info headers from
  RFC 2617.
- HTTP header lines longer than 64K could cause an assertion.
  Now they get ignored.
- Fixed an IP address scanning bug that caused "123.foo.com" to be
  interpreted as an IP address.
- Converted many structure allocations to use mem pools.
- Changed proxy authentication to strip leading whitespace from usernames
  after decoding.
- Prevented NULL pointer access in aclMatchAcl(). Some ACL types require
  checklist->request_t, but it won't be available in some cases (like
  snmp_access).  Warn the admin that the ACL can't be checked and that
  we're denying it.
- Allow zero-size disk caches.
- The actual filesystem blocksize is now used to account
  for space overheads when calculating on-disk cache size.
- Made the maximum memory cache object size configurable.
- Added 'minimum_direct_rtt' configuration option.
- Added 'ie_refresh' configuration option, which is a hack
  to turn IMS requests into no-cache requests.
- Added Linux netfilter support for intercepted connections.
- Fixed a bug with clientAccessCheck() that allowed proxy
  requests in accel mode.
- Fixed a bug with 301/302 replies from redirectors.  Now
  we force them to be cache misses.
- Accommodated changes to the IP-Filter ioctl() interface
  for intercepted connections.
- Fixed handling of client lifetime timeouts.
- Fixed a buffer overflow bug with internal DNS replies
  by truncating received packets to 512 bytes, as per
  RFC 1035.
- Added "forward.log" support, but its work in progress.
- Rewrote much of the IP and FQDN cache implementation.
  This change gets rid of pending hits.
- Changed peerWouldBePinged() to return false if our
  ICP/HTCP port is zero (i.e. disabled).
- Changed src/net_db.c to use src/logfile.c routines,
  rather than stdio, because of solaris stdio filedescriptor
  limits.
- Made netdbReloadState() more robust in case of corrupted
  data.
- Rewrote some freshness/staleness functions in src/refresh.c,
  partially inspired to support cache-control max-stale.
- Fixed status code logging for SSL/CONNECT requests.
- Added a hack to subtract cache digest network traffic
  from statistics so that byte hit ratio stays positive
  and more closely reflects what people expect it to be.
- Fixed a bug with storeCheckTooSmall() that caused
  internal icons and cache digests to always be released.
- Added statfs(2) support for displaying actual filesystem
  usage in the cache manager 'storedir' output.
- Changed status reporting for storage rebuilding.  Now it
  prints percentage complete instead of number of entries
  parsed.
- Use mkstemp() rather than problem-prone tempnam().
- Changed urlParse() to condense multiple dots in hostnames.
- Major rewrite of async-io (src/fs/aufs) to make it behave
  a bit more sane with substantially less overhead.  Some
  tuning work still remains to make it perform optimal.
  See the start of store_asyncufs.h for all the knobs.
- Fixed storage FS modules to use individual swap space
  high/low values rather than the global ones.
- Fixed storage FS bugs with calling file_map_bit_reset()
  before checking the bit value.  Calling with an invalid
  value caused memory corruption in random places.
- Prevent NULL pointer access in store_repl_lru.c for
  entries that exist in the hash but not the LRU list.
- Added --enable-auth-modules=... configure option
- Improved ICP dead peer detection to also work when the workload
  is low
- Improved TCP dead peer detection and recovery
- Squid is now a bit more persistent in trying to find a alive
  parent when never_direct is used.
- nonhierarchical_direct squid.conf directive to make non-ICP
  peer selection behave a bit more like ICP selection with respect
  to hierarchy.
- Bugfix where netdb selection could override never_direct
- ICP timeout selection now prefers to use parents only when
  calculating the dynamic timeout to compensate for common RTT
  differences between parents and siblings.
- No longer starts to swap out objects which are known to be above
  the maximum allowed size.
- allow-miss cache_peer option disabling the use of "only-if-cached".
  Meant to be used in conjunction with icp_hit_stale.
- Delay pools tuned to allow large initial pool values
- cachemgr filesystem space information changed to show useable space
  rather than raw space, and platform support somewhat extended.
- Logs destination IP in the hierarchy log tag when going direct.
  (can be disabled by turning log_ip_on_direct off)
- Async-IO on linux now makes proper use of mutexes. This fixes some
  odd pthread segfaults on SMP Linux machines, at a slight performance
  penalty.
- %s can now be used in cache_swap_log and will be substituded with
  the last path component of cache_dir.
- no_cache is now a full ACL check without, allowing most ACL types
  to be used.
- The CONNECT method now obeys miss_access requirements
- proxy_auth_regex and ident_regex ACL types
- Fixed a StoreEntry memory leak during "dirty" rebuild
- Helper processes no longer hold unrelated filedescriptors open
- Helpers are now restarted when the logs are rotated
- Negatively cached DNS entries are now purged on "reload".
- PURGE now also purges the DNS cache
- HEAD on FTP objects no longer retreives the whole object
- More cleanups of the dstdomain ACL type
- Squid no longer tries to do Range internally if it is not supported
  by the origin server. Doing so could cause bandwidth spikes and/or
  negative hit ratio.
- httpd_accel_single_host squid.conf directive
- "round-robin" cache_peer counters are reset every 5 minutes to
  compensate previously dead peers
- DNS retransmit parameters
- Show all FTP server messages
- squid.conf.default now indicates if a directive isn't enabled in
  the installed binary, and what configure option to use for enabling it
- Fixed a temporary memory leak on persistent POSTs
- Fixed a temporary memory leak when the server response headers
  includes NULL characters
- authenticate_ip_ttl_is_strict squid.conf option
- req_mime_type ACL type
- A reworked storage system that supports storage directories in
  a more modular fashion. The object replacement and IO is now
  responsibility of the storage directory, and not of the storage
  manager.
- Fixed a bogous MD5 mismatch warning sometimes seen when using
  aufs or diskd stores
- Added --enable-stacktraces configure option to set PRINT_STACK_TRACE,
  and extended support for this to Linux/GNU libc.
- Disabled the "request timeout" error message sent if the user agent
  did not provide a request in a timely manner after opening the
  connection. Now the connection is silently closed. The error message
  was confusing user agents utilizing persistent connections.
- Fixed configure --enable descriptions to match the arg names.
- Eliminated compile warnings from auth_modules/MSNT code.
- Require first character of hostnames to be alphanumeric.
- Made ARP ACL work for Solaris.
- Removed storeClientListSearch().
- Added counters to track diskd operation success and
  failures.
- Fixed range_offset_limit.
- Added code to retry ServFail replies for internal DNS
  lookups.
- Added referer header logging (Jens-S. Voeckler).
- Added "multi-domain-NTLM" authentication module, a Perl
  script from Thomas Jarosch.
- Added configurable warning messages for high memory usage,
  high response time, and high page faults.
- Made store dir selection algorithm configurable.
- Added support for admin-definable extension methods,
  up to 20.
- Added 'maximum_object_size_in_memory' as a configuration option -
  this defines the watermark where objects transit from being true
  hot objects to being in-transit objects in memory. It currently
  defaults to 8 KB.
- Change to the fqdn code which changes how pending DNS requests
  are treated as private and only become public once they are
  completed. This can add extra load on DNS servers but prevents
  all the pending clients blocking if one of the queries got
  stuck. (Duane Wessels)
- Converted more code to use MemPools, from Andres Kroonmaa.
- Added more CYGWIN patches from Robert Collins.
- Added Logfile module.
- Added DISKD stats via cachemgr.
- Added squid.conf options for DISKD magic constants.
2001-04-14 10:05:00 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
hubertf
d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00
wiz
a0745845b3 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:21:28 +00:00
hubertf
a3cd4f3b8c etc/rc.d: squid.sh -> squid 2001-01-26 04:56:13 +00:00
hubertf
13ba66975d Create localstatedir etc. 2000-12-16 09:45:18 +00:00
taca
70e636c13d - Add a patch from http://www.squid-cache.org/Versions/v2/2.3/bugs/ for
fixing "CARP assertion on sum of load factors" bug.
- Update package name to squid-2.3s4nb3.
2000-12-13 16:03:39 +00:00
taca
0c5dd40669 - Update package name to squid-2.3s4nb2 suggested by
Christoph Badura <bad@bsd.de>.
2000-11-28 01:09:17 +00:00
taca
bfab8248d6 - add two patches from http://www.squid-cache.org/Versions/v2/2.3/bugs/ .
Should I update to squid-2.3s4nb2?
2000-11-27 14:39:49 +00:00
jdolecek
dc177a8d19 add log_mime_hdrs_list directive - this directive specifies list of
headers to log into access log when log_mime_hdrs is on
the change will be sent to Squid maintainers for possible future inclusion
shortly
2000-11-02 10:31:38 +00:00
veego
313e13dc34 Update squid from 2.3stable3 to 2.3stable4:
Important Changes:

- offline_toggle
   You can now toggle the 'offline_mode' option from the cache manager.
- minimum_object_size
   Added the 'minimum_object_size' option. Files smaller than this size are
   not cached.
- passive_ftp
   If your firewall doesn't allow passive FTP transfers, you can tell Squid
   to use PORT instead by turning the 'passive_ftp' option off.
- wccp_version
   Some Cisco IOS versions expect to receive WCCP packets with version set
   to three. The 'wccp_version' option allows you to change it, from the
   default value of four.
2000-10-15 20:17:44 +00:00
tron
64d1c52ea7 Use correct spelling "--enable-delay-pools" in configuration options.
Problem noted by Olaf Seibert in private e-mail.
2000-10-10 10:28:39 +00:00
jlam
60d8d28f10 Update build dependency on perl to build in correct directory if perl
interpreter is not found.
2000-09-05 09:33:15 +00:00
wiz
7d41c3d47e remove whitespace for pkglint 2000-09-03 13:42:22 +00:00
jlam
06f0a4c3c2 Use new PERL5 variable instead of ${LOCALBASE}/bin/perl. 2000-08-27 02:46:03 +00:00
tron
2dee8c6ecb Update "squid" package to version 2.3 STABLE 3. Changes since 2.3 STABLE 2:
- You can now toggle the 'offline_mode' option from the cache manager.
- Added the 'minimum_object_size' option. Files smaller than this size are
  not cached.
- If your firewall doesn't allow passive FTP transfers, you can tell Squid
  to use PORT instead by turning the 'passive_ftp' option off.
- Some Cisco IOS versions expect to receive WCCP packets with version set
  to three. The 'wccp_version' option allows you to change it, from the
  default value of four.
2000-05-19 07:18:55 +00:00
rh
bc2b0a9079 Update md5 checksum and remove PATCH_DIST_ARGS which is now superfluous
due to fixed patches.  Fixes PR 10026 by David Rankin.
2000-05-03 15:14:53 +00:00
tron
9d21aec5b7 - Update home page URL.
- Update master site list.
- Apply patches from squid home page.
2000-03-21 10:09:51 +00:00
tron
e0f3b9a4ee Back out last commit. "ftp.xlink.de" is not an official name. 2000-03-07 20:05:22 +00:00
tron
45d51bc174 Use other alias name "ftp.xlink.de" instead of "ftp.xlink.net" so that
"MASTER_SORT = .de" recognizes this site as german mirror.
2000-03-07 18:59:47 +00:00
tron
ef5b675348 Update "squid" package to version 2.3STABLE2. Changes since version
2.3STABLE1:
- Changed Copyright text.
- Changed configure so that some IRIX-6.4 hacks apply to all IRIX-6.* versions.
- Cleaned up HTML bugs in error pages.
- Told configure to check for netinet/if_ether.h, which is used in ARP ACL
  code, but might not be required.
- Added "Cookie" to known HTTP headers so it can be used in anonymizer
  configuration.
- Added optional TCP_REDIRECT log code for logging of 301/302 responses
  returned by Squid.
- Added a check for a currently running Squid process. If the pid file exists,
  and the pid is running, Squid complains and refuses to start another
  instance.
- Changed async I/O scope to PTHREAD_SCOPE_PROCESS for IRIX.
- Fixed a bug with the PURGE method.  The purge enable flag was not getting
  cleared during reconfigure. Also required PURGE method to be used in
  http_access list before enabling.
- Fixed async I/O assertions for file open errors.
- Fixed internal DNS assertion when unpacking truncated messages.
- Fixed anonymize_headers bug that caused all headers to be allowed after a
  reconfigure.
- Fixed an access denied bug for accelerator-only installations.
- Fixed internal DNS initialization so that it uses 'dns_nameservers'
  settings in squid.conf if set.
- Fixed 'maxconn' ACL bug that caused it to work backwards (Pedro Ribeiro).
- Fixed syslog bug for daemon mode on Linux.
- Fixed 'http_port' parsing bugs.
- Fixed internal DNS byte ordering bugs for PTR queries.
- Fixed internal DNS queue getting stuck during periods of low activity
  (Henrik).
- Fixed byte ordering bugs for parsing EPLF FTP listings on 64-bit systems.
- Fixed 'request_body_max_size' bug that caused all POST, PUT requests to be
  denied if max size is set to zero.
- Fixed 'redirector_access' bug when using 'myport' ACLs.
- Fixed CARP neighbor selection bugs for down peers.
- Added 'client_persistent_connections' and 'server_persistent_connections'
  flags to disable persistent connections for clients and servers.
- Fixed access logging bug that caused many requests to be logged as TCP_MISS.
- Added some bounds checking to delay pools code.
This partially fixes PR pkg/9534 by Takahiro Kambe.
2000-03-06 18:52:06 +00:00
tron
b175f5d3f9 Update "squid" package to version 2.3 STABLE 1 using patches supplied by
Takahiro Kambe in PR pkg/9486. Changes since version 2.2 STABLE 5:
- many bug fixes
- WCCP support
- Storage API
- internal DNS servers
2000-02-27 23:11:12 +00:00
tron
2b7fce65e2 Define defaults for configuration variables after including "bsd.pkg.mk"
of course.
1999-11-12 22:56:31 +00:00
tron
19e417b14b Add new configuration variables "SQUID_CONFIGURE_ARGS", "SQUID_HTTP_PORT"
and "SQUID_ICP_PORT" to allow easy modifification of the squid build
parameters.

This fixes the second part of PR pkg/8764 by Luke Mewburn.
1999-11-12 22:20:49 +00:00
tron
2a9006273c Update "squid" package to version 2.2STABLE5. Changes since 2.2STABLE4:
- Changed configure to look for IP-Filter header files
  in both /usr/include and /usr/include/netinet.
- Fixed an ACL subdomain comparison bug (aclDomainCompare).
- Fixed an ACL host <=> domain comparison bug
  (aclHostDomainCompare).
- Fixed a "xstrdup: tried to dup a NULL pointer!" bug
  caused by illegal hostname characters when certain
  ACL types are in use.
- Fixed res_init() bug in dnsserver.  We used to call
  res_init(), and then clear the RES_INIT bit in
  _res.options.  This caused res_init() to be
  called again as soon as we use gethostbyname(), and
  this second initialization wipes out our changing
  the nameservers.  The fix is just to NOT set
  _res.options to RES_DEFAULT after calling res_init().
- Changed FTP to close data sockets as soon as the transfer
  ends, rather than waiting for the reply message on the
  control socket (Alexander V. Lukyanov).
- Fixed some buffering problems between Squid and the
  unlinkd process.  By using file_write(), unlink requests
  were being buffered and experiencing long delays under
  heavy load.  Now use use good ol' write() instead.  Also
  added some feedback from unlinkd to squid so we can track
  the unlink request queue.  If the queue becomes too large,
  we block a little and wait for some acks from unlinkd.

This fixes the first part of PR pkg/8764 by Luke Mewburn.
1999-11-12 22:07:10 +00:00
rh
9690735cef defuzz 1999-11-12 16:25:30 +00:00
tron
8d7d754dfa Remove me as maintainer of those packages. 1999-10-07 17:41:46 +00:00
soren
3a94a4cd47 Use a relative path for bsd.pkg.mk instead of relying on the search path. 1999-09-28 20:40:02 +00:00
tron
e9aefdd09a Use "${INSTALL_FILE}" instead of "${PKGDIR}/INSTALL". 1999-08-17 23:10:55 +00:00
agc
09ecf7d753 Make this package work on Solaris. 1999-08-02 12:14:00 +00:00
tron
2779179ca6 Update "squid" package to version 2.2.STABLE4. 1999-07-14 21:45:50 +00:00
tron
20e1e2e4a3 Update "squid" package to version 2.2.STABLE3. 1999-06-03 16:42:35 +00:00
tron
e15a96017f Remove obsolete mirror site. 1999-05-28 21:58:25 +00:00
tron
6c33ba9867 Fix path in master site list. Problem noted by Hubert Feyrer. 1999-05-12 16:17:34 +00:00
tron
ac36b26288 Update "squid" package to version 2.2s2 (squid-2.2.STABLE2). 1999-05-02 12:49:43 +00:00
tron
b83f445f4a Enable transport proxy support. Fixes PR pkg/7383 by Olaf Seibert. 1999-05-02 00:48:31 +00:00
bad
7ef687321e BUILD_DEPENDS on the pkg version of perl and make sure configure uses
that.  Fixes PR#7348 by rhialto@polder.ubc.kun.nl.
1999-04-09 17:54:26 +00:00
agc
1bb3007c04 s/make/${MAKE}/g 1999-03-08 10:53:55 +00:00
hubertf
2a95ad9c6b Fix CONFLICTS (remove redundancy, mostly) 1999-02-20 22:48:24 +00:00
bad
4f728368e7 pkg/INSTALL gets invoked with two well defined arguments by pkg_add.
Change it so that it works with pkg_add.  Change Makefile to invoke it
the same way pkg_add does.
1999-01-29 19:26:37 +00:00