summaryrefslogtreecommitdiff
path: root/recipes/fetchmail
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/fetchmail
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/fetchmail')
-rw-r--r--recipes/fetchmail/fetchmail-6.3.8/CVE-2007-4565.patch11
-rw-r--r--recipes/fetchmail/fetchmail/configure.patch159
-rw-r--r--recipes/fetchmail/fetchmail_6.2.3.bb17
-rw-r--r--recipes/fetchmail/fetchmail_6.2.5.bb23
-rw-r--r--recipes/fetchmail/fetchmail_6.3.8.bb20
5 files changed, 230 insertions, 0 deletions
diff --git a/recipes/fetchmail/fetchmail-6.3.8/CVE-2007-4565.patch b/recipes/fetchmail/fetchmail-6.3.8/CVE-2007-4565.patch
new file mode 100644
index 0000000000..d0926848c2
--- /dev/null
+++ b/recipes/fetchmail/fetchmail-6.3.8/CVE-2007-4565.patch
@@ -0,0 +1,11 @@
+--- fetchmail-6.3.8-orig/sink.c
++++ fetchmail-6.3.8/sink.c
+@@ -262,7 +262,7 @@
+ const char *md1 = "MAILER-DAEMON", *md2 = "MAILER-DAEMON@";
+
+ /* don't bounce in reply to undeliverable bounces */
+- if (!msg->return_path[0] ||
++ if (!msg || !msg->return_path[0] ||
+ strcmp(msg->return_path, "<>") == 0 ||
+ strcasecmp(msg->return_path, md1) == 0 ||
+ strncasecmp(msg->return_path, md2, strlen(md2)) == 0)
diff --git a/recipes/fetchmail/fetchmail/configure.patch b/recipes/fetchmail/fetchmail/configure.patch
new file mode 100644
index 0000000000..e060b9861a
--- /dev/null
+++ b/recipes/fetchmail/fetchmail/configure.patch
@@ -0,0 +1,159 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- fetchmail-6.2.3/configure.in~configure
++++ fetchmail-6.2.3/configure.in
+@@ -4,7 +4,7 @@
+ dnl Process this file with autoconf to produce a configure script.
+ dnl
+
+-AC_INIT([fetchmail], [6.1.2])
++AC_INIT([fetchmail],[6.1.2])
+ AC_CONFIG_SRCDIR([fetchmail.h])
+ AC_CONFIG_HEADERS([config.h])
+
+@@ -155,27 +155,20 @@
+
+ dnl Check for usable void pointer type
+ AC_MSG_CHECKING(use of void pointer type)
+-AC_TRY_COMPILE([],
+- [char *p;
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[char *p;
+ void *xmalloc();
+ p = (char *) xmalloc(1);
+- ],
+- [AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],
+- AC_MSG_RESULT(no))
++ ]])],[AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+
+ dnl Check for ANSI volatile
+ AC_MSG_CHECKING(for ANSI volatile)
+-AC_TRY_COMPILE([],
+- [volatile int n;],
+- [AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],
+- AC_MSG_RESULT(no))
++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int n;]])],[AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+
+ dnl Check out the wait reality. We have to assume sys/wait.h is present.
+ AC_CHECK_FUNCS(waitpid wait3)
+ AC_MSG_CHECKING(for union wait);
+-AC_TRY_LINK([#include <sys/types.h>
+-#include <sys/wait.h>],
+- [union wait status; int pid; pid = wait (&status);
++AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
++#include <sys/wait.h>]], [[union wait status; int pid; pid = wait (&status);
+ #ifdef WEXITSTATUS
+ /* Some POSIXoid systems have both the new-style macros and the old
+ union wait type, and they do not work together. If union wait
+@@ -186,18 +179,14 @@
+ /* Make sure union wait works with waitpid. */
+ pid = waitpid (-1, &status, 0);
+ #endif
+-],
+- [AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],
+- AC_MSG_RESULT(no))
++]])],[AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+
+ AC_MSG_CHECKING(sys_siglist declaration in signal.h or unistd.h)
+-AC_TRY_LINK([#include <signal.h>
++AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>
+ /* NetBSD declares sys_siglist in <unistd.h>. */
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+-#endif], [char *msg = *(sys_siglist + 1);],
+- [AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],
+- AC_MSG_RESULT(no))
++#endif]], [[char *msg = *(sys_siglist + 1);]])],[AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
+
+ # Find the right directory to put the root-mode PID file in
+ for dir in "/var/run" "/etc"
+@@ -264,21 +253,21 @@
+
+ case "$enable_fallback" in
+ sendmail) if test -z "$sendmail" ; then
+- AC_ERROR([Sendmail selected as fallback, but not found])
++ AC_MSG_ERROR([Sendmail selected as fallback, but not found])
+ #not reached
+ fi
+ AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$sendmail -i %T")
+ echo "Will use $sendmail as fallback MDA."
+ ;;
+ procmail) if test -z "$procmail" ; then
+- AC_ERROR([procmail selected as fallback, but not found])
++ AC_MSG_ERROR([procmail selected as fallback, but not found])
+ #not reached
+ fi
+ AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$procmail -d %T")
+ echo "Will use $procmail as fallback MDA."
+ ;;
+ maildrop) if test -z "$maildrop" ; then
+- AC_ERROR([maildrop selected as fallback, but not found])
++ AC_MSG_ERROR([maildrop selected as fallback, but not found])
+ #not reached
+ fi
+ AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$maildrop -d %T")
+@@ -294,7 +283,7 @@
+ echo "for automatic fallback MDA configuration for reliability reasons."
+ fi
+ ;;
+- *) AC_ERROR([unkown value for --enable-fallback given: $enable_fallback])
++ *) AC_MSG_ERROR([unkown value for --enable-fallback given: $enable_fallback])
+ #notreached
+ ;;
+ esac
+@@ -429,7 +418,7 @@
+ # Check for a OpenBSD special case
+ if test "$with_kerberos5" = "yes" && ( test `uname` = "OpenBSD" )
+ then
+- AC_CHECKING([kerberosV for OpenBSD])
++ AS_MESSAGE(checking kerberosV for OpenBSD...)
+ AC_DEFINE(HEIMDAL)
+ AC_DEFINE(KERBEROS_V5)
+ CEFLAGS="$CEFLAGS -I/usr/include/kerberosV"
+@@ -458,7 +447,7 @@
+ ${LDEFLAGS})
+ AC_CHECK_LIB(des, des_string_to_key, libk5crypto=-ldes,
+ AC_CHECK_LIB(ssl, MD5_Init, [],
+- AC_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
++ AC_MSG_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
+ ${LDEFLAGS} ${ac_krblibs}),
+ ${LDEFLAGS} ${ac_krblibs})
+ AC_DEFINE(HEIMDAL)
+@@ -471,7 +460,7 @@
+ AC_CHECK_LIB(k5crypto,
+ krb5_des_string_to_key,
+ libk5crypto=-lk5crypto,
+- AC_ERROR([Kerberos 5 DES libraries not found]),
++ AC_MSG_ERROR([Kerberos 5 DES libraries not found]),
+ ${LDEFLAGS} ${ac_krblibs}),
+ ${LDEFLAGS} ${ac_krblibs})
+ fi
+@@ -489,7 +478,7 @@
+ fi
+ done
+ if test -z "$with_kerberos5" ; then
+- AC_ERROR([Kerberos 5 libraries not found])
++ AC_MSG_ERROR([Kerberos 5 libraries not found])
+ fi
+ fi
+ fi
+@@ -505,7 +494,7 @@
+ # Check for a NetBSD/OpenBSD special case
+ if test "$with_kerberos" = "yes" && ( test `uname` = "NetBSD" || test `uname` = "OpenBSD" )
+ then
+- AC_CHECKING([kerberosIV for `uname`])
++ AS_MESSAGE(checking kerberosIV for `uname`...)
+ AC_DEFINE(KERBEROS_V4)
+ CEFLAGS="$CEFLAGS -I/usr/include/kerberosIV"
+ LIBS="$LIBS -lkrb -ldes"
+@@ -550,7 +539,7 @@
+ break
+ done
+ if test -z "$with_kerberos" ; then
+- AC_ERROR([Kerberos 4 libraries not found])
++ AC_MSG_ERROR([Kerberos 4 libraries not found])
+ fi
+ LDFLAGS="$ac_saveLDFLAGS"
+ fi
diff --git a/recipes/fetchmail/fetchmail_6.2.3.bb b/recipes/fetchmail/fetchmail_6.2.3.bb
new file mode 100644
index 0000000000..723e03b298
--- /dev/null
+++ b/recipes/fetchmail/fetchmail_6.2.3.bb
@@ -0,0 +1,17 @@
+SECTION = "console/network"
+LICENSE = "GPL"
+DESCRIPTION = "Fetchmail is a free, full-featured, robust, \
+well-documented remote-mail retrieval and forwarding utility \
+intended to be used over on-demand TCP/IP links \
+(such as SLIP or PPP connections)."
+
+SRC_URI = "http://catb.org/~esr/fetchmail/fetchmail-${PV}.tar.gz \
+ file://configure.patch;patch=1"
+
+inherit autotools
+
+do_configure_prepend () {
+ if [ ! -e acinclude.m4 ]; then
+ cat aclocal.m4 > acinclude.m4
+ fi
+}
diff --git a/recipes/fetchmail/fetchmail_6.2.5.bb b/recipes/fetchmail/fetchmail_6.2.5.bb
new file mode 100644
index 0000000000..89df7fe017
--- /dev/null
+++ b/recipes/fetchmail/fetchmail_6.2.5.bb
@@ -0,0 +1,23 @@
+PR = "r2"
+SECTION = "console/network"
+LICENSE = "GPL"
+DESCRIPTION = "Fetchmail is a free, full-featured, robust, \
+well-documented remote-mail retrieval and forwarding utility \
+intended to be used over on-demand TCP/IP links \
+(such as SLIP or PPP connections)."
+#NOTE: by default configure sets --enable-nls and this pulls in
+# libintl.h in the compile. gettext disables NLS if USE_NLS=no
+# and will remove libintl from DEPENDS, the following line should
+# be uncommmented after testing on a system with USE_NLS=yes
+#DEPENDS = "virtual/libintl"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/f/${PN}/${PN}_${PV}.orig.tar.gz \
+ file://configure.patch;patch=1"
+
+inherit autotools gettext
+
+do_configure_prepend () {
+ if [ ! -e acinclude.m4 ]; then
+ cat aclocal.m4 > acinclude.m4
+ fi
+}
diff --git a/recipes/fetchmail/fetchmail_6.3.8.bb b/recipes/fetchmail/fetchmail_6.3.8.bb
new file mode 100644
index 0000000000..9b789aae25
--- /dev/null
+++ b/recipes/fetchmail/fetchmail_6.3.8.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "Fetchmail is a free, full-featured, robust, \
+well-documented remote-mail retrieval and forwarding utility \
+intended to be used over on-demand TCP/IP links \
+(such as SLIP or PPP connections)."
+SECTION = "console/network"
+
+LICENSE = "GPL"
+
+PR = "r2"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/f/${PN}/${PN}_${PV}.orig.tar.gz \
+ file://CVE-2007-4565.patch;patch=1 \
+ "
+
+inherit autotools gettext
+
+FILES_${PN} = "${bindir}/fetchmail"
+PACKAGES += "${PN}conf"
+FILES_${PN}conf = "${libdir}/python2.5/site-packages/fetchmailconf.py* ${bindir}/fetchmailconf"
+rdepends_${PN}conf = "${PN}"