1 |
dragonheart 09/10/06 09:10:42 |
2 |
|
3 |
Added: opendkim-1.1.0-rep-querycache.patch opendkim.init |
4 |
opendkim-1.1.0-flockinclude.patch |
5 |
opendkim-1.1.0-vbr-booliscpp.patch |
6 |
opendkim-1.1.0-autoconf-automake.patch |
7 |
Log: |
8 |
initial ebuild by me. Eray Aslan also requested this in bug #282488 |
9 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 mail-filter/opendkim/files/opendkim-1.1.0-rep-querycache.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-rep-querycache.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-rep-querycache.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: opendkim-1.1.0-rep-querycache.patch |
18 |
=================================================================== |
19 |
--- ./opendkim-1.1.0/libopendkim/dkim-rep.c.orig 2009-10-06 19:11:04.000000000 +1100 |
20 |
+++ ./opendkim-1.1.0/libopendkim/dkim-rep.c 2009-10-06 19:12:01.000000000 +1100 |
21 |
@@ -37,6 +37,7 @@ |
22 |
/* libopendkim includes */ |
23 |
#include "dkim.h" |
24 |
#include "dkim-types.h" |
25 |
+#include "util.h" |
26 |
|
27 |
/* prototypes */ |
28 |
extern void dkim_error __P((DKIM *, const char *, ...)); |
29 |
@@ -177,6 +178,9 @@ |
30 |
char query[DKIM_MAXHOSTNAMELEN + 1]; |
31 |
char qname[DKIM_MAXHOSTNAMELEN + 1]; |
32 |
char buf[BUFRSZ + 1]; |
33 |
+#ifdef QUERY_CACHE |
34 |
+ int ttl = 0; |
35 |
+#endif /* QUERY_CACHE */ |
36 |
|
37 |
assert(dkim != NULL); |
38 |
assert(user != NULL); |
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-filter/opendkim/files/opendkim.init |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim.init?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim.init?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: opendkim.init |
48 |
=================================================================== |
49 |
#!/sbin/runscript |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/files/opendkim.init,v 1.1 2009/10/06 09:10:42 dragonheart Exp $ |
53 |
|
54 |
CONFFILE=/etc/opendkim/${SVCNAME}.conf |
55 |
PIDFILE=/var/run/opendkim/${SVCNAME}.pid |
56 |
|
57 |
depend() { |
58 |
use dns logger net |
59 |
} |
60 |
|
61 |
check_cfg() { |
62 |
|
63 |
if [ ! -f "${CONFFILE}" ] ; then |
64 |
eerror "Configuration file ${CONFFILE} is missing" |
65 |
return 1 |
66 |
fi |
67 |
|
68 |
if egrep -q '^[[:space:]]*Background[[:space:]]+no' "${CONFFILE}" ; then |
69 |
eerror "${SVCNAME} service cannot run with Background key set to yes!" |
70 |
return 1 |
71 |
fi |
72 |
|
73 |
if egrep -q '^[[:space:]]*PidFile[[:space:]]' "${CONFFILE}"; then |
74 |
eerror "Please remove PidFile key from your configuration file!" |
75 |
eerror "${SVCNAME} is automatically configured to use ${PIDFILE} as pid file." |
76 |
return 1 |
77 |
fi |
78 |
} |
79 |
|
80 |
start() { |
81 |
check_cfg || return 1 |
82 |
|
83 |
# Remove stalled Unix socket if no other process is using it |
84 |
local UNIX_SOCKET=$(sed -ne 's/^[[:space:]]*Socket[[:space:]]\+\(unix\|local\)://p' "${CONFFILE}") |
85 |
if [ -S "${UNIX_SOCKET}" ] && ! fuser -s "${UNIX_SOCKET}"; then |
86 |
rm "${UNIX_SOCKET}" |
87 |
fi |
88 |
|
89 |
ebegin "Starting OpenDKIM" |
90 |
start-stop-daemon --start --pidfile "${PIDFILE}" \ |
91 |
--exec /usr/sbin/opendkim -- -x "${CONFFILE}" -P "${PIDFILE}" |
92 |
eend $? |
93 |
} |
94 |
|
95 |
stop() { |
96 |
ebegin "Stopping OpenDKIM" |
97 |
start-stop-daemon --stop --pidfile "${PIDFILE}" |
98 |
eend $? |
99 |
} |
100 |
|
101 |
|
102 |
|
103 |
1.1 mail-filter/opendkim/files/opendkim-1.1.0-flockinclude.patch |
104 |
|
105 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-flockinclude.patch?rev=1.1&view=markup |
106 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-flockinclude.patch?rev=1.1&content-type=text/plain |
107 |
|
108 |
Index: opendkim-1.1.0-flockinclude.patch |
109 |
=================================================================== |
110 |
--- opendkim-1.1.0.orig/opendkim/opendkim-db.c.orig 2009-10-06 14:57:17.000000000 +1100 |
111 |
+++ opendkim-1.1.0/opendkim/opendkim-db.c 2009-10-06 15:01:42.000000000 +1100 |
112 |
@@ -23,6 +23,9 @@ |
113 |
#include <fcntl.h> |
114 |
#include <assert.h> |
115 |
|
116 |
+/* flock function defination */ |
117 |
+#include <sys/file.h> |
118 |
+ |
119 |
/* opendkim includes */ |
120 |
#include "opendkim-db.h" |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
1.1 mail-filter/opendkim/files/opendkim-1.1.0-vbr-booliscpp.patch |
126 |
|
127 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-vbr-booliscpp.patch?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-vbr-booliscpp.patch?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: opendkim-1.1.0-vbr-booliscpp.patch |
131 |
=================================================================== |
132 |
--- ./opendkim-1.1.0/libopendkim/vbr.c.orig 2009-10-06 19:16:19.000000000 +1100 |
133 |
+++ ./opendkim-1.1.0/libopendkim/vbr.c 2009-10-06 19:16:30.000000000 +1100 |
134 |
@@ -235,7 +235,7 @@ |
135 |
** TRUE iff ansbuf contains an IN TXT reply that could be deocde. |
136 |
*/ |
137 |
|
138 |
-static bool |
139 |
+static int |
140 |
vbr_txt_decode(u_char *ansbuf, size_t anslen, u_char *buf, size_t buflen) |
141 |
{ |
142 |
int type; |
143 |
|
144 |
|
145 |
|
146 |
1.1 mail-filter/opendkim/files/opendkim-1.1.0-autoconf-automake.patch |
147 |
|
148 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-autoconf-automake.patch?rev=1.1&view=markup |
149 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/opendkim/files/opendkim-1.1.0-autoconf-automake.patch?rev=1.1&content-type=text/plain |
150 |
|
151 |
Index: opendkim-1.1.0-autoconf-automake.patch |
152 |
=================================================================== |
153 |
--- ./opendkim-1.1.0.orig/configure.ac 2009-09-16 08:29:38.000000000 +1000 |
154 |
+++ ./opendkim-1.1.0/configure.ac 2009-10-06 18:21:08.000000000 +1100 |
155 |
@@ -45,6 +45,11 @@ |
156 |
|
157 |
# Checks for library functions. |
158 |
AC_CHECK_FUNCS([dup2 endpwent getcwd gethostname gettimeofday isascii memchr memmove memset regcomp select socket strcasecmp strchr strdup strerror strncasecmp strrchr strtol strtoul strtoull strlcpy strlcat]) |
159 |
+# Checks for library functions. |
160 |
+AC_FUNC_FORK |
161 |
+AC_FUNC_MALLOC |
162 |
+AC_FUNC_MKTIME |
163 |
+AC_FUNC_REALLOC |
164 |
|
165 |
# Conditional stuff |
166 |
AC_ARG_ENABLE(arlib, AS_HELP_STRING(--enable-arlib, enable provided asynchronous resolver library)) |
167 |
--- ./opendkim-1.1.0.orig/opendkim/Makefile.am 2009-09-16 08:29:38.000000000 +1000 |
168 |
+++ ./opendkim-1.1.0/opendkim/Makefile.am 2009-10-06 18:44:47.000000000 +1100 |
169 |
@@ -7,10 +7,11 @@ |
170 |
# this lists the binaries to produce, the (non-PHONY, binary) targets in |
171 |
# the previous manual Makefile |
172 |
sbin_PROGRAMS = opendkim-testkey opendkim-testadsp |
173 |
-sbin_SCRIPTS = opendkim-genkey.sh |
174 |
+dist_sbin_SCRIPTS = opendkim-genkey.sh |
175 |
|
176 |
-exampledir = $(datarootdir)/doc/@PACKAGE@ |
177 |
-example_DATA = opendkim.conf.sample |
178 |
+EXTRA_DIST = opendkim.conf.sample |
179 |
+sampledir = $(docdir) |
180 |
+sample_DATA = opendkim.conf.sample |
181 |
|
182 |
if BUILD_FILTER |
183 |
sbin_PROGRAMS += opendkim |
184 |
@@ -98,12 +99,8 @@ |
185 |
sbin_PROGRAMS += opendkim-stats |
186 |
opendkim_stats_SOURCES = opendkim-db.c opendkim-stats.c |
187 |
opendkim_stats_CPPFLAGS = -DUSE_DB -I../libopendkim $(LIBCRYPTO_INCDIRS) $(LIBDB_INCDIRS) |
188 |
-opendkim_stats_LDFLAGS = -L../libopendkim $(LIBCRYPTO_LIBDIRS) $(LIBUNBOUND_LIBDIRS) $(LIBDB_LIBDIRS) |
189 |
-opendkim_stats_LDADD = ../libopendkim/libopendkim.la $(LIBUNBOUND_LIBS) $(LIBDB_LIBS) |
190 |
-if USE_ARLIB |
191 |
-opendkim_stats_LDFLAGS += -L../libar |
192 |
-opendkim_stats_LDADD += -lar |
193 |
-endif |
194 |
+opendkim_stats_LDFLAGS = $(LIBCRYPTO_LIBDIRS) $(LIBUNBOUND_LIBDIRS) $(LIBDB_LIBDIRS) |
195 |
+opendkim_stats_LDADD = ../libopendkim/libopendkim.la $(LIBDB_LIBS) |
196 |
if DEBUG |
197 |
opendkim_stats_CFLAGS = -g |
198 |
endif |
199 |
@@ -111,20 +108,11 @@ |
200 |
|
201 |
opendkim_testkey_SOURCES = opendkim-testkey.c |
202 |
opendkim_testkey_CPPFLAGS = -I../libopendkim $(LIBCRYPTO_INCDIRS) |
203 |
-opendkim_testkey_LDFLAGS = -L../libopendkim $(LIBCRYPTO_LIBDIRS) |
204 |
+opendkim_testkey_LDFLAGS = $(LIBCRYPTO_LIBDIRS) |
205 |
opendkim_testkey_LDADD = ../libopendkim/libopendkim.la |
206 |
opendkim_testkey_CFLAGS = |
207 |
if USE_ARLIB |
208 |
-opendkim_testkey_LDFLAGS += -L../libar |
209 |
-opendkim_testkey_LDADD += -lar |
210 |
-endif |
211 |
-if USE_DB_OPENDKIM |
212 |
-opendkim_testkey_LDFLAGS += $(LIBDB_LIBDIRS) |
213 |
-opendkim_testkey_LDADD += $(LIBDB_LIBS) |
214 |
-endif |
215 |
-if USE_UNBOUND |
216 |
-opendkim_testkey_LDFLAGS += $(LIBUNBOUND_LIBDIRS) |
217 |
-opendkim_testkey_LDADD += $(LIBUNBOUND_LIBS) |
218 |
+opendkim_testkey_LDADD += ../libar/libar.la |
219 |
endif |
220 |
if DEBUG |
221 |
opendkim_testkey_CFLAGS += -g |
222 |
@@ -132,31 +120,21 @@ |
223 |
|
224 |
opendkim_testadsp_SOURCES = opendkim-testadsp.c |
225 |
opendkim_testadsp_CPPFLAGS = -I../libopendkim $(LIBCRYPTO_INCDIRS) |
226 |
-opendkim_testadsp_LDFLAGS = -L../libopendkim $(LIBCRYPTO_LIBDIRS) |
227 |
+opendkim_testadsp_LDFLAGS = $(LIBCRYPTO_LIBDIRS) |
228 |
opendkim_testadsp_LDADD = ../libopendkim/libopendkim.la |
229 |
opendkim_testadsp_CFLAGS = |
230 |
if USE_ARLIB |
231 |
-opendkim_testadsp_LDFLAGS += -L../libar |
232 |
-opendkim_testadsp_LDADD += -lar |
233 |
-endif |
234 |
-if USE_DB_OPENDKIM |
235 |
-opendkim_testadsp_LDFLAGS += $(LIBDB_LIBDIRS) |
236 |
-opendkim_testadsp_LDADD += $(LIBDB_LIBS) |
237 |
-endif |
238 |
-if USE_UNBOUND |
239 |
-opendkim_testadsp_LDFLAGS += $(LIBUNBOUND_LIBDIRS) |
240 |
-opendkim_testadsp_LDADD += $(LIBUNBOUND_LIBS) |
241 |
+opendkim_testadsp_LDADD += ../libar/libar.la |
242 |
endif |
243 |
if DEBUG |
244 |
opendkim_testadsp_CFLAGS += -g |
245 |
endif |
246 |
|
247 |
-man_MANS = opendkim-genkey.8 opendkim-testadsp.8 opendkim-testkey.8 |
248 |
+dist_man_MANS = opendkim-genkey.8 opendkim-testadsp.8 opendkim-testkey.8 |
249 |
if BUILD_FILTER |
250 |
-man_MANS += opendkim.conf.5 opendkim.8 |
251 |
+dist_man_MANS += opendkim.conf.5 opendkim.8 |
252 |
endif |
253 |
if STATS |
254 |
-man_MANS += opendkim-stats.8 |
255 |
+dist_man_MANS += opendkim-stats.8 |
256 |
endif |
257 |
|
258 |
-EXTRA_DIST = $(example_DATA) $(man_MANS) opendkim-stats.8 $(sbin_SCRIPTS) |
259 |
--- ./opendkim-1.1.0.orig/libopendkim/Makefile.am 2009-09-11 08:08:39.000000000 +1000 |
260 |
+++ ./opendkim-1.1.0/libopendkim/Makefile.am 2009-10-06 18:59:33.000000000 +1100 |
261 |
@@ -10,8 +10,8 @@ |
262 |
endif |
263 |
libopendkimincludedir = $(includedir)/opendkim |
264 |
libopendkiminclude_HEADERS = dkim.h |
265 |
-libopendkim_ladir = $(datadir)/opendkim |
266 |
-libopendkim_la_DATA = docs/dkim.html docs/dkim_alg_t.html docs/dkim_body.html \ |
267 |
+docsdir = $(htmldir) |
268 |
+docs_DATA = docs/dkim.html docs/dkim_alg_t.html docs/dkim_body.html \ |
269 |
docs/dkim_canon_t.html docs/dkim_cbstat.html docs/dkim_chunk.html \ |
270 |
docs/dkim_close.html docs/dkim_dnssec.html docs/dkim_eoh.html \ |
271 |
docs/dkim_eom.html docs/dkim_flush_cache.html docs/dkim_free.html \ |
272 |
@@ -77,7 +77,7 @@ |
273 |
|
274 |
if USE_ARLIB |
275 |
libopendkim_la_CFLAGS += -DUSE_ARLIB -I../libar |
276 |
-libopendkim_la_LIBADD += ../libar/libar.a |
277 |
+libopendkim_la_LIBADD += ../libar/libar.la |
278 |
endif |
279 |
|
280 |
if USE_DB_LIBOPENDKIM |
281 |
--- ./opendkim-1.1.0.orig/libar/Makefile.am 2009-09-02 03:47:06.000000000 +1000 |
282 |
+++ ./opendkim-1.1.0/libar/Makefile.am 2009-10-06 19:21:21.000000000 +1100 |
283 |
@@ -1,8 +1,8 @@ |
284 |
# $Id: opendkim-1.1.0-autoconf-automake.patch,v 1.1 2009/10/06 09:10:42 dragonheart Exp $ |
285 |
|
286 |
-lib_LIBRARIES = libar.a |
287 |
-libar_a_SOURCES = ar.c ar-strl.c manual.c ar-strl.h |
288 |
+lib_LTLIBRARIES = libar.la |
289 |
+libar_la_SOURCES = ar.c ar-strl.c manual.c ar-strl.h |
290 |
+libar_la_LIBADD = -lresolv |
291 |
libarincludedir = $(includedir)/ar |
292 |
libarinclude_HEADERS = ar.h manual.h |
293 |
-man_MANS = ar.3 |
294 |
-EXTRA_DIST = $(man_MANS) |
295 |
+dist_man_MANS = ar.3 |