[39487] trunk/dports/mail

dluke at macports.org dluke at macports.org
Thu Aug 21 16:51:51 PDT 2008


Revision: 39487
          http://trac.macosforge.org/projects/macports/changeset/39487
Author:   dluke at macports.org
Date:     2008-08-21 16:51:51 -0700 (Thu, 21 Aug 2008)
Log Message:
-----------
New port, libmilter, builds a shared version of sendmail's milter library

Added Paths:
-----------
    trunk/dports/mail/libmilter/
    trunk/dports/mail/libmilter/Portfile

Added: trunk/dports/mail/libmilter/Portfile
===================================================================
--- trunk/dports/mail/libmilter/Portfile	                        (rev 0)
+++ trunk/dports/mail/libmilter/Portfile	2008-08-21 23:51:51 UTC (rev 39487)
@@ -0,0 +1,67 @@
+# $Id$
+
+PortSystem 1.0
+
+name	           	libmilter
+set major_version	8.14
+version         	${major_version}.3
+categories      	mail
+maintainers     	dluke at geeklair.net
+platforms		darwin
+description     	libmilter library from Sendmail
+long_description	Sendmail's Content Management API (milter) provides \
+			third-party programs to access mail messages as they \
+			are being processed by the Mail Transfer Agent (MTA), \
+			allowing them to examine and modify message content \
+			and meta-information. Filtering policies implemented \
+			by Milter-conformant filters may then be centrally \
+			configured and composed in an end-user's MTA \
+			configuration file
+
+homepage        http://www.sendmail.org/doc/sendmail-current/libmilter/docs/
+master_sites    ftp://ftp.sendmail.org/pub/sendmail/
+distname	sendmail.${version}
+
+checksums       md5 a5ee5d26e1f546a2da5fb9a513bd6bce \
+		sha1 814c54c3917aa6b0981b5ea99fb34e0c02f31489 \
+		rmd160 5423360ce908c985827cf6524a6de87e3451c27a
+
+worksrcdir	sendmail-${version}
+
+use_configure	no
+
+build	{
+		system "cd ${worksrcpath}/${name} && \
+			./Build -O ${worksrcpath}/macports"
+	
+		close [open ${worksrcpath}/include/sm_os.h a]
+
+		system "cd ${worksrcpath}/macports/*/${name} && \
+			${configure.compiler} ${configure.cflags} \
+			-fno-common -Dsm_snprintf=snprintf -DXP_MT \
+			-I${worksrcpath}/include -I${worksrcpath}/sendmail \
+			-c *.c"
+		
+		set x {}
+                fs-traverse object ${worksrcpath}/macports {
+                        if {[file isfile ${object}] && [regexp ".o$" ${object}]} {
+                                lappend x ${object}
+                        }
+                }
+
+		set objects [join ${x} " "]
+
+		system "${configure.compiler} ${configure.cflags} -dynamiclib \
+			-install_name ${prefix}lib/${name}.dylib \
+			-compatibility_version ${major_version} \
+			-current_version ${version} \
+			-o ${worksrcpath}/macports/libmilter.dylib ${objects}"
+	}
+
+destroot	{
+			file copy "${worksrcpath}/macports/libmilter.dylib" \
+				"${destroot}${prefix}/lib/"
+			file copy "${worksrcpath}/include/${name}" \
+				"${destroot}${prefix}/include/"
+			file delete "${destroot}${prefix}/include/${name}/milter.h"
+		}


Property changes on: trunk/dports/mail/libmilter/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080821/bc904bbb/attachment.html 


More information about the macports-changes mailing list