summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-02-11 13:47:29 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-02-11 13:47:29 +0000
commit4e1fe5800ad31d20657db0aa23f08d7aa9ca1431 (patch)
tree6e353f3e177c3a61ef3a130883bc978708929602 /net-mail
parentRevision bump. Handle instalation of pam.d files with newins instead of using cp (diff)
downloadgentoo-2-4e1fe5800ad31d20657db0aa23f08d7aa9ca1431.tar.gz
gentoo-2-4e1fe5800ad31d20657db0aa23f08d7aa9ca1431.tar.bz2
gentoo-2-4e1fe5800ad31d20657db0aa23f08d7aa9ca1431.zip
Make it respect USE=pam. Fixes #81614. Thanks to SpanKY <vapier@gentoo.org>
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailbase/ChangeLog6
-rw-r--r--net-mail/mailbase/Manifest12
-rw-r--r--net-mail/mailbase/mailbase-0.00-r8.ebuild74
3 files changed, 46 insertions, 46 deletions
diff --git a/net-mail/mailbase/ChangeLog b/net-mail/mailbase/ChangeLog
index 08b15f135770..a625aa530f75 100644
--- a/net-mail/mailbase/ChangeLog
+++ b/net-mail/mailbase/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-mail/mailbase
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.34 2005/02/11 13:29:53 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.35 2005/02/11 13:47:29 ferdy Exp $
+
+ 11 Feb 2005; Fernando J. Pereda <ferdy@gentoo.org>
+ mailbase-0.00-r8.ebuild:
+ Make it respect USE=pam. Fixes #81614. Thanks to SpanKY <vapier@gentoo.org>
*mailbase-0.00-r8 (11 Feb 2005)
diff --git a/net-mail/mailbase/Manifest b/net-mail/mailbase/Manifest
index 5791b3138599..52ddae92cb8c 100644
--- a/net-mail/mailbase/Manifest
+++ b/net-mail/mailbase/Manifest
@@ -1,9 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 78fc96c16b9dc1d4902c62927e664ce9 mailbase-0.00-r4.ebuild 773
MD5 d70889cf9ee474b30325789a31c253a9 mailbase-0.00-r6.ebuild 902
-MD5 71c1922ec675cb3eeece82dec0f7ada4 mailbase-0.00-r8.ebuild 1913
+MD5 ed2abd0b90db523fbd14d84ba110ab14 mailbase-0.00-r8.ebuild 1996
MD5 f224d58950c57b4f07888966ad00cd9a mailbase-0.00-r5.ebuild 877
MD5 a5d2b893cb09235e3c253d9d0c50f3fa mailbase-0.00-r7.ebuild 1922
MD5 42f7333b2e0380757d63b670e068df10 ChangeLog 4440
@@ -16,10 +13,3 @@ MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r7 0
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r8 0
MD5 df65e6e407e866c7e6721e79f731ae6a files/mailcap 2235
MD5 a5623a262865054bd43c914e740a2e52 files/aliases 809
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
-
-iD8DBQFCDLNcViELBEf1JB0RAgYbAKCCvsfqJaB0m+bjn40wrRQtJfuzIgCfayJS
-f+/TYnp7UbOiBgrFt+7CpZ8=
-=M60v
------END PGP SIGNATURE-----
diff --git a/net-mail/mailbase/mailbase-0.00-r8.ebuild b/net-mail/mailbase/mailbase-0.00-r8.ebuild
index 9bab4f2f8354..7f8532d4c191 100644
--- a/net-mail/mailbase/mailbase-0.00-r8.ebuild
+++ b/net-mail/mailbase/mailbase-0.00-r8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-0.00-r8.ebuild,v 1.1 2005/02/11 13:29:53 ferdy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-0.00-r8.ebuild,v 1.2 2005/02/11 13:47:29 ferdy Exp $
DESCRIPTION="MTA layout package"
SRC_URI=""
@@ -9,45 +9,48 @@ HOMEPAGE="http://www.gentoo.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~ppc64 ~s390 ~ppc-macos"
-IUSE=""
+IUSE="pam"
DEPEND=""
S=${WORKDIR}
pkg_setup() {
- local filestoremove=0;
- local lineorig=`head -n 1 ${FILESDIR}/common-pamd`
- local lineold=""
-
- einfo "Checking for possible file collisions..."
+ if use pam;
+ then
+ local filestoremove=0;
+ local lineorig=`head -n 1 ${FILESDIR}/common-pamd`
+ local lineold=""
- for i in pop pop3 pop3s pops imap imap4 imap4s imaps;
- do
- if [[ -e ${ROOT}/etc/pam.d/${i} ]]
- then
- lineold="`head -n 1 ${ROOT}/etc/pam.d/${i}`"
+ einfo "Checking for possible file collisions..."
- if [[ "${lineorig}" != "${lineold}" ]]
+ for i in pop pop3 pop3s pops imap imap4 imap4s imaps;
+ do
+ if [[ -e ${ROOT}/etc/pam.d/${i} ]]
then
- ewarn "${ROOT}/etc/pam.d/${i} exists and wasn't provided by mailbase"
- (( filestoremove++ ))
+ lineold="`head -n 1 ${ROOT}/etc/pam.d/${i}`"
+
+ if [[ "${lineorig}" != "${lineold}" ]]
+ then
+ ewarn "${ROOT}/etc/pam.d/${i} exists and wasn't provided by mailbase"
+ (( filestoremove++ ))
+ fi
fi
- fi
- done
+ done
- if [[ filestoremove -gt 0 ]]
- then
- echo
- einfo "Those files listed above have to be removed in order to"
- einfo " install this version of mailbase."
- echo
- ewarn "If you edited them, remember to backup and when restoring make"
- ewarn " sure the first line in each file is:"
- einfo ${lineorig}
- die "Can't be installed, files will collide"
- else
- einfo "... everything looks ok"
+ if [[ filestoremove -gt 0 ]]
+ then
+ echo
+ einfo "Those files listed above have to be removed in order to"
+ einfo " install this version of mailbase."
+ echo
+ ewarn "If you edited them, remember to backup and when restoring make"
+ ewarn " sure the first line in each file is:"
+ einfo ${lineorig}
+ die "Can't be installed, files will collide"
+ else
+ einfo "... everything looks ok"
+ fi
fi
}
@@ -63,11 +66,14 @@ src_install() {
fperms 0775 /var/spool/mail
dosym /var/spool/mail /var/mail
- insinto /etc/pam.d/
- for i in pop pop3 pop3d pops imap imap4 imap4s imaps;
- do
- newins ${FILESDIR}/common-pamd ${i}
- done
+ if use pam;
+ then
+ insinto /etc/pam.d/
+ for i in pop pop3 pop3d pops imap imap4 imap4s imaps;
+ do
+ newins ${FILESDIR}/common-pamd ${i}
+ done
+ fi
}
pkg_postinst() {