mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
- portlint/portfmt/portclippy happy. - add missing TEST_DEPENDS. - up default listen_backlog to 200. PR: 281941 Submitted by: Andreas Jobs <andreas.jobs+freebsdbugs@ruhr-uni-bochum.de> ChangeLogs: https://metacpan.org/dist/Mail-Milter-Authentication/changes Approved by: hrs (mentor)
72 lines
3.3 KiB
Perl
72 lines
3.3 KiB
Perl
--- lib/Mail/Milter/Authentication/Config.pm.orig 2024-10-11 04:07:26 UTC
|
|
+++ lib/Mail/Milter/Authentication/Config.pm
|
|
@@ -21,7 +21,7 @@ our @EXPORT_OK = qw{
|
|
};
|
|
|
|
|
|
-our $PREFIX = '/etc';
|
|
+our $PREFIX = '%%ETCDIR%%';
|
|
our $IDENT = 'authentication_milter';
|
|
my $CONFIG;
|
|
|
|
@@ -31,19 +31,19 @@ sub default_config {
|
|
'debug' => 0,
|
|
'dryrun' => 0,
|
|
'logtoerr' => 0,
|
|
- 'error_log' => '/var/log/authentication_milter.err',
|
|
+ 'log_dispatchouli' => {},
|
|
'extended_log' => 1,
|
|
'legacy_log' => 0,
|
|
- 'connection' => 'inet:12345@localhost',
|
|
- 'umask' => '0000',
|
|
- 'runas' => 'nobody',
|
|
- 'rungroup' => 'nogroup',
|
|
- 'listen_backlog' => 20,
|
|
+ 'connection' => 'unix:%%RUNDIR%%/auth_milter.sock',
|
|
+ 'umask' => '0077',
|
|
+ 'runas' => '%%DEFAULT_USER%%',
|
|
+ 'rungroup' => '%%DEFAULT_GROUP%%',
|
|
+ 'listen_backlog' => 200,
|
|
'check_for_dequeue' => 60,
|
|
- 'min_children' => 20,
|
|
- 'max_children' => 200,
|
|
- 'min_spare_children' => 10,
|
|
- 'max_spare_children' => 20,
|
|
+ 'min_children' => 1,
|
|
+ 'max_children' => 2,
|
|
+ 'min_spare_children' => 1,
|
|
+ 'max_spare_children' => 1,
|
|
'max_requests_per_child' => 200,
|
|
'protocol' => 'milter',
|
|
'connect_timeout' => 30,
|
|
@@ -62,9 +62,9 @@ sub default_config {
|
|
'ip_map' => {},
|
|
'authserv_id' => '',
|
|
'handlers' => {},
|
|
- 'cache_dir' => '/var/cache/authentication_milter',
|
|
- 'spool_dir' => '/var/spool/authentication_milter',
|
|
- 'lib_dir' => '/var/lib/authentication_milter',
|
|
+ 'cache_dir' => '%%CACHEDIR%%',
|
|
+ 'spool_dir' => '%%SPOOLDIR%%',
|
|
+ 'lib_dir' => '%%VARLIBDIR%%',
|
|
'lock_file' => '',
|
|
};
|
|
|
|
@@ -105,7 +105,7 @@ sub setup_config {
|
|
else {
|
|
if ( $EUID == 0 && -d "/var/$type" && -w "/var/$type" ) {
|
|
# We are root, create in global space if it exists and is writable
|
|
- $dir = '/var/'.$type.'/authentication_milter';
|
|
+ $dir = '/var/'.$type.'/auth_milter';
|
|
mkdir $dir if ! -e $dir;
|
|
# Create the subdir for this IDENT
|
|
$dir .= '/'.$safe_ident;
|
|
@@ -120,7 +120,7 @@ sub setup_config {
|
|
else {
|
|
# We are a user, or have no writable global space, Create something in a temporary space
|
|
$dir = join( '_',
|
|
- '/tmp/authentication_milter',
|
|
+ '/tmp/auth_milter',
|
|
$type,
|
|
$EUID,
|
|
$safe_ident,
|