ports/60585: ZMailer 2.99.56 is available, can be compiled for 5.x
Seva Gluschenko
gvs at rinet.ru
Fri Dec 26 10:00:30 UTC 2003
>Number: 60585
>Category: ports
>Synopsis: ZMailer 2.99.56 is available, can be compiled for 5.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 26 02:00:27 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Seva Gluschenko
>Release: FreeBSD 5.2-RC i386
>Organization:
Yandex LLC
>Environment:
System: FreeBSD developer.yandex.ru 5.2-RC FreeBSD 5.2-RC #0: Wed Dec 24 12:27:38 MSK 2003 root at developer.yandex.ru:/usr/obj/usr/src/sys/DEVEL i386
>Description:
The mail/zmailer port is marked as broken for FreeBSD 5.x, port version
stands for 2.99.51. The current version available is 2.99.56 and it can
be compiled for FreeBSD 5.x turning off the bundled resolver (why using
it at all? It might be exploitable to known vulnerabilities!) and
patching a little.
Accordingly, files/patch-* are obsoleted, two new patches are introduced.
>How-To-Repeat:
>Fix:
This message contains 3 patches, two of them should be placed to
files/ directory of mail/zmailer port and third applied to current
Makefile and pkg-message.
This is a files/patch-configure:
--- configure.orig Fri Dec 26 10:29:15 2003
+++ configure Fri Dec 26 10:33:26 2003
@@ -280,6 +280,7 @@
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
+#include <sys/param.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
@@ -20317,7 +20318,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/mount.h>
#include <sys/fs_types.h>
int
@@ -20493,6 +20494,7 @@
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <sys/param.h>
#include <sys/mount.h>
_ACEOF
@@ -20539,6 +20541,7 @@
/* end confdefs.h. */
#include <sys/fs_types.h>
+#include <sys/param.h>
#include <sys/mount.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
This is files/patch-getmxrr.c
--- transports/smtp/getmxrr.c.orig Mon Jun 23 12:04:35 2003
+++ transports/smtp/getmxrr.c Fri Dec 26 11:30:58 2003
@@ -416,7 +416,6 @@
break;
case EAI_NONAME:
case EAI_FAIL:
- case EAI_NODATA:
case EAI_SERVICE:
default:
break;
And further the patch for mail/zmailer port itself follows.
How to apply:
cd /usr/ports/mail/zmailer
extract patches above in this message to files/patch-configure
and files/patch-getmxrr.c respectively.
apply patch below:
patch < /path/to/the/patch/below
--- Makefile.orig Fri Dec 26 10:15:11 2003
+++ Makefile Fri Dec 26 11:12:26 2003
@@ -6,7 +6,7 @@
#
PORTNAME= zmailer
-PORTVERSION= 2.99.51
+PORTVERSION= 2.99.56
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.funet.fi/pub/unix/mail/zmailer/src/
@@ -26,12 +26,11 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
-.endif
+#.if ${OSVERSION} >= 500113
+#BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
+#.endif
CONFIGURE_ARGS+= --prefix=${PREFIX}/ \
- --with-bundled-libresolv \
--with-mailbin=${PREFIX}/sbin \
--with-mailbox=/var/mail \
--with-logdir=/var/log/mail \
--- pkg-message.orig Mon Aug 30 07:17:27 1999
+++ pkg-message Fri Dec 26 11:40:49 2003
@@ -8,7 +8,7 @@
prepare ZMailer for operation, use the provided post-install script as
follows:
- sh @PREFIX@/sbin/post-install
+ @PREFIX@/sbin/post-install
This will initialize your configuration files and build an initial policy
database.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list