diff --git a/mail/opensmtpd/Makefile b/mail/opensmtpd/Makefile index 87662796d..133ca983a 100644 --- a/mail/opensmtpd/Makefile +++ b/mail/opensmtpd/Makefile @@ -56,6 +56,11 @@ SUBST_MESSAGE.exampledir= Fixing exampledir path SUBST_FILES.exampledir= mk/smtpd/Makefile.am SUBST_SED.exampledir+= -e 's,@EXAMPLE_DIR@,${EXAMPLEDIR},' +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix" +CPPFLAGS+= -D_OPENBSD_SOURCE +.endif # ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix" + post-extract: cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf diff --git a/mail/opensmtpd/distinfo b/mail/opensmtpd/distinfo index 8951e3ab0..20c483658 100644 --- a/mail/opensmtpd/distinfo +++ b/mail/opensmtpd/distinfo @@ -9,3 +9,5 @@ SHA1 (patch-mk_makemap_Makefile.am) = 51da0f13b1b32b3c364ae638a38d4b33efaf1ec7 SHA1 (patch-mk_smtpd_Makefile.am) = ebc62819300d3ddd824178c08a5630ca85dc6fdc SHA1 (patch-smtpd_queue__fs.c) = f13d1bf1d26544b3c81e5e2c813d2fe5e917b96b SHA1 (patch-smtpd_smtp__session.c) = f9c034827519a02b97cadb3c034ad1e84abc805a +SHA1 (patch-zz-minix-a) = 3c402b4c78c9d44728cabf2ce9193276b56f2989 +SHA1 (patch-zz-minix-b) = 189bc86f2d6cf93cb6946b6925bab9a65c8b8ac2 diff --git a/mail/opensmtpd/patches/patch-zz-minix-a b/mail/opensmtpd/patches/patch-zz-minix-a new file mode 100644 index 000000000..e509f7066 --- /dev/null +++ b/mail/opensmtpd/patches/patch-zz-minix-a @@ -0,0 +1,11 @@ +--- configure.ac.orig Sun Mar 13 17:02:45 2016 ++++ configure.ac Sun Mar 13 17:08:12 2016 +@@ -411,7 +411,7 @@ + ;; + esac + ;; +-*-*-netbsd*) ++ *-*-netbsd*|*-*-minix*) + check_for_libcrypt_before=1 + if test "x$withval" != "xno" ; then + need_dash_r=1 diff --git a/mail/opensmtpd/patches/patch-zz-minix-b b/mail/opensmtpd/patches/patch-zz-minix-b new file mode 100644 index 000000000..a8005e66d --- /dev/null +++ b/mail/opensmtpd/patches/patch-zz-minix-b @@ -0,0 +1,11 @@ +--- smtpd/queue_fs.c.orig Thu Nov 3 01:23:02 2016 ++++ smtpd/queue_fs.c Thu Nov 3 01:23:52 2016 +@@ -32,7 +32,7 @@ + #endif + #ifdef HAVE_SYS_STATVFS_H + #include +-#ifdef __NetBSD__ ++#if defined(__minix) || defined(__NetBSD__) + #define statfs statvfs + #endif + #endif