diff --git a/mail/libdomainkeys/Makefile.patch b/mail/libdomainkeys/Makefile.patch new file mode 100644 index 000000000..99d320b32 --- /dev/null +++ b/mail/libdomainkeys/Makefile.patch @@ -0,0 +1,26 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libdomainkeys/Makefile.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./Makefile.orig 2006-01-18 02:28:58.000000000 +0200 ++++ ./Makefile 2009-10-15 17:15:00.000000000 +0300 +@@ -3,7 +3,7 @@ + #CFLAGS += -DDK_DEBUG -DDK_HASH_BUFF -Wall + #CFLAGS += -DUNIXWARE + INCS=-I. +-LIBS=-L. -ldomainkeys -lcrypto ++LIBS=-L. -ldomainkeys -lcrypto -lresolv + MAKE=make + diff --git a/mail/libdomainkeys/libdomainkeys-dknewkey.patch b/mail/libdomainkeys/libdomainkeys-dknewkey.patch new file mode 100644 index 000000000..bb4c29811 --- /dev/null +++ b/mail/libdomainkeys/libdomainkeys-dknewkey.patch @@ -0,0 +1,42 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libdomainkeys/libdomainkeys-dknewkey.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ../libdomainkeys-0.66/dknewkey 2005-04-08 22:35:58.000000000 +0300 ++++ ./dknewkey 2005-06-25 19:45:11.000000000 +0300 +@@ -1,13 +1,18 @@ + #!/bin/sh + + BITS=384 ++if [ -z "$1" ]; then ++ echo >&2 "Usage: dknewkey keyfile [bits]" ++ exit 1 ++fi ++tmpfile=$(mktemp ${TMPDIR:-/tmp}/dknewkeyXXXXXX) || exit 1 + if test -n "$2"; then BITS=$2; fi + + openssl genrsa -out $1 $BITS 2>/dev/null +-openssl rsa -in $1 -out /tmp/dknewkey.$$ -pubout -outform PEM 2>/dev/null +-if test -f /usr/local/bin/tinydns-data; then +- printf "'%s._domainkey.example.com:k=rsa; p=%s\n" `basename $1` `grep -v ^-- /tmp/dknewkey.$$ | tr -d '\n'` ++openssl rsa -in $1 -out $tmpfile -pubout -outform PEM 2>/dev/null ++if test -f /usr/bin/tinydns-data; then ++ printf "'%s._domainkey.example.com:k=rsa; p=%s\n" `basename -- $1` `grep -v ^-- $tmpfile | tr -d '\n'` + else +- printf "%s._domainkey\tIN\tTXT\t\"k=rsa; p=%s\"\n" `basename $1` `grep -v ^-- /tmp/dknewkey.$$ | tr -d '\n'` ++ printf "%s._domainkey\tIN\tTXT\t\"k=rsa; p=%s\"\n" `basename -- $1` `grep -v ^-- $tmpfile | tr -d '\n'` + fi +-rm -f /tmp/dknewkey.$$ ++rm -f $tmpfile diff --git a/mail/libdomainkeys/libdomainkeys-segv.patch b/mail/libdomainkeys/libdomainkeys-segv.patch new file mode 100644 index 000000000..4ffd1889b --- /dev/null +++ b/mail/libdomainkeys/libdomainkeys-segv.patch @@ -0,0 +1,39 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libdomainkeys/libdomainkeys-segv.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +diff -urN libdomainkeys-0.66.org/domainkeys.c libdomainkeys-0.66/domainkeys.c +--- libdomainkeys-0.66.org/domainkeys.c 2005-06-21 04:55:39.000000000 +0200 ++++ libdomainkeys-0.66/domainkeys.c 2005-06-25 17:04:10.498813408 +0200 +@@ -1384,11 +1384,14 @@ + } + if (s && *s && s[1] && s[1] != '@') + { +- s = strchr(s, '@') + 1; +- if (*s == '\0') +- { +- //make sure we have an actual domain after @ +- s = NULL; ++ s = strchr(s, '@'); ++ if (s) { ++ s += 1; ++ if (*s == '\0') ++ { ++ //make sure we have an actual domain after @ ++ s = NULL; ++ } + } + } + else diff --git a/mail/libdomainkeys/libdomainkeys.cache b/mail/libdomainkeys/libdomainkeys.cache new file mode 100644 index 000000000..7dd344faf --- /dev/null +++ b/mail/libdomainkeys/libdomainkeys.cache @@ -0,0 +1,23 @@ + +[TIMESTAMP] 1255620133 Thu Oct 15 18:22:13 2009 +[BUILDTIME] 0 (5) +[SIZE] 0.01 MB, 7 files + +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] findutils +[DEP] gawk +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] make +[DEP] openssl +[DEP] patch +[DEP] runit +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/mail/libdomainkeys/libdomainkeys.conf b/mail/libdomainkeys/libdomainkeys.conf new file mode 100644 index 000000000..226c0053e --- /dev/null +++ b/mail/libdomainkeys/libdomainkeys.conf @@ -0,0 +1,22 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libdomainkeys/libdomainkeys.conf +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +makeinstopt= + +libdomainkeys_install() { + install -m 755 dknewkey $bindir + install -m 644 libdomainkeys.a $libdir + +} +hook_add postmake 5 "libdomainkeys_install" diff --git a/mail/libdomainkeys/libdomainkeys.desc b/mail/libdomainkeys/libdomainkeys.desc new file mode 100644 index 000000000..295eb566d --- /dev/null +++ b/mail/libdomainkeys/libdomainkeys.desc @@ -0,0 +1,37 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../libdomainkeys/libdomainkeys.desc +[COPY] Copyright (C) 2009 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A DomainKeys implementation in C + +[T] The purpose of this project is to create a freely available library +[T] that can be easily adopted by most MTA and UA implementers to add DomainKeys +[T] functionality. DKIM is the Standards Track RFC for email authentication. +[T] DKIM.org is maintained suporting the adoption of DomainKeys Identified Mail. +[T] The DomainKeys Library was written in C and provided a foundation for +[T] implementing the DomainKeys email authentication system in mail transfer +[T] agents and mail user agents. + +[U] http://domainkeys.sourceforge.net + +[A] Yahoo +[M] Nagy Karoly Gabriel + +[C] extra/library + +[L] OpenSource +[S] Stable +[V] 0.69 +[P] X -----5---9 800.000 + +[D] 2119417134 libdomainkeys-0.69.tar.gz http://dl.sourceforge.net/domainkeys/