Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/libdkim/files/debianize/, mail-filter/libdkim/, profiles/, ...
Date: Sat, 20 Apr 2019 23:29:05
Message-Id: 1555747879.8a08a4140524cc24dba786fa04d2bda9c24d726d.mgorny@gentoo
1 commit: 8a08a4140524cc24dba786fa04d2bda9c24d726d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 08:11:19 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 08:11:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a08a414
7
8 mail-filter/libdkim: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/674892
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 mail-filter/libdkim/Manifest | 1 -
14 mail-filter/libdkim/files/debianize/Makefile.in | 93 -------
15 mail-filter/libdkim/files/debianize/aclocal.m4 | 171 ------------
16 mail-filter/libdkim/files/debianize/configure.ac | 39 ---
17 mail-filter/libdkim/files/debianize/libdkim.pc.in | 12 -
18 mail-filter/libdkim/files/debianize/libdkim.ver | 4 -
19 .../libdkim/files/libdkim-1.0.21-gcc6.patch | 25 --
20 .../libdkim/files/libdkim-extra-options-r1.patch | 87 ------
21 .../libdkim/files/libdkim-extra-options.patch | 87 ------
22 .../libdkim/files/patches/fix_warnings.patch | 293 ---------------------
23 mail-filter/libdkim/files/patches/series | 2 -
24 mail-filter/libdkim/files/patches/strtok_r.patch | 119 ---------
25 mail-filter/libdkim/libdkim-1.0.21-r3.ebuild | 54 ----
26 mail-filter/libdkim/libdkim-1.0.21-r4.ebuild | 53 ----
27 mail-filter/libdkim/metadata.xml | 8 -
28 profiles/package.mask | 2 -
29 16 files changed, 1050 deletions(-)
30
31 diff --git a/mail-filter/libdkim/Manifest b/mail-filter/libdkim/Manifest
32 deleted file mode 100644
33 index 954bcdb6626..00000000000
34 --- a/mail-filter/libdkim/Manifest
35 +++ /dev/null
36 @@ -1 +0,0 @@
37 -DIST libdkim-1.0.21.zip 55049 BLAKE2B f7481bc41a2f43357a67aa9f6e251634f1c2850fd1dfe3c4a4e0ea64341a3625ff0e393e039d679784c8c1ce349ee7063511f988ff6cf6d5b7acfc7c9633f9da SHA512 3996c64398151dc9c07d357e8f3ac9b94e3c8d06ce5d83ebbe546416f361349d869b0b73216f28d0b732319731f31e61afd9eab0f540471760b944a90130a094
38
39 diff --git a/mail-filter/libdkim/files/debianize/Makefile.in b/mail-filter/libdkim/files/debianize/Makefile.in
40 deleted file mode 100644
41 index 862f9b8478c..00000000000
42 --- a/mail-filter/libdkim/files/debianize/Makefile.in
43 +++ /dev/null
44 @@ -1,93 +0,0 @@
45 -# libdkim makefile for UNIX
46 -#
47 -srcdir = @srcdir@
48 -VPATH = @srcdir@
49 -
50 -prefix = @prefix@
51 -exec_prefix = @exec_prefix@
52 -bindir = @bindir@
53 -libdir = @libdir@
54 -includedir = @includedir@
55 -
56 -OBJEXT = @OBJEXT@
57 -LIBS = @LIBS@ @libcrypto_LIBS@
58 -
59 -CC = @CC@
60 -CXX = @CXX@
61 -
62 -CFLAGS = @CFLAGS@
63 -CXXFLAGS = @CXXFLAGS@
64 -CPPFLAGS = @CPPFLAGS@
65 -
66 -INCL =
67 -LDFLAGS = @LDFLAGS@
68 -
69 -libdkim_SOURCES = dkim.cpp dns.cpp dkimbase.cpp dkimsign.cpp dkimverify.cpp
70 -HEADERS = dkim.h dns.h dkimbase.h dkimsign.h dkimverify.h
71 -
72 -libdkim_OBJS = $(libdkim_SOURCES:.cpp=.$(OBJEXT))
73 -libdkim_PURE_OBJS = $(libdkim_SOURCES:.cpp=.p$(OBJEXT))
74 -
75 -libdkimtest_SOURCES = libdkimtest.cpp
76 -libdkimtest_OBJS = libdkimtest.$(OBJEXT)
77 -
78 -SHLIBFORLINK = libdkim.so
79 -SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR)
80 -SHLIBTARGET = $(SHLIBFORLINK)
81 -SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -Wl,-version-script=libdkim.ver
82 -SHLIBMAJOR = 1d
83 -SHLIBMINOR = 1
84 -SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR)
85 -SHLIBCFLAGS = -fPIC
86 -
87 -ARFLAGS = crs
88 -
89 -TARGETS = libdkim.a $(SHLIBTARGET) libdkimtest
90 -
91 -all: $(TARGETS)
92 -
93 -libdkim.a: $(libdkim_OBJS)
94 - -rm -f $@
95 - $(AR) $(ARFLAGS) $@ $(libdkim_OBJS)
96 -
97 -$(SHLIBFORLINK): $(libdkim_PURE_OBJS)
98 - $(SHLIBLINK) -o $@ $(libdkim_PURE_OBJS) $(LIBS)
99 - -mkdir .lib 2>/dev/null
100 - [ -z "$(SHLIBSONAME)" ] || (cd .lib \
101 - && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
102 -
103 -libdkimtest: $(libdkimtest_OBJS) $(SHLIBFORLINK)
104 - $(CXX) ${LDFLAGS} -L. -o $@ libdkimtest.o -ldkim $(LIBS)
105 -
106 -libdkimtest.o: $(libdkimtest_SOURCES) $(HDRS)
107 - $(CXX) $(CXXFLAGS) -o $@ -c $<
108 -
109 -%.$(OBJEXT): %.cpp $(HDRS)
110 - $(CXX) $(CXXFLAGS) -o $@ -c $<
111 -
112 -%.p$(OBJEXT): %.cpp $(HDRS)
113 - $(CXX) $(SHLIBCFLAGS) $(CXXFLAGS) -o $@ -c $<
114 -
115 -clean:
116 - -rm -f *.$(OBJEXT) *.p$(OBJEXT) $(TARGETS)
117 - -rm -rf .lib
118 -
119 -distclean: clean
120 - -rm -f config.status config.log Makefile libdkim.pc
121 -
122 -install: all
123 - install -m 755 -d $(DESTDIR)$(libdir)
124 - install -m 755 -d $(DESTDIR)$(libdir)/pkgconfig
125 - install -m 755 -d $(DESTDIR)$(includedir)
126 - install -m 644 libdkim.a $(DESTDIR)$(libdir)
127 - install -m 755 $(SHLIBFORLINK) $(DESTDIR)$(libdir)/$(SHLIBFILE)
128 - [ -z "$(SHLIBSONAME)" ] \
129 - || (cd $(DESTDIR)$(libdir) \
130 - && ln -sf $(SHLIBFILE) $(SHLIBSONAME) \
131 - && ln -sf $(SHLIBFILE) $(SHLIBFORLINK) )
132 - install -m 644 $(srcdir)/dkim.h $(DESTDIR)$(includedir)
133 - install -m 644 libdkim.pc $(DESTDIR)$(libdir)/pkgconfig
134 - install -m 755 -d $(DESTDIR)$(bindir)
135 - install -m 755 libdkimtest $(DESTDIR)$(bindir)
136 -
137 -.PHONY: all install clean distclean
138
139 diff --git a/mail-filter/libdkim/files/debianize/aclocal.m4 b/mail-filter/libdkim/files/debianize/aclocal.m4
140 deleted file mode 100644
141 index 92a0b0dd943..00000000000
142 --- a/mail-filter/libdkim/files/debianize/aclocal.m4
143 +++ /dev/null
144 @@ -1,171 +0,0 @@
145 -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
146 -
147 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
148 -# 2005 Free Software Foundation, Inc.
149 -# This file is free software; the Free Software Foundation
150 -# gives unlimited permission to copy and/or distribute it,
151 -# with or without modifications, as long as this notice is preserved.
152 -
153 -# This program is distributed in the hope that it will be useful,
154 -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
155 -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
156 -# PARTICULAR PURPOSE.
157 -
158 -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
159 -#
160 -# Copyright © 2004 Scott James Remnant <scott@××××××××.com>.
161 -#
162 -# This program is free software; you can redistribute it and/or modify
163 -# it under the terms of the GNU General Public License as published by
164 -# the Free Software Foundation; either version 2 of the License, or
165 -# (at your option) any later version.
166 -#
167 -# This program is distributed in the hope that it will be useful, but
168 -# WITHOUT ANY WARRANTY; without even the implied warranty of
169 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
170 -# General Public License for more details.
171 -#
172 -# You should have received a copy of the GNU General Public License
173 -# along with this program; if not, write to the Free Software
174 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
175 -#
176 -# As a special exception to the GNU General Public License, if you
177 -# distribute this file as part of a program that contains a
178 -# configuration script generated by Autoconf, you may include it under
179 -# the same distribution terms that you use for the rest of that program.
180 -
181 -# PKG_PROG_PKG_CONFIG([MIN-VERSION])
182 -# ----------------------------------
183 -AC_DEFUN([PKG_PROG_PKG_CONFIG],
184 -[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
185 -m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
186 -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
187 -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
188 - AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
189 -fi
190 -if test -n "$PKG_CONFIG"; then
191 - _pkg_min_version=m4_default([$1], [0.9.0])
192 - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
193 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
194 - AC_MSG_RESULT([yes])
195 - else
196 - AC_MSG_RESULT([no])
197 - PKG_CONFIG=""
198 - fi
199 -
200 -fi[]dnl
201 -])# PKG_PROG_PKG_CONFIG
202 -
203 -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
204 -#
205 -# Check to see whether a particular set of modules exists. Similar
206 -# to PKG_CHECK_MODULES(), but does not set variables or print errors.
207 -#
208 -#
209 -# Similar to PKG_CHECK_MODULES, make sure that the first instance of
210 -# this or PKG_CHECK_MODULES is called, or make sure to call
211 -# PKG_CHECK_EXISTS manually
212 -# --------------------------------------------------------------
213 -AC_DEFUN([PKG_CHECK_EXISTS],
214 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
215 -if test -n "$PKG_CONFIG" && \
216 - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
217 - m4_ifval([$2], [$2], [:])
218 -m4_ifvaln([$3], [else
219 - $3])dnl
220 -fi])
221 -
222 -
223 -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
224 -# ---------------------------------------------
225 -m4_define([_PKG_CONFIG],
226 -[if test -n "$PKG_CONFIG"; then
227 - if test -n "$$1"; then
228 - pkg_cv_[]$1="$$1"
229 - else
230 - PKG_CHECK_EXISTS([$3],
231 - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
232 - [pkg_failed=yes])
233 - fi
234 -else
235 - pkg_failed=untried
236 -fi[]dnl
237 -])# _PKG_CONFIG
238 -
239 -# _PKG_SHORT_ERRORS_SUPPORTED
240 -# -----------------------------
241 -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
242 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
243 -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
244 - _pkg_short_errors_supported=yes
245 -else
246 - _pkg_short_errors_supported=no
247 -fi[]dnl
248 -])# _PKG_SHORT_ERRORS_SUPPORTED
249 -
250 -
251 -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
252 -# [ACTION-IF-NOT-FOUND])
253 -#
254 -#
255 -# Note that if there is a possibility the first call to
256 -# PKG_CHECK_MODULES might not happen, you should be sure to include an
257 -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
258 -#
259 -#
260 -# --------------------------------------------------------------
261 -AC_DEFUN([PKG_CHECK_MODULES],
262 -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
263 -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
264 -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
265 -
266 -pkg_failed=no
267 -AC_MSG_CHECKING([for $1])
268 -
269 -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
270 -_PKG_CONFIG([$1][_LIBS], [libs], [$2])
271 -
272 -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
273 -and $1[]_LIBS to avoid the need to call pkg-config.
274 -See the pkg-config man page for more details.])
275 -
276 -if test $pkg_failed = yes; then
277 - _PKG_SHORT_ERRORS_SUPPORTED
278 - if test $_pkg_short_errors_supported = yes; then
279 - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
280 - else
281 - $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
282 - fi
283 - # Put the nasty error message in config.log where it belongs
284 - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
285 -
286 - ifelse([$4], , [AC_MSG_ERROR(dnl
287 -[Package requirements ($2) were not met:
288 -
289 -$$1_PKG_ERRORS
290 -
291 -Consider adjusting the PKG_CONFIG_PATH environment variable if you
292 -installed software in a non-standard prefix.
293 -
294 -_PKG_TEXT
295 -])],
296 - [AC_MSG_RESULT([no])
297 - $4])
298 -elif test $pkg_failed = untried; then
299 - ifelse([$4], , [AC_MSG_FAILURE(dnl
300 -[The pkg-config script could not be found or is too old. Make sure it
301 -is in your PATH or set the PKG_CONFIG environment variable to the full
302 -path to pkg-config.
303 -
304 -_PKG_TEXT
305 -
306 -To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
307 - [$4])
308 -else
309 - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
310 - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
311 - AC_MSG_RESULT([yes])
312 - ifelse([$3], , :, [$3])
313 -fi[]dnl
314 -])# PKG_CHECK_MODULES
315 -
316
317 diff --git a/mail-filter/libdkim/files/debianize/configure.ac b/mail-filter/libdkim/files/debianize/configure.ac
318 deleted file mode 100644
319 index 045fd33fcb6..00000000000
320 --- a/mail-filter/libdkim/files/debianize/configure.ac
321 +++ /dev/null
322 @@ -1,39 +0,0 @@
323 -# -*- Autoconf -*-
324 -# Process this file with autoconf to produce a configure script.
325 -
326 -AC_PREREQ(2.61)
327 -AC_INIT(libdkim, 1.0.21)
328 -LT_INIT
329 -AC_CONFIG_SRCDIR([dkim.cpp])
330 -##AC_CONFIG_HEADER([config.h])
331 -
332 -# Checks for programs.
333 -AC_PROG_CXX
334 -PKG_PROG_PKG_CONFIG
335 -
336 -# Checks for libraries.
337 -#AC_CHECK_LIB([crypto], [PEM_read_PrivateKey])
338 -PKG_CHECK_MODULES([libcrypto], [libcrypto])
339 -AC_SEARCH_LIBS([res_query], [resolv c],,
340 - [AC_SEARCH_LIBS(__res_query,resolv bind)])
341 -
342 -# Checks for header files.
343 -AC_HEADER_RESOLV
344 -AC_HEADER_STDC
345 -AC_CHECK_HEADERS([netdb.h netinet/in.h inttypes.h stdlib.h string.h])
346 -
347 -# Checks for typedefs, structures, and compiler characteristics.
348 -AC_HEADER_STDBOOL
349 -AC_C_CONST
350 -AC_C_INLINE
351 -AC_HEADER_TIME
352 -AC_TYPE_UINT16_T
353 -AC_TYPE_UINT32_T
354 -
355 -# Checks for library functions.
356 -AC_FUNC_MEMCMP
357 -AC_FUNC_SELECT_ARGTYPES
358 -AC_CHECK_FUNCS([select socket strchr])
359 -
360 -AC_CONFIG_FILES([Makefile libdkim.pc])
361 -AC_OUTPUT
362
363 diff --git a/mail-filter/libdkim/files/debianize/libdkim.pc.in b/mail-filter/libdkim/files/debianize/libdkim.pc.in
364 deleted file mode 100644
365 index d8d914ac439..00000000000
366 --- a/mail-filter/libdkim/files/debianize/libdkim.pc.in
367 +++ /dev/null
368 @@ -1,12 +0,0 @@
369 -prefix=@prefix@
370 -exec_prefix=@exec_prefix@
371 -libdir=@libdir@
372 -includedir=@includedir@
373 -
374 -Name: @PACKAGE_NAME@
375 -Description: DomainKeys Identified Mail library from Alt-N Inc.
376 -Version: @PACKAGE_VERSION@
377 -Requires.private: libcrypto
378 -Libs: -L${libdir} -ldkim
379 -Libs.private: @LIBS@
380 -Cflags: -I${includedir}
381
382 diff --git a/mail-filter/libdkim/files/debianize/libdkim.ver b/mail-filter/libdkim/files/debianize/libdkim.ver
383 deleted file mode 100644
384 index d2049046aff..00000000000
385 --- a/mail-filter/libdkim/files/debianize/libdkim.ver
386 +++ /dev/null
387 @@ -1,4 +0,0 @@
388 -{
389 - global: DKIM*;
390 - local: *;
391 -};
392
393 diff --git a/mail-filter/libdkim/files/libdkim-1.0.21-gcc6.patch b/mail-filter/libdkim/files/libdkim-1.0.21-gcc6.patch
394 deleted file mode 100644
395 index d449ce95e48..00000000000
396 --- a/mail-filter/libdkim/files/libdkim-1.0.21-gcc6.patch
397 +++ /dev/null
398 @@ -1,25 +0,0 @@
399 ---- src/dkimverify.cpp
400 -+++ src/dkimverify.cpp
401 -@@ -211,14 +211,14 @@
402 - unsigned DecodeBase64(char *ptr)
403 - {
404 - static const unsigned char base64_table[256] = {
405 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
406 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,
407 -- -1, 0, 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,-1,-1,-1,-1,-1,
408 -- -1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1,
409 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
410 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
411 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
412 -- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
413 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
414 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,62,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,63,52,53,54,55,56,57,58,59,60,61,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
415 -+ (unsigned char) -1, 0, 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,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
416 -+ (unsigned char) -1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
417 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
418 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
419 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,
420 -+ (unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1,(unsigned char) -1};
421 -
422 - unsigned char *s = (unsigned char *)ptr;
423 - unsigned char *d = (unsigned char *)ptr;
424
425 diff --git a/mail-filter/libdkim/files/libdkim-extra-options-r1.patch b/mail-filter/libdkim/files/libdkim-extra-options-r1.patch
426 deleted file mode 100644
427 index abedbaa8a0b..00000000000
428 --- a/mail-filter/libdkim/files/libdkim-extra-options-r1.patch
429 +++ /dev/null
430 @@ -1,87 +0,0 @@
431 -diff -Naur libdkim.orig/src/libdkimtest.cpp libdkim/src/libdkimtest.cpp
432 ---- src/libdkimtest.cpp 2009-03-13 16:17:45.000000000 -0500
433 -+++ src/libdkimtest.cpp 2009-03-13 16:26:02.000000000 -0500
434 -@@ -55,8 +55,23 @@
435 - return 0;
436 - }
437 -
438 -+void usage()
439 -+{
440 -
441 --
442 -+ printf( "usage: libdkimtest [-b<allman|ietf|both>] [-c<r|s|t|u>] [-d<domain>] [-l] [-h] [-i<you@××××××××××.com>] [-q] [-s] [-t] [-v] [-x<expire time>] [-z<hash>] <msgfile> <privkeyfile> <outfile>\n");
443 -+ printf( "-b<standard> 1=allman, 2=ietf or 3=both\n");
444 -+ printf( "-c<canonicalization> r=relaxed [DEFAULT], s=simple, t=relaxed/simple, u=simple/relaxed\n");
445 -+ printf( "-d<domain> the domain tag, if not provided it will be determined from the sender/from header\n");
446 -+ printf( "-l include body length tag\n");
447 -+ printf( "-h this help\n");
448 -+ printf( "-i<identity> the identity, if not provided it will not be included\n");
449 -+ printf( "-s sign the message\n");
450 -+ printf( "-t include a timestamp tag\n");
451 -+ printf( "-v verify the message\n");
452 -+ printf( "-x<expire_time> the expire time in seconds since epoch ( DEFAULT = current time + 604800)\n\t\t if set to - then it will not be included\n");
453 -+ printf( "-z<hash> 1=sha1, 2=sha256, 3=both\n");
454 -+ printf( "-y<selector> selector tag DEFAULT=default\n");
455 -+}
456 - int main(int argc, char* argv[])
457 - {
458 - int n;
459 -@@ -77,7 +92,7 @@
460 - time(&t);
461 -
462 - opts.nCanon = DKIM_SIGN_RELAXED;
463 -- opts.nIncludeBodyLengthTag = 1;
464 -+ opts.nIncludeBodyLengthTag = 0;
465 - opts.nIncludeQueryMethod = 0;
466 - opts.nIncludeTimeStamp = 0;
467 - opts.expireTime = t + 604800; // expires in 1 week
468 -@@ -92,6 +107,11 @@
469 - int nArgParseState = 0;
470 - bool bSign = true;
471 -
472 -+ if(argc<2){
473 -+ usage();
474 -+ exit(1);
475 -+ }
476 -+
477 - for( n = 1; n < argc; n++ )
478 - {
479 - if( argv[n][0] == '-' && strlen(argv[n]) > 1 )
480 -@@ -121,14 +141,16 @@
481 - }
482 - break;
483 -
484 --
485 -+ case 'd':
486 -+ strncpy(opts.szDomain,(const char*)(argv[n]+2),sizeof(opts.szDomain)-1);
487 -+ break;
488 - case 'l': // body length tag
489 - opts.nIncludeBodyLengthTag = 1;
490 - break;
491 -
492 -
493 - case 'h':
494 -- printf( "usage: \n" );
495 -+ usage();
496 - return 0;
497 -
498 - case 'i': // identity
499 -@@ -138,7 +160,7 @@
500 - }
501 - else
502 - {
503 -- strcpy( opts.szIdentity, argv[n] + 2 );
504 -+ strncpy( opts.szIdentity, argv[n] + 2,sizeof(opts.szIdentity)-1 );
505 - }
506 - break;
507 -
508 -@@ -169,6 +191,9 @@
509 - }
510 - break;
511 -
512 -+ case 'y':
513 -+ strncpy( opts.szSelector, argv[n]+2, sizeof(opts.szSelector)-1);
514 -+ break;
515 -
516 - case 'z': // sign w/ sha1, sha256 or both
517 - opts.nHash = atoi( &argv[n][2] );
518
519 diff --git a/mail-filter/libdkim/files/libdkim-extra-options.patch b/mail-filter/libdkim/files/libdkim-extra-options.patch
520 deleted file mode 100644
521 index 5c8a240fdbe..00000000000
522 --- a/mail-filter/libdkim/files/libdkim-extra-options.patch
523 +++ /dev/null
524 @@ -1,87 +0,0 @@
525 -diff -Naur libdkim.orig/src/libdkimtest.cpp libdkim/src/libdkimtest.cpp
526 ---- libdkim.orig/src/libdkimtest.cpp 2009-03-13 16:17:45.000000000 -0500
527 -+++ libdkim/src/libdkimtest.cpp 2009-03-13 16:26:02.000000000 -0500
528 -@@ -55,8 +55,23 @@
529 - return 0;
530 - }
531 -
532 -+void usage()
533 -+{
534 -
535 --
536 -+ printf( "usage: libdkimtest [-b<allman|ietf|both>] [-c<r|s|t|u>] [-d<domain>] [-l] [-h] [-i<you@××××××××××.com>] [-q] [-s] [-t] [-v] [-x<expire time>] [-z<hash>] <msgfile> <privkeyfile> <outfile>\n");
537 -+ printf( "-b<standard> allman , ietf or both\n");
538 -+ printf( "-c<canonicalization> r for relaxed [DEFAULT], s - simple, t relaxed/simple, u - simple/relaxed\n");
539 -+ printf( "-d<domain> the domain tag, if not provided it will be determined from the sender/from header\n");
540 -+ printf( "-l include body length tag\n");
541 -+ printf( "-h this help\n");
542 -+ printf( "-i<identity> the identity, if not provided it will not be included\n");
543 -+ printf( "-s sign the message\n");
544 -+ printf( "-t include a timestamp tag\n");
545 -+ printf( "-v verify the message\n");
546 -+ printf( "-x<expire_time> the expire time in seconds since epoch ( DEFAULT = current time + 604800)\n\t if set to - then it will not be included");
547 -+ printf( "-z<hash> 1 for sha1, 2 for sha256, 3 for both\n");
548 -+ printf( "-y<selector> the selector tag DEFAULT=MDaemon\n");
549 -+}
550 - int main(int argc, char* argv[])
551 - {
552 - int n;
553 -@@ -77,7 +92,7 @@
554 - time(&t);
555 -
556 - opts.nCanon = DKIM_SIGN_RELAXED;
557 -- opts.nIncludeBodyLengthTag = 1;
558 -+ opts.nIncludeBodyLengthTag = 0;
559 - opts.nIncludeQueryMethod = 0;
560 - opts.nIncludeTimeStamp = 0;
561 - opts.expireTime = t + 604800; // expires in 1 week
562 -@@ -92,6 +107,11 @@
563 - int nArgParseState = 0;
564 - bool bSign = true;
565 -
566 -+ if(argc<2){
567 -+ usage();
568 -+ exit(1);
569 -+ }
570 -+
571 - for( n = 1; n < argc; n++ )
572 - {
573 - if( argv[n][0] == '-' && strlen(argv[n]) > 1 )
574 -@@ -121,14 +141,16 @@
575 - }
576 - break;
577 -
578 --
579 -+ case 'd':
580 -+ strncpy(opts.szDomain,(const char*)(argv[n]+2),sizeof(opts.szDomain)-1);
581 -+ break;
582 - case 'l': // body length tag
583 - opts.nIncludeBodyLengthTag = 1;
584 - break;
585 -
586 -
587 - case 'h':
588 -- printf( "usage: \n" );
589 -+ usage();
590 - return 0;
591 -
592 - case 'i': // identity
593 -@@ -138,7 +160,7 @@
594 - }
595 - else
596 - {
597 -- strcpy( opts.szIdentity, argv[n] + 2 );
598 -+ strncpy( opts.szIdentity, argv[n] + 2,sizeof(opts.szIdentity)-1 );
599 - }
600 - break;
601 -
602 -@@ -169,6 +191,9 @@
603 - }
604 - break;
605 -
606 -+ case 'y':
607 -+ strncpy( opts.szSelector, argv[n]+2, sizeof(opts.szSelector)-1);
608 -+ break;
609 -
610 - case 'z': // sign w/ sha1, sha256 or both
611 - opts.nHash = atoi( &argv[n][2] );
612
613 diff --git a/mail-filter/libdkim/files/patches/fix_warnings.patch b/mail-filter/libdkim/files/patches/fix_warnings.patch
614 deleted file mode 100644
615 index 84704290a60..00000000000
616 --- a/mail-filter/libdkim/files/patches/fix_warnings.patch
617 +++ /dev/null
618 @@ -1,293 +0,0 @@
619 -#! /bin/sh /usr/share/dpatch/dpatch-run
620 -## 02_fix_warnings.dpatch by Russell Coker <russell@×××××××××.au>
621 -##
622 -## DP: Get rid of warnings through the use of const and more correct types
623 -
624 -@DPATCH@
625 -
626 -diff -ru src/dkim.cpp src/dkim.cpp
627 ---- src/dkim.cpp 2008-05-12 20:07:32.000000000 +1000
628 -+++ src/dkim.cpp 2009-04-15 19:38:08.000000000 +1000
629 -@@ -172,7 +172,7 @@
630 - }
631 -
632 -
633 --int DKIM_CALL DKIMVerifyProcess( DKIMContext* pVerifyContext, char* szBuffer, int nBufLength )
634 -+int DKIM_CALL DKIMVerifyProcess( DKIMContext* pVerifyContext, const char* const szBuffer, int nBufLength )
635 - {
636 - CDKIMVerify* pVerify = (CDKIMVerify*)ValidateContext( pVerifyContext, false );
637 -
638 -@@ -226,13 +226,13 @@
639 - }
640 -
641 -
642 --char* DKIM_CALL DKIMVersion()
643 -+const char* DKIM_CALL DKIMVersion()
644 - {
645 - return VERSION_STRING;
646 - }
647 -
648 -
649 --static char* DKIMErrorStrings[-1-DKIM_MAX_ERROR] = {
650 -+static const char* DKIMErrorStrings[-1-DKIM_MAX_ERROR] = {
651 - "DKIM_FAIL",
652 - "DKIM_BAD_SYNTAX",
653 - "DKIM_SIGNATURE_BAD",
654 -@@ -254,7 +254,7 @@
655 - };
656 -
657 -
658 --char* DKIM_CALL DKIMGetErrorString( int ErrorCode )
659 -+const char* DKIM_CALL DKIMGetErrorString( int ErrorCode )
660 - {
661 - if (ErrorCode >= 0 || ErrorCode <= DKIM_MAX_ERROR)
662 - return "Unknown";
663 -diff -ru src/dkim.h src/dkim.h
664 ---- src/dkim.h 2009-04-15 19:37:48.000000000 +1000
665 -+++ src/dkim.h 2009-04-15 19:38:08.000000000 +1000
666 -@@ -155,14 +155,14 @@
667 - void DKIM_CALL DKIMSignFree( DKIMContext* pSignContext );
668 -
669 - int DKIM_CALL DKIMVerifyInit( DKIMContext* pVerifyContext, DKIMVerifyOptions* pOptions );
670 --int DKIM_CALL DKIMVerifyProcess( DKIMContext* pVerifyContext, char* szBuffer, int nBufLength );
671 -+int DKIM_CALL DKIMVerifyProcess( DKIMContext* pVerifyContext, const char* szBuffer, int nBufLength );
672 - int DKIM_CALL DKIMVerifyResults( DKIMContext* pVerifyContext );
673 - int DKIM_CALL DKIMVerifyGetDetails( DKIMContext* pVerifyContext, int* nSigCount, DKIMVerifyDetails** pDetails, char* szPractices );
674 - void DKIM_CALL DKIMVerifyFree( DKIMContext* pVerifyContext );
675 -
676 --char *DKIM_CALL DKIMVersion();
677 -+const char *DKIM_CALL DKIMVersion();
678 -
679 --char *DKIM_CALL DKIMGetErrorString( int ErrorCode );
680 -+const char *DKIM_CALL DKIMGetErrorString( int ErrorCode );
681 -
682 - #ifdef __cplusplus
683 - }
684 -diff -ru src/dkimbase.cpp src/dkimbase.cpp
685 ---- src/dkimbase.cpp 2008-05-12 20:07:36.000000000 +1000
686 -+++ src/dkimbase.cpp 2009-04-15 19:49:32.000000000 +1000
687 -@@ -118,10 +118,10 @@
688 - // Process - split buffers into lines without any CRs or LFs at the end.
689 - //
690 - ////////////////////////////////////////////////////////////////////////////////
691 --int CDKIMBase::Process( char* szBuffer, int nBufLength, bool bEOF )
692 -+int CDKIMBase::Process( const char* szBuffer, int nBufLength, bool bEOF )
693 - {
694 -- char* p = szBuffer;
695 -- char* e = szBuffer + nBufLength;
696 -+ const char* p = szBuffer;
697 -+ const char* e = szBuffer + nBufLength;
698 -
699 - while( p < e )
700 - {
701 -@@ -208,7 +208,8 @@
702 - {
703 - m_InHeaders = false;
704 - ProcessHeaders();
705 -- ProcessBody("", 0, true);
706 -+ /* type conversion should be safe as length is zero */
707 -+ ProcessBody((char *)"", 0, true);
708 - }
709 -
710 - return DKIM_SUCCESS;
711 -@@ -338,9 +339,9 @@
712 -
713 - CompressSWSP(sTemp);
714 -
715 -- unsigned cpos = sTemp.find(':');
716 -+ string::size_type cpos = sTemp.find(':');
717 -
718 -- if (cpos == -1)
719 -+ if (cpos == string::npos)
720 - {
721 - // no colon?!
722 - }
723 -diff -ru src/dkimbase.h src/dkimbase.h
724 ---- src/dkimbase.h 2008-05-12 20:07:24.000000000 +1000
725 -+++ src/dkimbase.h 2009-04-15 19:49:32.000000000 +1000
726 -@@ -41,7 +41,7 @@
727 -
728 - int Init(void);
729 -
730 -- int Process( char* szBuffer, int nBufLength, bool bEOF );
731 -+ int Process( const char* szBuffer, int nBufLength, bool bEOF );
732 - int ProcessFinal(void);
733 -
734 - int Alloc( char*& szBuffer, int nRequiredSize );
735 -diff -ru src/dkimsign.cpp src/dkimsign.cpp
736 ---- src/dkimsign.cpp 2008-05-12 20:07:46.000000000 +1000
737 -+++ src/dkimsign.cpp 2009-04-15 19:49:32.000000000 +1000
738 -@@ -144,7 +144,7 @@
739 -
740 - fwrite( szBuffer, 1, nBufLength, fpdebug );
741 -
742 -- /** END DEBUG CODE **/
743 -+ ** END DEBUG CODE **/
744 -
745 - if( bAllmanOnly )
746 - {
747 -@@ -555,7 +555,7 @@
748 - // if bFold, fold at cbrk char
749 - //
750 - ////////////////////////////////////////////////////////////////////////////////
751 --void CDKIMSign::AddTagToSig( char* Tag, const string &sValue, char cbrk, bool bFold )
752 -+void CDKIMSign::AddTagToSig( const char* const Tag, const string &sValue, char cbrk, bool bFold )
753 - {
754 - int nTagLen = strlen(Tag);
755 -
756 -@@ -583,10 +583,10 @@
757 - // AddTagToSig - add tag and numeric value to signature folding if necessary
758 - //
759 - ////////////////////////////////////////////////////////////////////////////////
760 --void CDKIMSign::AddTagToSig( char* Tag, unsigned long nValue )
761 -+void CDKIMSign::AddTagToSig( const char* const Tag, unsigned long nValue )
762 - {
763 - char szValue[64];
764 -- sprintf( szValue, "%u", nValue );
765 -+ sprintf( szValue, "%lu", nValue );
766 - AddTagToSig( Tag, szValue, 0, false );
767 - }
768 -
769 -@@ -686,7 +686,7 @@
770 - // GetSig - compute hash and return signature header in szSignature
771 - //
772 - ////////////////////////////////////////////////////////////////////////////////
773 --int CDKIMSign::GetSig( char* szPrivKey, char* szSignature, int nSigLength )
774 -+int CDKIMSign::GetSig( char* szPrivKey, char* szSignature, unsigned nSigLength )
775 - {
776 - if( szPrivKey == NULL )
777 - {
778 -@@ -794,7 +794,6 @@
779 - int size;
780 - int len;
781 - char* buf;
782 -- int pos = 0;
783 -
784 - // construct the DKIM-Signature: header and add to hash
785 - InitSig();
786 -@@ -879,7 +878,7 @@
787 - }
788 - BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
789 - BIO_push(b64, bio);
790 -- if (BIO_write(b64, Hash, nHashLen) < nHashLen)
791 -+ if (BIO_write(b64, Hash, nHashLen) < (int)nHashLen)
792 - {
793 - BIO_free_all(b64);
794 - return DKIM_OUT_OF_MEMORY;
795 -@@ -993,7 +992,7 @@
796 - }
797 - BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
798 - BIO_push(b64, bio);
799 -- if (BIO_write(b64, sig, siglen) < siglen)
800 -+ if (BIO_write(b64, sig, siglen) < (int)siglen)
801 - {
802 - OPENSSL_free(sig);
803 - BIO_free_all(b64);
804 -diff -ru src/dkimsign.h src/dkimsign.h
805 ---- src/dkimsign.h 2008-05-12 20:07:58.000000000 +1000
806 -+++ src/dkimsign.h 2009-04-15 19:49:32.000000000 +1000
807 -@@ -32,7 +32,7 @@
808 -
809 - int Init( DKIMSignOptions* pOptions );
810 -
811 -- int GetSig( char* szPrivKey, char* szSignature, int nSigLength );
812 -+ int GetSig( char* szPrivKey, char* szSignature, unsigned nSigLength );
813 - int GetSig2( char* szPrivKey, char** pszSignature );
814 -
815 - virtual int ProcessHeaders(void);
816 -@@ -50,8 +50,8 @@
817 - bool ParseFromAddress( void );
818 -
819 - void InitSig(void);
820 -- void AddTagToSig( char* Tag, const string &sValue, char cbrk, bool bFold );
821 -- void AddTagToSig( char* Tag, unsigned long nValue );
822 -+ void AddTagToSig( const char* const Tag, const string &sValue, char cbrk, bool bFold );
823 -+ void AddTagToSig( const char* const Tag, unsigned long nValue );
824 - void AddInterTagSpace( int nSizeOfNextTag );
825 - void AddFoldedValueToSig( const string &sValue, char cbrk );
826 -
827 -diff -ru src/dkimverify.cpp src/dkimverify.cpp
828 ---- src/dkimverify.cpp 2009-04-15 19:37:48.000000000 +1000
829 -+++ src/dkimverify.cpp 2009-04-15 19:49:32.000000000 +1000
830 -@@ -440,7 +440,7 @@
831 - {
832 - ProcessFinal();
833 -
834 -- int SuccessCount=0;
835 -+ unsigned int SuccessCount=0;
836 - int TestingFailures=0;
837 - int RealFailures=0;
838 -
839 -@@ -646,7 +646,7 @@
840 - /** END DEBUG CODE **/
841 - #endif
842 -
843 -- if (IsBody && BodyLength != -1)
844 -+ if (IsBody && BodyLength != (unsigned)-1)
845 - {
846 - VerifiedBodyCount += nBufLength;
847 - if (VerifiedBodyCount > BodyLength)
848 -@@ -1019,7 +1019,7 @@
849 - // body count
850 - if (values[8] == NULL || !m_HonorBodyLengthTag)
851 - {
852 -- sig.BodyLength = -1;
853 -+ sig.BodyLength = (unsigned)-1;
854 - }
855 - else
856 - {
857 -@@ -1057,17 +1057,17 @@
858 - // expiration time
859 - if (values[11] == NULL)
860 - {
861 -- sig.ExpireTime = -1;
862 -+ sig.ExpireTime = (unsigned)-1;
863 - }
864 - else
865 - {
866 - if (!ParseUnsigned(values[11], &sig.ExpireTime))
867 - return DKIM_BAD_SYNTAX;
868 -
869 -- if (sig.ExpireTime != -1)
870 -+ if (sig.ExpireTime != (unsigned)-1)
871 - {
872 - // the value of x= MUST be greater than the value of t= if both are present
873 -- if (SignedTime != -1 && sig.ExpireTime <= SignedTime)
874 -+ if (SignedTime != (unsigned)-1 && sig.ExpireTime <= SignedTime)
875 - return DKIM_BAD_SYNTAX;
876 -
877 - // todo: if possible, use the received date/time instead of the current time
878 -@@ -1169,7 +1169,7 @@
879 - }
880 -
881 -
882 --SelectorInfo::SelectorInfo(const string &sSelector, const string &sDomain) : Selector(sSelector), Domain(sDomain)
883 -+SelectorInfo::SelectorInfo(const string &sSelector, const string &sDomain) : Domain(sDomain), Selector(sSelector)
884 - {
885 - AllowSHA1 = true;
886 - AllowSHA256 = true;
887 -@@ -1207,7 +1207,7 @@
888 - return DKIM_SELECTOR_INVALID; // todo: maybe create a new error code for unsupported selector version
889 -
890 - // make sure v= is the first tag in the response // todo: maybe don't enforce this, it seems unnecessary
891 -- for (int j=1; j<sizeof(values)/sizeof(values[0]); j++)
892 -+ for (unsigned j=1; j<sizeof(values)/sizeof(values[0]); j++)
893 - {
894 - if (values[j] != NULL && values[j] < values[0])
895 - {
896 -diff -ru src/libdkimtest.cpp src/libdkimtest.cpp
897 ---- src/libdkimtest.cpp 2008-05-12 20:08:54.000000000 +1000
898 -+++ src/libdkimtest.cpp 2009-04-15 19:38:08.000000000 +1000
899 -@@ -60,9 +60,9 @@
900 - int main(int argc, char* argv[])
901 - {
902 - int n;
903 -- char* PrivKeyFile = "test.pem";
904 -- char* MsgFile = "test.msg";
905 -- char* OutFile = "signed.msg";
906 -+ const char* PrivKeyFile = "test.pem";
907 -+ const char* MsgFile = "test.msg";
908 -+ const char* OutFile = "signed.msg";
909 - int nPrivKeyLen;
910 - char PrivKey[2048];
911 - char Buffer[1024];
912
913 diff --git a/mail-filter/libdkim/files/patches/series b/mail-filter/libdkim/files/patches/series
914 deleted file mode 100644
915 index 57acbdb1e7d..00000000000
916 --- a/mail-filter/libdkim/files/patches/series
917 +++ /dev/null
918 @@ -1,2 +0,0 @@
919 -strtok_r.patch
920 -fix_warnings.patch
921
922 diff --git a/mail-filter/libdkim/files/patches/strtok_r.patch b/mail-filter/libdkim/files/patches/strtok_r.patch
923 deleted file mode 100644
924 index 13acc585a07..00000000000
925 --- a/mail-filter/libdkim/files/patches/strtok_r.patch
926 +++ /dev/null
927 @@ -1,119 +0,0 @@
928 -#! /bin/sh /usr/share/dpatch/dpatch-run
929 -## 01_strtok_r.dpatch by Russell Coker <russell@×××××××××.au>
930 -##
931 -## DP: Use strtok_r() instead of strtok().
932 -
933 -@DPATCH@
934 -
935 -diff -ru libdkim-1.0.19/src/dkimverify.cpp libdkim-1.0.19-new/src/dkimverify.cpp
936 ---- src/dkimverify.cpp 2008-05-12 20:08:06.000000000 +1000
937 -+++ src/dkimverify.cpp 2009-06-11 18:28:10.000000000 +1000
938 -@@ -855,6 +855,9 @@
939 - ////////////////////////////////////////////////////////////////////////////////
940 - int CDKIMVerify::ParseDKIMSignature( const string& sHeader, SignatureInfo &sig )
941 - {
942 -+ // for strtok_r()
943 -+ char *saveptr;
944 -+
945 - // save header for later
946 - sig.Header = sHeader;
947 -
948 -@@ -1032,7 +1035,7 @@
949 - {
950 - // make sure "dns" is in the list
951 - bool HasDNS = false;
952 -- char *s = strtok(values[9], ":");
953 -+ char *s = strtok_r(values[9], ":", &saveptr);
954 - while (s != NULL)
955 - {
956 - if (strncmp(s, "dns", 3) == 0 && (s[3] == '\0' || s[3] == '/'))
957 -@@ -1040,7 +1043,7 @@
958 - HasDNS = true;
959 - break;
960 - }
961 -- s = strtok(NULL, ": \t");
962 -+ s = strtok_r(NULL, ": \t", &saveptr);
963 - }
964 - if (!HasDNS)
965 - return DKIM_BAD_SYNTAX; // todo: maybe create a new error code for unknown query method
966 -@@ -1080,7 +1083,7 @@
967 - // parse the signed headers list
968 - bool HasFrom = false, HasSubject = false;
969 - RemoveSWSP(values[4]); // header names shouldn't have spaces in them so this should be ok...
970 -- char *s = strtok(values[4], ":");
971 -+ char *s = strtok_r(values[4], ":", &saveptr);
972 - while (s != NULL)
973 - {
974 - if (_stricmp(s, "From") == 0)
975 -@@ -1090,7 +1093,7 @@
976 -
977 - sig.SignedHeaders.push_back(s);
978 -
979 -- s = strtok(NULL, ":");
980 -+ s = strtok_r(NULL, ":", &saveptr);
981 - }
982 -
983 - if (!HasFrom)
984 -@@ -1194,6 +1197,9 @@
985 - ////////////////////////////////////////////////////////////////////////////////
986 - int SelectorInfo::Parse( char* Buffer )
987 - {
988 -+ // for strtok_r()
989 -+ char *saveptr;
990 -+
991 - static const char *tags[] = {"v","g","h","k","p","s","t","n",NULL};
992 - char *values[sizeof(tags)/sizeof(tags[0])] = {NULL};
993 -
994 -@@ -1235,14 +1241,14 @@
995 - else
996 - {
997 - // MUST include "sha1" or "sha256"
998 -- char *s = strtok(values[2], ":");
999 -+ char *s = strtok_r(values[2], ":", &saveptr);
1000 - while (s != NULL)
1001 - {
1002 - if (strcmp(s, "sha1") == 0)
1003 - AllowSHA1 = true;
1004 - else if (strcmp(s, "sha256") == 0)
1005 - AllowSHA256 = true;
1006 -- s = strtok(NULL, ":");
1007 -+ s = strtok_r(NULL, ":", &saveptr);
1008 - }
1009 - if ( !(AllowSHA1 || AllowSHA256) )
1010 - return DKIM_SELECTOR_INVALID; // todo: maybe create a new error code for unsupported hash algorithm
1011 -@@ -1261,7 +1267,7 @@
1012 - {
1013 - // make sure "*" or "email" is in the list
1014 - bool ServiceTypeMatch = false;
1015 -- char *s = strtok(values[5], ":");
1016 -+ char *s = strtok_r(values[5], ":", &saveptr);
1017 - while (s != NULL)
1018 - {
1019 - if (strcmp(s, "*") == 0 || strcmp(s, "email") == 0)
1020 -@@ -1269,7 +1275,7 @@
1021 - ServiceTypeMatch = true;
1022 - break;
1023 - }
1024 -- s = strtok(NULL, ":");
1025 -+ s = strtok_r(NULL, ":", &saveptr);
1026 - }
1027 - if (!ServiceTypeMatch)
1028 - return DKIM_SELECTOR_INVALID;
1029 -@@ -1278,7 +1284,7 @@
1030 - // flags
1031 - if (values[6] != NULL)
1032 - {
1033 -- char *s = strtok(values[6], ":");
1034 -+ char *s = strtok_r(values[6], ":", &saveptr);
1035 - while (s != NULL)
1036 - {
1037 - if (strcmp(s, "y") == 0)
1038 -@@ -1289,7 +1295,7 @@
1039 - {
1040 - SameDomain = true;
1041 - }
1042 -- s = strtok(NULL, ":");
1043 -+ s = strtok_r(NULL, ":", &saveptr);
1044 - }
1045 - }
1046 -
1047
1048 diff --git a/mail-filter/libdkim/libdkim-1.0.21-r3.ebuild b/mail-filter/libdkim/libdkim-1.0.21-r3.ebuild
1049 deleted file mode 100644
1050 index d6a2a309bf8..00000000000
1051 --- a/mail-filter/libdkim/libdkim-1.0.21-r3.ebuild
1052 +++ /dev/null
1053 @@ -1,54 +0,0 @@
1054 -# Copyright 1999-2019 Gentoo Authors
1055 -# Distributed under the terms of the GNU General Public License v2
1056 -
1057 -EAPI="5"
1058 -
1059 -AUTOTOOLS_AUTORECONF=1
1060 -AUTOTOOLS_IN_SOURCE_BUILD=1
1061 -
1062 -inherit autotools-utils eutils toolchain-funcs
1063 -
1064 -DESCRIPTION="DomainKeys Identified Mail library from Alt-N Inc"
1065 -HOMEPAGE="http://libdkim.sourceforge.net"
1066 -SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
1067 -
1068 -LICENSE="Apache-2.0 yahoo-patent-license-1.2"
1069 -SLOT="0"
1070 -KEYWORDS="amd64 x86"
1071 -IUSE="libressl static-libs"
1072 -
1073 -DEPEND="
1074 - !libressl? ( dev-libs/openssl:0= )
1075 - libressl? ( dev-libs/libressl )
1076 - app-arch/unzip"
1077 -RDEPEND="
1078 - !mail-filter/libdkim-exim
1079 - dev-libs/openssl"
1080 -
1081 -S="${WORKDIR}/${PN}/src"
1082 -
1083 -src_prepare() {
1084 - ecvs_clean
1085 - cp "${FILESDIR}"/debianize/* "${S}" || die
1086 - epatch "${FILESDIR}"/patches/*.patch
1087 - epatch "${FILESDIR}"/libdkim-extra-options.patch
1088 - epatch "${FILESDIR}"/${P}-gcc6.patch
1089 -
1090 - # Bug 476772
1091 - if ! use static-libs; then
1092 - sed -i \
1093 - -e '/^TARGETS/s/libdkim.a//' \
1094 - -e '/install -m 644 libdkim.a/d' \
1095 - Makefile.in || die 'sed on Makefile.in failed'
1096 - fi
1097 -
1098 - # Bug 476770
1099 - tc-export AR
1100 -
1101 - autotools-utils_src_prepare
1102 -}
1103 -
1104 -src_install() {
1105 - autotools-utils_src_install
1106 - dodoc ../README
1107 -}
1108
1109 diff --git a/mail-filter/libdkim/libdkim-1.0.21-r4.ebuild b/mail-filter/libdkim/libdkim-1.0.21-r4.ebuild
1110 deleted file mode 100644
1111 index 9c1009fae2b..00000000000
1112 --- a/mail-filter/libdkim/libdkim-1.0.21-r4.ebuild
1113 +++ /dev/null
1114 @@ -1,53 +0,0 @@
1115 -# Copyright 1999-2018 Gentoo Foundation
1116 -# Distributed under the terms of the GNU General Public License v2
1117 -
1118 -EAPI=6
1119 -inherit autotools toolchain-funcs vcs-clean
1120 -
1121 -DESCRIPTION="DomainKeys Identified Mail library from Alt-N Inc"
1122 -HOMEPAGE="http://libdkim.sourceforge.net"
1123 -SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
1124 -
1125 -LICENSE="Apache-2.0 yahoo-patent-license-1.2"
1126 -SLOT="0"
1127 -KEYWORDS="~amd64 ~x86"
1128 -IUSE="libressl static-libs"
1129 -
1130 -RDEPEND="
1131 - !libressl? ( dev-libs/openssl:0= )
1132 - libressl? ( dev-libs/libressl:0= )
1133 - !mail-filter/libdkim-exim
1134 -"
1135 -DEPEND="${RDEPEND}
1136 - app-arch/unzip
1137 -"
1138 -
1139 -S="${WORKDIR}/${PN}/src"
1140 -
1141 -src_prepare() {
1142 - default
1143 -
1144 - ecvs_clean
1145 - cp "${FILESDIR}"/debianize/* "${S}" || die
1146 - eapply "${FILESDIR}"/patches/*.patch
1147 - eapply "${FILESDIR}"/libdkim-extra-options-r1.patch
1148 - eapply "${FILESDIR}"/${P}-gcc6.patch
1149 -
1150 - # Bug 476772
1151 - if ! use static-libs; then
1152 - sed -i \
1153 - -e '/^TARGETS/s/libdkim.a//' \
1154 - -e '/install -m 644 libdkim.a/d' \
1155 - Makefile.in || die 'sed on Makefile.in failed'
1156 - fi
1157 -
1158 - # Bug 476770
1159 - tc-export AR
1160 -
1161 - eautoreconf
1162 -}
1163 -
1164 -src_install() {
1165 - default
1166 - dodoc ../README
1167 -}
1168
1169 diff --git a/mail-filter/libdkim/metadata.xml b/mail-filter/libdkim/metadata.xml
1170 deleted file mode 100644
1171 index f5f607de0d0..00000000000
1172 --- a/mail-filter/libdkim/metadata.xml
1173 +++ /dev/null
1174 @@ -1,8 +0,0 @@
1175 -<?xml version="1.0" encoding="UTF-8"?>
1176 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1177 -<pkgmetadata>
1178 - <!-- maintainer-needed -->
1179 - <upstream>
1180 - <remote-id type="sourceforge">libdkim</remote-id>
1181 - </upstream>
1182 -</pkgmetadata>
1183
1184 diff --git a/profiles/package.mask b/profiles/package.mask
1185 index d4721863620..80a725dc004 100644
1186 --- a/profiles/package.mask
1187 +++ b/profiles/package.mask
1188 @@ -611,7 +611,6 @@ x11-libs/hippo-canvas
1189 # games-util/gtkevemon: #675988, upstream API shut down
1190 # mail-client/nail: #676008, last commit in 2010, also #508480
1191 # mail-client/nmh: #676938, needs bump, 2014, also #676938, #680596
1192 -# mail-filter/libdkim: #674892, no revdeps, last release in 2010
1193 #
1194 # Removal in 30 days.
1195 app-crypt/keynote
1196 @@ -620,7 +619,6 @@ dev-util/wsta
1197 games-util/gtkevemon
1198 mail-client/nail
1199 mail-client/nmh
1200 -mail-filter/libdkim
1201
1202 # Miroslav Šulc <fordfrog@g.o> (19 Mar 2019)
1203 # Depends on >=virtual/{jdk,jre}-11 which is masked