- force milter dir as first include path

- fix build with sendmail 8.13 mfapi.h
- switch default to sendmail 8.13
This commit is contained in:
Dirk Meyer 2004-10-12 16:16:19 +00:00
parent 9e6c8fc0bc
commit 4a732520f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119059
3 changed files with 27 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= noattach
PORTVERSION= 1.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= ftp://ftp.rhnet.is/pub/noattach/
DISTNAME= ${PORTNAME}-1.1p1
@ -19,7 +19,7 @@ COMMENT= An attachment filter for Sendmail
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_PORT}
.endif
SENDMAIL_PORT?= sendmail812
SENDMAIL_PORT?= sendmail
CFLAGS+= ${PTHREAD_CFLAGS:S=""==}
GNU_CONFIGURE= yes
USE_REINPLACE= yes
@ -31,6 +31,8 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --enable-ldap
.endif
.if !defined(SENDMAIL_MILTER_IN_BASE)
CONFIGURE_ENV+= MILTER_INCLUDES="-I${LOCALBASE}/include"
MAKE_ENV+= MILTER_INCLUDES="-I${LOCALBASE}/include"
LDFLAGS+= -L${LOCALBASE}/lib
.endif

View file

@ -0,0 +1,11 @@
--- Makefile.in.orig Thu Aug 21 15:56:27 2003
+++ Makefile.in Tue Oct 12 17:14:38 2004
@@ -122,7 +122,7 @@
noattach_LDFLAGS =
DEFS = @DEFS@
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+DEFAULT_INCLUDES = $(MILTER_INCLUDES) -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

View file

@ -0,0 +1,12 @@
--- noattach.c.orig Thu Aug 21 15:52:48 2003
+++ noattach.c Tue Oct 12 18:02:32 2004
@@ -54,7 +54,9 @@
#define BUFFER_SIZE (MILTER_CHUNK_SIZE+OVERLAP_SIZE)
#ifndef true
+#ifndef __bool_true_false_are_defined
typedef int bool;
+#endif /* ! __bool_true_false_are_defined */
#define false 0
#define true 1
#endif /* ! true */