forked from ikedas/sympa-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sympa-6.2.19b.1-confdef.patch
33 lines (31 loc) · 1.11 KB
/
sympa-6.2.19b.1-confdef.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- src/lib/Sympa/ConfDef.pm.confdef 2017-08-21 14:03:23.000000000 +0900
+++ src/lib/Sympa/ConfDef.pm 2017-08-21 15:18:29.676712129 +0900
@@ -2067,6 +2067,30 @@
}
}
+# RPM specific customizations
+foreach my $p (@params) {
+ next unless $p->{name};
+ delete $p->{edit}
+ if $p->{name} =~ /^(home|etc|static_content_path|syslog|log_facility|
+ email|cache_list_config|mhonarc|openssl|
+ use_fast_cgi)$/x;
+# $p->{edit} = '1'
+# if $p->{name} =~ /^(log_socket_type|
+# legacy_character_support_feature)$/x;
+# $p->{default} = 'database'
+# if $p->{name} eq 'cache_list_config';
+ $p->{sample} = '/usr/bin/openssl'
+ if $p->{name} eq 'openssl';
+ $p->{sample} = '/etc/pki/tls/certs'
+ if $p->{name} eq 'capath';
+ $p->{sample} = '/etc/pki/tls/certs/ca-bundle.crt'
+ if $p->{name} eq 'cafile';
+ $p->{default} = '/var/lib/sympa/X509-user-certs'
+ if $p->{name} eq 'ssl_cert_dir';
+ $p->{default} = '/var/lib/sympa/crl'
+ if $p->{name} eq 'crl_dir';
+}
+
1;
__END__