Skip to content
Permalink
Browse files

Port: tpop3d

Version:		1.5.3
Revision:		2
Approved by:	mww@

Update port mail/tpop3d
Add TLS support, add PAM capability, enable TCP wrappers, remove the
mailspool configure option since that's deprecated in favor of setting it
with the conf file

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14694 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
blb committed Oct 18, 2005
1 parent 9e640d0 commit b413aa6c3506f03a3220ad0859b8d2046b95d22b
Showing with 50 additions and 6 deletions.
  1. +14 −6 mail/tpop3d/Portfile
  2. +11 −0 mail/tpop3d/files/patch-auth_pam.c
  3. +25 −0 mail/tpop3d/files/patch-configure
@@ -1,10 +1,10 @@
# $Id: Portfile,v 1.4 2004/11/07 01:03:19 jkh Exp $
# $Id: Portfile,v 1.5 2005/10/18 20:20:20 blb Exp $

PortSystem 1.0

name tpop3d
version 1.5.3
revision 1
revision 2
categories mail
platforms darwin
maintainers mww@opendarwin.org
@@ -15,12 +15,15 @@ homepage http://www.ex-parrot.com/~chris/tpop3d/
master_sites ${homepage}
checksums md5 dd920c49f4e5879eb3caf7ea047622e9

configure.args --with-mailspool-directory=${prefix}/var/spool/${name} \
--disable-auth-pam \
depends_lib lib:libssl:openssl


configure.args --enable-auth-pam \
--enable-auth-passwd \
--enable-tls \
--enable-tcp-wrappers \
--mandir=${prefix}/share/man

build.env LDFLAGS="-flat_namespace"
configure.env LDFLAGS="-lcrypto"

post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/etc \
@@ -33,3 +36,8 @@ post-destroot {
README.darwin TODO ${destroot}${prefix}/share/doc/${name}
destroot.keepdirs ${destroot}${prefix}/var/spool/${name}
}

variant darwin {
patchfiles-append patch-configure patch-auth_pam.c
}

@@ -0,0 +1,11 @@
--- auth_pam.c.orig 2003-09-27 09:33:57.000000000 -0600
+++ auth_pam.c 2005-10-17 17:17:20.000000000 -0600
@@ -24,7 +24,7 @@
#include <syslog.h>
#include <unistd.h>

-#include <security/pam_appl.h>
+#include <pam/pam_appl.h>

#include "auth_pam.h"
#include "authswitch.h"
@@ -0,0 +1,25 @@
--- configure.orig 2003-11-24 12:59:49.000000000 -0700
+++ configure 2005-10-17 17:15:20.000000000 -0600
@@ -5468,7 +5468,7 @@



-for ac_header in fcntl.h limits.h sys/file.h sys/time.h syslog.h unistd.h crypt.h execinfo.h security/pam_appl.h ldap.h mysql.h tcpd.h openssl/ssl.h libpq-fe.h
+for ac_header in fcntl.h limits.h sys/file.h sys/time.h syslog.h unistd.h crypt.h execinfo.h pam/pam_appl.h ldap.h mysql.h tcpd.h openssl/ssl.h libpq-fe.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -5630,10 +5630,10 @@

if test x"$enable_auth_pam" = x"yes"
then
- if test x"$ac_cv_header_security_pam_appl_h" != x"yes"
+ if test x"$ac_cv_header_pam_pam_appl_h" != x"yes"
then
- { { echo "$as_me:$LINENO: error: PAM authentication enabled, but can't find security/pam_appl.h " >&5
-echo "$as_me: error: PAM authentication enabled, but can't find security/pam_appl.h " >&2;}
+ { { echo "$as_me:$LINENO: error: PAM authentication enabled, but can't find pam/pam_appl.h " >&5
+echo "$as_me: error: PAM authentication enabled, but can't find pam/pam_appl.h " >&2;}
{ (exit 1); exit 1; }; }
fi
fi

0 comments on commit b413aa6

Please sign in to comment.
You can’t perform that action at this time.