This is an ebuild for libdkim with patches already applied by exim developers so that exim can use this library to support dkim. http://wiki.exim.org/DKIM Reproducible: Always
Created attachment 140933 [details] The new ebuild.
Created attachment 148139 [details] ebuild for the new version new ebuild for the new version.
Created attachment 148142 [details, diff] a patch to improve the upstream makefile this patch improves the upstream makefile.
ebuild and patch can be taken as they are for the version 1.0.17 of libdkim.
Created attachment 182501 [details, diff] updated Makefile patch Updates Makefile patch to compile under openssl 0.9.8j. Unsets OPENSSL_FIPS as FIPS is not included in OpenSSL 0.9.8.
Created attachment 184854 [details] New ebuild after cleaning up with help of the Gentoo Sunrise team (idl0r). Also version bump.
Created attachment 184856 [details, diff] Updates to makefile patch with help from Gentoo Sunrise team (idl0r)
Created attachment 184859 [details, diff] Additional patch needed by 1.0.17 ebuild
This is now in the sunrise overlay. Once it is reviewed, you can find it at: http://overlays.gentoo.org/proj/sunrise/browser/reviewed/mail-filter/libdkim-exim Until then, you can find it at: http://overlays.gentoo.org/proj/sunrise/browser/sunrise/mail-filter/libdkim-exim
sunrise ebuild looks ok, I wonder if one can get around the makefile patch with some extra calls from the ebuild though.
You might also try looking at the ebuild in bug #262919. It sources the libdkim library directly. It still requires some patching but patches are applied directly to libdkim source rather than to the exim fork.
As of version 4.70, Exim has native support for DKIM and doesn't need an external library like libdkim(-exim) any more. There is already a request for the inclusion of Exim 4.70/4.71 into the portage tree, see bug #293982.
exim-4.71 has just entered the tree, making a separate package unnecessary per comment #12