annotate debian/dcc-server.default.diff @ 1:9b8d79ac0dc3

blindly adding debian patch for old version
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:25:08 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
1 --- dcc-1.2.74.orig/debian/dcc-server.default
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
2 +++ dcc-1.2.74/debian/dcc-server.default
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
3 @@ -0,0 +1,126 @@
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
4 +# start server with default local ID specified in /etc/dcc/ids
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
5 +OPTIONS="-i 32702"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
6 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
7 +########
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
8 +# the following is taken from upstream dcc-conf
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
9 +########
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
10 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
11 +# set parameters for DCC start and cron scripts
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
12 +# from Rhyolite Software DCC 1.2.50-1.40 $Revision: 1.1 $
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
13 +DCC_CONF_VERSION=3
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
14 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
15 +# don't set DCC_HOMEDIR since if we got here, it must be set
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
16 +DCC_LIBEXEC=/usr/lib/dcc
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
17 +DCC_RUNDIR=/var/run
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
18 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
19 +# DCC user name
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
20 +DCCUID=dcc
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
21 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
22 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
23 +DCCD_ENABLE=off
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
24 +# DCC server-IDs must be globally unique.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
25 +SRVR_ID=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
26 +# BRAND can be any short alphanumeric string that hints about the identity
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
27 +# of the server.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
28 +BRAND=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
29 +# used to start dccd
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
30 +# A value for `dccd -t` computed from DCCM_REJECT_AT is assumed to set
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
31 +# default flooding threshold.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
32 +DCCD_ARGS=-6
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
33 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
34 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
35 +# Client greylist parameters such as 'on' or 'noIP'
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
36 +# GREY_CLIENT_ARGS sets the `dccm -G` and `dccifd -G` value
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
37 +# and turns on the local greylist dccd server unless GREY_ENABLE=off
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
38 +GREY_CLIENT_ARGS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
39 +# turns local greylist server 'on' or 'off', but does not effect dccm, dccifd
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
40 +GREY_ENABLE=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
41 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
42 +# GREY_SRVR_ID DCC server-IDs must be globally unique, but greylisting dccd
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
43 +# servers are usually isolated. If you have more than one greylist server,
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
44 +# ensure that they use distinct server-IDs and that they flood each other
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
45 +# with entries in /var/dcc/flod
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
46 +GREY_SRVR_ID=$SRVR_ID
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
47 +# used to start dccd for grey listing; see also GREY_ENABLE
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
48 +GREY_DCCD_ARGS=-6
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
49 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
50 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
51 +DCCM_ENABLE=on
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
52 +# used to start dccm
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
53 +# a common value is
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
54 +# DCCM_ARGS="-SHELO -Smail_host -SSender -SList-ID"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
55 +DCCM_ARGS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
56 +DCCM_LOGDIR=log
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
57 +DCCM_WHITECLNT=whiteclnt
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
58 +DCCM_USERDIRS=userdirs
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
59 +# set DCCM_LOG_AT to a number that determines "bulk mail" for your situation.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
60 +# 50 is a typical value.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
61 +# Leave DCCM_REJECT_AT blank until you are confident that most sourced of
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
62 +# solicited bulk mail have been white-listed. Then set it to the number
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
63 +# that defines "bulk mail" for your site. Note that this rejection
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
64 +# or "bulk" threshold does not affect the blacklisting effects of the
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
65 +# DCCM_WHITECLNT white list file.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
66 +# Add '-aIGNORE' to DCCM_ARGS to ignore the bulkiness of mail except to
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
67 +# add X-DCC headers.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
68 +DCCM_LOG_AT=5
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
69 +DCCM_REJECT_AT=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
70 +# override basic list of DCC server checksums controlling rejections or logging
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
71 +DCCM_CKSUMS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
72 +# additional DCC server checksums worthy of rejections or logging
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
73 +DCCM_XTRA_CKSUMS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
74 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
75 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
76 +DCCIFD_ENABLE=off
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
77 +# used to start dccifd
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
78 +# a common value is
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
79 +# DCCIFD_ARGS="-SHELO -Smail_host -SSender -SList-ID"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
80 +DCCIFD_ARGS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
81 +DCCIFD_LOGDIR="$DCCM_LOGDIR"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
82 +DCCIFD_WHITECLNT="$DCCM_WHITECLNT"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
83 +DCCIFD_USERDIRS="$DCCM_USERDIRS"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
84 +DCCIFD_LOG_AT="$DCCM_LOG_AT"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
85 +DCCIFD_REJECT_AT="$DCCM_REJECT_AT"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
86 +# override basic list of checksums controlling rejections or logging
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
87 +DCCIFD_CKSUMS="$DCCM_CKSUMS"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
88 +# additional DCC server checksums worthy of rejections or logging
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
89 +DCCIFD_XTRA_CKSUMS="$DCCM_XTRA_CKSUMS"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
90 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
91 +# days to keep files in DCC log directories
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
92 +DBCLEAN_LOGDAYS=14
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
93 +# used to start dbclean, including -e and -E
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
94 +DBCLEAN_ARGS=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
95 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
96 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
97 +# optionally set to something like "local5" or "local5.notice" for
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
98 +# dccd, dbclean, and dccm
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
99 +DCC_INFO_LOG_FACILITY=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
100 +DCC_ERROR_LOG_FACILITY=
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
101 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
102 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
103 +# ensure that the log facilities include levels and that $DCC_LOGGER
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
104 +# has a default.
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
105 +if test ! -z "$DCC_INFO_LOG_FACILITY"; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
106 + if expr "X$DCC_INFO_LOG_FACILITY" : 'X.*\..*' >/dev/null; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
107 + :
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
108 + else
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
109 + DCC_INFO_LOG_FACILITY="$DCC_INFO_LOG_FACILITY.notice"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
110 + fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
111 + DCC_LOG_ARGS="$DCC_LOG_ARGS -Linfo,$DCC_INFO_LOG_FACILITY"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
112 +fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
113 +if test -z "$DCC_ERROR_LOG_FACILITY"; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
114 + # for $DCC_LOGGER
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
115 + DCC_ERROR_LOG_FACILITY=mail.err
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
116 +else
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
117 + if expr "X$DCC_ERROR_LOG_FACILITY" : 'X.*\..*' >/dev/null; then
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
118 + :
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
119 + else
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
120 + DCC_ERROR_LOG_FACILITY="$DCC_ERROR_LOG_FACILITY.err"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
121 + fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
122 + DCC_LOG_ARGS="$DCC_LOG_ARGS -Lerror,$DCC_ERROR_LOG_FACILITY"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
123 +fi
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
124 +DCC_LOGGER="logger -s -p ${DCC_ERROR_LOG_FACILITY-mail.err} -t DCC"
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
125 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
126 +
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
127 +# do not change the following
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
128 +Configure_DCC_LIBEXEC=/usr/lib/dcc
9b8d79ac0dc3 blindly adding debian patch for old version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
129 +Configure_DCC_RUNDIR=/var/run