[PATCH] Postfix port

Gufo gaudente at gmail.com
Thu Sep 28 09:25:15 PDT 2006


Hi all,
this is my first mail here, please correct if is not the right place to
post this kind of informations.

The current port of postfix doesn't work well, so I did some work trying 
to make it ok:

Attached are:
- a simple patch to postfix-script so it can correctly recognise
  folders permissions
- a patch to the portfile which:
  * add cyrus support (this must be done explicitely in 2.3.X)
  * try to compile postfix against _system_ openssl and _macports'_
    sasl2
  * bump postfix version to 2.3.4

There's one unresolved issue, no matter if I explicitly compile it
against system or macports version of openssl, I have this warning:

------
postfix/smtp[24927]: warning: run-time library vs. compile-time header
version mismatch: OpenSSL 0.9.8 may not be compatible with OpenSSL 0.9.7
------

Which means it compiles against system version of openssl and uses
macports' one at run time.
As a result I can't start a tls connection with any mailserver.


After installation 2 files must be deleted (I don't know which is the
best way to do this in the Portfile):

/opt/local/var//spool/postfix/maildrop/.turd_postfix
/opt/local/var//spool/postfix/public/.turd_postfix

Please let me know what do you think about this, and forgive me if
something is wrong because this is my first attempt to modify a port.

Gufo
-- 
  ,___,           If you're not part of the solution,
  (9v9)       	    you're part of the precipitate
  (_^((\            My site: http://gufo.dontexist.org/
-^-"-"-\\-^--    Gpg Key at: http://gufo.dontexist.org/db.asc
-------------- next part --------------
--- Portfile.old	2006-09-28 17:26:48.000000000 +0200
+++ Portfile	2006-09-28 17:52:43.000000000 +0200
@@ -2,7 +2,7 @@
 
 PortSystem  1.0
 name            postfix
-version         2.3.2
+version         2.3.3
 categories      mail
 maintainers     yeled at macports.org
 description     Fast and robust mail transfer agent
@@ -13,7 +13,7 @@
             Postfix act as delivery daemon for ezmlm-idx.
 homepage        http://www.postfix.org/
 platforms       darwin
-checksums       md5 b1e482eea6a340041b8a637e62b15e3c
+checksums       md5 f957e9319428be81c724b606fe060cc7
 master_sites    ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \
     http://postfix.problemlos.ch/release/official/ \
     ftp://ftp.matrix.com.br/pub/postfix/official/ \
@@ -129,15 +129,15 @@
 }
 
 variant tls {
-    depends_lib-append  port:openssl
-    set CCARGS      [concat ${CCARGS} -DUSE_TLS]
-    set AUXLIBS     [concat ${AUXLIBS} -lssl -lcrypto]
+#    depends_lib-append  port:openssl
+    set CCARGS      [concat ${CCARGS} -DUSE_TLS -I/usr/include/openssl]
+    set AUXLIBS     [concat ${AUXLIBS} -L/usr/lib/openssl -lssl -lcrypto]
 }
 
 variant sasl {
     depends_lib-append  port:cyrus-sasl2
-    set CCARGS      [concat ${CCARGS} -DUSE_SASL_AUTH -I${prefix}/include/sasl]
-    set AUXLIBS     [concat ${AUXLIBS} -lsasl2]
+    set CCARGS      [concat ${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${prefix}/include/sasl]
+    set AUXLIBS     [concat ${AUXLIBS} -L${prefix}/lib/sasl2 -lsasl2]
 }
 
 variant ldap {
-------------- next part --------------
--- postfix-script.old	2006-09-28 17:03:18.000000000 +0200
+++ postfix-script	2006-09-28 18:00:56.000000000 +0200
@@ -197,7 +197,7 @@
 
 	for dir in $daemon_directory $config_directory $queue_directory
 	do
-		ls -lLd $dir | (grep " root " >/dev/null ||
+		/bin/ls -lLd $dir | (grep " root " >/dev/null ||
 		    $WARN not owned by root: $dir)
 	done
 
@@ -208,7 +208,7 @@
 		\( -perm -020 -o -perm -002 \) -type f \
 		-exec $WARN group or other writable: {} \;
 
-	find `ls -d $queue_directory/* | \
+	find `/bin/ls -d $queue_directory/* | \
 	    egrep '/(incoming|active|defer|deferred|bounce|hold|trace|corrupt|public|private|flush)$'` \
 	    ! \( -type p -o -type s \) ! -user $mail_owner \
 		-exec $WARN not owned by $mail_owner: {} \;
@@ -222,7 +222,7 @@
 	    -prune ! -perm -02111 \
 	    -exec $WARN not set-gid or not owner+group+world executable: {} \;
 
-	for name in `ls -d $queue_directory/* | \
+	for name in `/bin/ls -d $queue_directory/* | \
 	    egrep '/(bin|etc|lib|usr)$'` ; \
 	do \
 	    find $name ! -user root \


More information about the macports-dev mailing list