diff options
Diffstat (limited to 'mail-mta/courier/courier-0.48.2.20050224.ebuild')
-rw-r--r-- | mail-mta/courier/courier-0.48.2.20050224.ebuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mail-mta/courier/courier-0.48.2.20050224.ebuild b/mail-mta/courier/courier-0.48.2.20050224.ebuild index 7f92fafca6ae..ad5d519ae202 100644 --- a/mail-mta/courier/courier-0.48.2.20050224.ebuild +++ b/mail-mta/courier/courier-0.48.2.20050224.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.2.20050224.ebuild,v 1.3 2005/03/04 11:48:50 swtaylor Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/courier/courier-0.48.2.20050224.ebuild,v 1.4 2005/03/21 11:14:15 swtaylor Exp $ -inherit eutils gnuconfig +inherit eutils gnuconfig flag-o-matic DESCRIPTION="An MTA designed specifically for maildirs" [ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" @@ -41,8 +41,11 @@ RDEPEND="${DEPEND} sys-process/procps" PDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 ) + pam? ( net-mail/mailbase ) crypt? ( >=app-crypt/gnupg-1.0.4 )" +filter-flags '-fomit-frame-pointer' + src_unpack() { use fam || ( ewarn "File Alteration Monitor (FAM) is disabled" @@ -136,8 +139,6 @@ set_maildir() { src_install() { local f - dodir /etc/pam.d - einfo "Setting up maildirs in the account skeleton ..." diropts -m 755 -o root -g root dodir /etc/skel @@ -160,8 +161,13 @@ src_install() { cd ${D}/etc/courier insinto /etc/courier newins ${FILESDIR}/apache-sqwebmail.inc apache-sqwebmail.inc - mv imapd.authpam imap.authpam ; mv pop3d.authpam pop3.authpam - for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done + + if use pam ; then + dodir /etc/pam.d + rm imapd.authpam pop3d.authpam + for f in *.authpam ; do mv "${f}" "${D}/etc/pam.d/${f%%.authpam}" ; done + fi + for f in *.dist ; do cp ${f} ${f%%.dist} ; done [ -e ldapaliasrc ] && ( chown root:root ldapaliasrc ; chmod 400 ldapaliasrc ) set_maildir courierd imapd imapd-ssl pop3d pop3d-ssl sqwebmaild *.dist |