Add a new variable DBD_MYSQL, use that in *_DEPENDS and add mysql to USES where required. DBD_MYSQL will automatically set the correct DBD dependency. In cd16748194e2 databases/p5-DBD-mysql was updated to 5.x, in 5.x the support for MariaDB was removed and only MySQL >= 8.0 is supported. In the 4.x releases MariaDB is still supported, according to upstream 4.x will still be supported for a while [1], so use that for now when we detect that MYSQL_FLAVOUR is set to mariadb. databases/p5-DBD-mysql4 was added in d95f49cb3b54. DBD:MariaDB would be another alternative, but migrating to it might need more analysis than just staying with the 4.x releases of p5-DBD-mysql. This thread on the amavis-users mailing list has a very good summary [2] from the author of DBD:MariaDB. This includes ideas and suggestions from vvd and mat. Thanks! [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277889#c17 [2] https://lists.amavis.org/pipermail/amavis-users/2024-March/006823.html PR: 275100, 277889 Reviewed by: vvd, mat Fixes: cd16748194e2 Differential Revision: https://reviews.freebsd.org/D44662
58 lines
2.3 KiB
Plaintext
58 lines
2.3 KiB
Plaintext
[
|
|
{ type: install
|
|
message: <<EOM
|
|
o You can find the configuration files for this package in the
|
|
directory %%PREFIX%%/etc/squid.
|
|
|
|
o The default cache directory is /var/squid/cache/.
|
|
The default log directory is /var/log/squid/.
|
|
|
|
Note:
|
|
You must initialize new cache directories before you can start
|
|
squid. Do this by running "squid -z" as 'root' or 'squid'.
|
|
If your cache directories are already initialized (e.g. after an
|
|
upgrade of squid) you do not need to initialize them again.
|
|
|
|
o When using DiskD storage scheme remember to read documentation:
|
|
http://wiki.squid-cache.org/Features/DiskDaemon
|
|
and alter your kern.ipc defaults in /boot/loader.conf. DiskD will not
|
|
work reliably without this. Last recomendations were:
|
|
|
|
kern.ipc.msgmnb=8192
|
|
kern.ipc.msgssz=64
|
|
kern.ipc.msgtql=2048
|
|
|
|
o The pre-translated error pages are no longer included into the port.
|
|
If you need them install www/squid-langpack port as well.
|
|
|
|
o The default configuration will deny everyone but the local host and
|
|
local networks as defined in RFC 1918 for IPv4 and RFCs 4193 and
|
|
4291 for IPv6 access to the proxy service. Edit the "http_access
|
|
allow/deny" directives in %%PREFIX%%/etc/squid/squid.conf
|
|
to suit your needs.
|
|
|
|
o If AUTH_SQL option is set, please, don't forget to install one of
|
|
following perl modules depending on database you like:
|
|
databases/p5-DBD-mysql (MySQL)
|
|
databases/p5-DBD-mysql4 (MariaDB)
|
|
databases/p5-DBD-Pg
|
|
databases/p5-DBD-SQLite
|
|
|
|
To enable Squid, set squid_enable=yes in either
|
|
/etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid
|
|
Please see %%PREFIX%%/etc/rc.d/squid for further details.
|
|
|
|
Note:
|
|
If you just updated your Squid installation from an earlier version,
|
|
make sure to check your Squid configuration against the 3.4 default
|
|
configuration file %%PREFIX%%/etc/squid/squid.conf.sample.
|
|
|
|
%%PREFIX%%/etc/squid/squid.conf.documented is a fully annotated
|
|
configuration file you can consult for further reference.
|
|
|
|
Additionally, you should check your configuration by calling
|
|
'squid -f /path/to/squid.conf -k parse' before starting Squid.
|
|
EOM
|
|
}
|
|
]
|