Gentoo Archives: gentoo-commits

From: "Daniel Black (dragonheart)" <dragonheart@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/dkim-milter/files: dkim-milter-2.4.1-gentoo.patch dkim-filter-2.4.1-init digest-dkim-milter-2.4.1
Date: Fri, 28 Dec 2007 10:10:04
Message-Id: E1J8CAA-0007zb-IM@stork.gentoo.org
1 dragonheart 07/12/28 10:09:58
2
3 Added: dkim-milter-2.4.1-gentoo.patch
4 dkim-filter-2.4.1-init digest-dkim-milter-2.4.1
5 Log:
6 version bump
7 (Portage version: 2.1.4_rc11)
8
9 Revision Changes Path
10 1.1 mail-filter/dkim-milter/files/dkim-milter-2.4.1-gentoo.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/dkim-milter-2.4.1-gentoo.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/dkim-milter-2.4.1-gentoo.patch?rev=1.1&content-type=text/plain
14
15 Index: dkim-milter-2.4.1-gentoo.patch
16 ===================================================================
17 --- site.config.m4.dist 2007-12-18 10:59:54.000000000 +1100
18 +++ devtools/Site/site.config.m4 2007-12-28 19:27:46.000000000 +1100
19 @@ -11,7 +11,10 @@
20 dnl If you are encountering coredumps and want to be able to analyze them
21 dnl using something like "gdb", enable this next line by deleting the "dnl"
22 dnl at the front of it.
23 -dnl define(`confOPTIMIZE', `-g')
24 +define(`confOPTIMIZE', `@@CFLAGS@@')
25 +define(`confENVDEF', `@@ENVDEF@@')
26 +dnl man build is broken
27 +define(`confNO_MAN_BUILD',`')
28
29 dnl Shared library for libdkim
30 dnl
31 @@ -32,7 +35,7 @@
32 dnl
33 dnl If you want to use the asynchronous resolver library, enable this
34 dnl next line by deleting the "dnl" at the front of it.
35 -dnl define(`bld_USE_ARLIB', `true')
36 +define(`bld_USE_ARLIB', `true')
37 dnl
38 dnl libar normally uses res_init() or res_ninit() to load the contents
39 dnl of resolv.conf for its use. If neither of these work on your system
40 @@ -57,7 +60,7 @@
41 dnl it has seen, rather than relying on the DNS server to provide caching,
42 dnl enable this next line by deleting the "dnl" at the front of it. Also
43 dnl see the section below called "BerkeleyDB".
44 -dnl APPENDDEF(`confENVDEF', `-DQUERY_CACHE ')
45 +APPENDDEF(`confENVDEF', `-DQUERY_CACHE ')
46
47 dnl BerkeleyDB -- Berkeley DB ("Sleepycat") database
48 dnl
49 @@ -70,7 +73,7 @@
50 dnl by deleting "dnl" from the front of them:
51 dnl APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB/include ')
52 dnl APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB/lib ')
53 -dnl APPENDDEF(`confLIBS', `-ldb ')
54 +APPENDDEF(`confLIBS', `-ldb ')
55
56 dnl OpenSSL -- cryptography library
57 dnl
58 @@ -106,7 +109,7 @@
59 dnl APPENDDEF(`confENVDEF', `-D_FFR_REQUIRED_HEADERS ')
60 dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECT_CANONICALIZATION ')
61 dnl APPENDDEF(`confENVDEF', `-D_FFR_SELECTOR_HEADER ')
62 -dnl APPENDDEF(`confENVDEF', `-D_FFR_STATS ')
63 +APPENDDEF(`confENVDEF', `-D_FFR_STATS ')
64 dnl APPENDDEF(`confENVDEF', `-D_FFR_VBR ')
65 dnl APPENDDEF(`confENVDEF', `-D_FFR_ZTAGS ')
66
67 --- ./dkim-filter/dkim-filter.conf.sample.orig 2007-12-14 18:22:19.000000000 +1100
68 +++ ./dkim-filter/dkim-filter.conf.sample 2007-12-28 19:30:54.000000000 +1100
69 @@ -20,13 +20,6 @@
70
71 # AutoRestart No
72
73 -## Background { yes | no }
74 -## default "yes"
75 -##
76 -## Indicate whether or not the filter should run in the background.
77 -
78 -# Background Yes
79 -
80 ## BodyLengths { yes | no }
81 ## default "no"
82 ##
83 @@ -74,7 +67,7 @@
84 ## Specify for which domain(s) signing should be done. No default; must
85 ## be specified for signing.
86
87 -Domain example.com
88 +Domain my-domain.com
89
90 ## ExternalIgnoreList filename
91 ##
92 @@ -89,7 +82,7 @@
93 ## Specifies the path to the private key to use when signing. Ignored if
94 ## Keylist is set. No default; must be specified for signing.
95
96 -KeyFile /var/db/dkim/example.private
97 +KeyFile /etc/mail/dkim-filter/my-selector-name.private
98
99 ## KeyList filename
100 ##
101 @@ -106,7 +99,7 @@
102 ## as the beginning of a comment. See dkim-filter.conf(5) for more
103 ## information.
104
105 -# KeyList /var/db/dkim/keylist
106 +# KeyList /etc/mail/dkim-filter/keylist
107
108 ## InternalHosts filename
109 ##
110 @@ -114,7 +107,7 @@
111 ## hosts from which mail should be signed rather than verified.
112 ## Automatically contains 127.0.0.1. See man page for file format.
113
114 -# InternalHosts filename
115 +# InternalHosts /etc/mail/dkim-filter/internalhosts
116
117 ## MacroList macro[=value][,...]
118 ##
119 @@ -198,22 +191,6 @@
120
121 # PeerList filename
122
123 -## PidFile filename
124 -##
125 -## Name of the file where the filter should write its pid before beginning
126 -## normal operations.
127 -
128 -# PidFile filename
129 -
130 -## POPDBFile filename
131 -##
132 -## Names a database which should be checked for "POP before SMTP" records
133 -## as a form of authentication of users who may be sending mail through
134 -## the MTA for signing. Requires special compilation of the filter.
135 -## See dkim-filter.conf(5) for more information.
136 -
137 -# POPDBFile filename
138 -
139 ## Quarantine { yes | no }
140 ## default "no"
141 ##
142 @@ -288,7 +265,7 @@
143 ## inet:port to listen on all interfaces
144 ## local:/path/to/socket to listen on a UNIX domain socket
145
146 -Socket inet:port@localhost
147 +Socket local:/var/run/dkim-filter/dkim-filter.sock
148
149 ## SubDomains { yes | no }
150 ## default "no"
151 @@ -318,7 +295,7 @@
152 ## The system has its own default which will be used (usually 022).
153 ## See the umask(2) man page for more information.
154
155 -# UMask 022
156 +UMask 002
157
158 ## Userid userid
159 ## default (none)
160 @@ -326,7 +303,7 @@
161 ## Change to user "userid" before starting normal operation? May include
162 ## a group ID as well, separated from the userid by a colon.
163
164 -# UserID userid
165 +UserID milter
166
167 ## UseSSPDeny { yes | no }
168 ## default "no"
169 @@ -344,3 +321,10 @@
170 ## messages it has processed.
171
172 # X-Header No
173 +
174 +## Statistics filename
175 +##
176 +## Names a file to which useful statistics will be saved.
177 +## See man dkim-stats page
178 +
179 +Statistics /var/run/dkim-filter/dkim-filter.stats
180
181
182
183 1.1 mail-filter/dkim-milter/files/dkim-filter-2.4.1-init
184
185 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/dkim-filter-2.4.1-init?rev=1.1&view=markup
186 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/dkim-filter-2.4.1-init?rev=1.1&content-type=text/plain
187
188 Index: dkim-filter-2.4.1-init
189 ===================================================================
190 #!/sbin/runscript
191 # Copyright 1999-2006 Gentoo Foundation
192 # Distributed under the terms of the GNU General Public License v2
193 # $Header: /var/cvsroot/gentoo-x86/mail-filter/dkim-milter/files/dkim-filter-2.4.1-init,v 1.1 2007/12/28 10:09:57 dragonheart Exp $
194
195 CONFFILE=/etc/mail/dkim-filter/${SVCNAME}.conf
196 PIDFILE=/var/run/dkim-filter/${SVCNAME}.pid
197
198 depend() {
199 use dns logger net
200 }
201
202 check_cfg() {
203
204 if [ ! -f "${CONFFILE}" ] ; then
205 eerror "Configuration file ${CONFFILE} is missing"
206 return 1
207 fi
208
209 if egrep -q '^[[:space:]]*Background[[:space:]]+no' "${CONFFILE}" ; then
210 eerror "${SVCNAME} service cannot run with Background key set to yes!"
211 return 1
212 fi
213
214 if egrep -q '^[[:space:]]*PidFile[[:space:]]' "${CONFFILE}"; then
215 eerror "Please remove PidFile key from your configuration file!"
216 eerror "${SVCNAME} is automatically configured to use ${PIDFILE} as pid file."
217 return 1
218 fi
219 }
220
221 start() {
222 check_cfg || return 1
223
224 ebegin "Starting DKIM filter"
225 start-stop-daemon --start --pidfile "${PIDFILE}" \
226 --exec /usr/bin/dkim-filter -- -x "${CONFFILE}" -P "${PIDFILE}"
227 eend $?
228 }
229
230 stop() {
231 ebegin "Stopping DKIM filter"
232 start-stop-daemon --stop --pidfile "${PIDFILE}"
233 eend $?
234 }
235
236
237
238 1.1 mail-filter/dkim-milter/files/digest-dkim-milter-2.4.1
239
240 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/digest-dkim-milter-2.4.1?rev=1.1&view=markup
241 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dkim-milter/files/digest-dkim-milter-2.4.1?rev=1.1&content-type=text/plain
242
243 Index: digest-dkim-milter-2.4.1
244 ===================================================================
245 MD5 f0d143eb868842303e1c0bed30c955bb dkim-milter-2.4.1.tar.gz 614119
246 RMD160 ff24f468f0a741cc82d4b99d0b4f43d23dd132ab dkim-milter-2.4.1.tar.gz 614119
247 SHA256 7b53f6650ba651ef7633c2de9d514056fd7150e0f4b71d5b5914eaa8b71d87d4 dkim-milter-2.4.1.tar.gz 614119
248
249
250
251 --
252 gentoo-commits@g.o mailing list