Hello,

More information and report about building on Linux. Making RHEL5 build, I
use this patch:

-------------- < cut here > --------------
Fix RHEL5 build parameters
--- opensmtpd-5.3.3p1/smtpd/Makefile.am    2013-06-04 14:13:28.000000000
+0600
+++ opensmtpd-5.3.3p1/smtpd/Makefile.am    2013-06-09 21:07:12.000000000
+0600
@@ -21,7 +21,9 @@
 # /usr/local/sbin/smtpd

 sbin_PROGRAMS=        smtpd smtpctl
+pkglibexecdir=        $(libexecdir)/@PACKAGE@
 pkglibexec_PROGRAMS=    makemap
+MKDIR_P=        $(mkdir_p)

 makemap_SOURCES=    parse.y makemap.c aliases.c expand.c log.c util.c    \
             table.c    dict.c tree.c to.c
--- opensmtpd-5.3.3p1/regress/bin/Makefile.am    2013-06-04
14:13:28.000000000 +0600
+++ opensmtpd-5.3.3p1/regress/bin/Makefile.am    2013-06-09
21:07:31.000000000 +0600
@@ -13,6 +13,8 @@

 LDADD=            $(LIBCOMPAT)

+MKDIR_P=        $(mkdir_p)
+
 # need to define _GNU_SOURCE to get:
 # EAI_NODATA defined
 # {v,}asprintf
--- opensmtpd-5.3.3p1/smtpd/ssl.c    2013-06-04 14:13:28.000000000 +0600
+++ opensmtpd-5.3.3p1/smtpd/ssl.c    2013-06-09 21:08:47.000000000 +0600
@@ -227,7 +227,7 @@
     SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);
     SSL_CTX_set_timeout(ctx, SSL_SESSION_TIMEOUT);
     SSL_CTX_set_options(ctx,
-        SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_TICKET);
+        SSL_OP_ALL | SSL_OP_NO_SSLv2);
     SSL_CTX_set_options(ctx,
         SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);

--- opensmtpd-5.3.3p1/contrib/lib/libc/asr/asr_debug.c    2013-06-04
14:13:28.000000000 +0600
+++ opensmtpd-5.3.3p1/contrib/lib/libc/asr/asr_debug.c    2013-06-09
21:09:02.000000000 +0600
@@ -286,8 +286,6 @@
     PRINTOPT(RES_STAYOPEN, "STAYOPEN");
     PRINTOPT(RES_DNSRCH, "DNSRCH");
     PRINTOPT(RES_NOALIASES, "NOALIASES");
-    PRINTOPT(RES_USE_EDNS0, "USE_EDNS0");
-    PRINTOPT(RES_USE_DNSSEC, "USE_DNSSEC");
     if (o)
         fprintf(f, " 0x%08x", o);
     fprintf(f, "\n");
--- opensmtpd-5.3.3p1/regress/bin/ssl.c    2013-06-04 14:13:28.000000000
+0600
+++ opensmtpd-5.3.3p1/regress/bin/ssl.c    2013-06-09 21:09:24.000000000
+0600
@@ -126,7 +126,7 @@
     SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);
     SSL_CTX_set_timeout(ctx, 30);
     SSL_CTX_set_options(ctx,
-        SSL_OP_ALL | SSL_OP_NO_SSLv2 | SSL_OP_NO_TICKET);
+        SSL_OP_ALL | SSL_OP_NO_SSLv2);
     SSL_CTX_set_options(ctx,
         SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
-------------- < cut here > --------------

It's all needed for RHEL/Centos version 5 only. It doesn't have DNSSEC in
glibc resolver, some automake variables, and there is no SSL_OP_NO_TICKET
in openssl-0.9.8.
For RHEL6 and Fedora (tested on 18) it builds just fine without any
modifications.

Now, I'm preparing RPM for RHEL-based systems because the existing ones
available in the Internet aren't good at all. The spec and packages will be
available soon.
They'll be also available in Repoforge (DAG's repository) shortly, since
I'm an official commiter there.

---
wbr, Denis.

Reply via email to