[Mimedefang] FreeBSD port

Graham Dunn gdunn at inscriber.com
Tue May 28 09:45:27 EDT 2002


On Tue, May 28, 2002 at 03:40:28AM +0400, Andrey V. Pevnev wrote:
> Hello Graham,
> 
> Monday, May 27, 2002, 8:03:06 PM, you wrote:
> >> But if you REALLY need to build the port with sendmail installed from
> >> ports, I'll fix the port to support it.
> GD> That would be excellent.
> 
> Ok, try this patch for Makefile:
> 
> diff -ruN mimedefang.bak/Makefile mimedefang/Makefile
> --- mimedefang.bak/Makefile     Tue May 28 03:13:32 2002
> +++ mimedefang/Makefile Tue May 28 03:25:59 2002
> @@ -29,7 +29,7 @@
>  MAN8=  mimedefang.8 mimedefang.pl.8 mimedefang-multiplexor.8
>  
>  .if !exists( /usr/include/libmilter/mfapi.h )
> -IGNORE=        "requires libmilter installed in the base system, upgrade your FreeBSD"
> +BUILD_DEPENDS+=        ${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
>  .endif
>  
>  post-install:

How about:

ureshii# diff -ruN Makefile.old Makefile
--- Makefile.old        Fri May 24 00:01:22 2002
+++ Makefile    Tue May 28 09:39:44 2002
@@ -28,8 +28,12 @@
 MAN7=  mimedefang-protocol.7
 MAN8=  mimedefang.8 mimedefang.pl.8 mimedefang-multiplexor.8

-.if !exists( /usr/include/libmilter/mfapi.h )
-IGNORE=        "requires libmilter installed in the base system, upgrade your FreeBSD"
+.if !exists( /usr/include/libmilter/mfapi.h ) && !exists( /usr/local/include/libmilter/mfapi.h )
+IGNORE=        "requires libmilter installed, upgrade your FreeBSD or install sendmail 8.12.3 from ports"
+.endif
+
+.if exists( /usr/local/libmilter/mfapi.h )
+BUILD_DEPENDS+=${LOCALBASE}/include/libmilter/mfapi.h:${PORTSDIR}/mail/sendmail
 .endif

 post-install:

That'll work for the case when I finally upgrade to 4.6 too.

Do you know if there's a port for Anomy::HTMLCleaner?

Thanks,
Graham



More information about the MIMEDefang mailing list