mail/opensmtpd

This commit is contained in:
Lionel Sambuc 2016-03-13 18:43:03 +00:00 committed by Lionel Sambuc
parent 7e0ad495a6
commit 033e117a60
4 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 <sys/statvfs.h>
-#ifdef __NetBSD__
+#if defined(__minix) || defined(__NetBSD__)
#define statfs statvfs
#endif
#endif