diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2005-04-11 17:20:30 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2005-04-11 17:20:30 +0000 |
commit | c394c2761635b77a719a13f04aeea1e7475ece3b (patch) | |
tree | 7c7d995dd5365658bafc0b3f63f1694a742e9350 /net-mail | |
parent | Version bump for security bug 88264. (diff) | |
download | gentoo-2-c394c2761635b77a719a13f04aeea1e7475ece3b.tar.gz gentoo-2-c394c2761635b77a719a13f04aeea1e7475ece3b.tar.bz2 gentoo-2-c394c2761635b77a719a13f04aeea1e7475ece3b.zip |
Replace pkg_postinst code with an ewarn if user changed /var/spool/mail perms. wrt 88177
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mailbase/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/mailbase/Manifest | 10 | ||||
-rw-r--r-- | net-mail/mailbase/files/digest-mailbase-0.00-r9 | 0 | ||||
-rw-r--r-- | net-mail/mailbase/mailbase-0.00-r9.ebuild | 98 |
4 files changed, 112 insertions, 5 deletions
diff --git a/net-mail/mailbase/ChangeLog b/net-mail/mailbase/ChangeLog index c6168e101514..652d0d76c911 100644 --- a/net-mail/mailbase/ChangeLog +++ b/net-mail/mailbase/ChangeLog @@ -1,6 +1,13 @@ # 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.43 2005/04/06 19:01:01 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.44 2005/04/11 17:20:30 ferdy Exp $ + +*mailbase-0.00-r9 (11 Apr 2005) + + 11 Apr 2005; Fernando J. Pereda <ferdy@gentoo.org> + +mailbase-0.00-r9.ebuild: + Replace pkg_postinst code with an ewarn if user changed /var/spool/mail + perms. wrt 88177 06 Apr 2005; Markus Rothe <corsair@gentoo.org> mailbase-0.00-r8.ebuild: Stable on ppc64 diff --git a/net-mail/mailbase/Manifest b/net-mail/mailbase/Manifest index c022584c18c4..fa1df3ba4cbf 100644 --- a/net-mail/mailbase/Manifest +++ b/net-mail/mailbase/Manifest @@ -1,15 +1,17 @@ -MD5 b43da8a7ca07a3964b4bca4cf4888fe8 ChangeLog 5470 +MD5 a357a68f283985b311d8c97c83088907 mailbase-0.00-r9.ebuild 2437 MD5 78fc96c16b9dc1d4902c62927e664ce9 mailbase-0.00-r4.ebuild 773 -MD5 f224d58950c57b4f07888966ad00cd9a mailbase-0.00-r5.ebuild 877 MD5 d70889cf9ee474b30325789a31c253a9 mailbase-0.00-r6.ebuild 902 -MD5 a5d2b893cb09235e3c253d9d0c50f3fa mailbase-0.00-r7.ebuild 1922 MD5 9199352cf76278406a943618dd4a54ef mailbase-0.00-r8.ebuild 2262 +MD5 f224d58950c57b4f07888966ad00cd9a mailbase-0.00-r5.ebuild 877 +MD5 a5d2b893cb09235e3c253d9d0c50f3fa mailbase-0.00-r7.ebuild 1922 +MD5 b43da8a7ca07a3964b4bca4cf4888fe8 ChangeLog 5470 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 MD5 e75c39fbdac8eec750d84a7183ac6721 files/common-pamd 417 -MD5 a5623a262865054bd43c914e740a2e52 files/aliases 809 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r4 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r5 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r6 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r7 0 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r8 0 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mailbase-0.00-r9 0 MD5 df65e6e407e866c7e6721e79f731ae6a files/mailcap 2235 +MD5 a5623a262865054bd43c914e740a2e52 files/aliases 809 diff --git a/net-mail/mailbase/files/digest-mailbase-0.00-r9 b/net-mail/mailbase/files/digest-mailbase-0.00-r9 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/net-mail/mailbase/files/digest-mailbase-0.00-r9 diff --git a/net-mail/mailbase/mailbase-0.00-r9.ebuild b/net-mail/mailbase/mailbase-0.00-r9.ebuild new file mode 100644 index 000000000000..5e85221e5120 --- /dev/null +++ b/net-mail/mailbase/mailbase-0.00-r9.ebuild @@ -0,0 +1,98 @@ +# 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-r9.ebuild,v 1.1 2005/04/11 17:20:30 ferdy Exp $ + +DESCRIPTION="MTA layout package" +SRC_URI="" +HOMEPAGE="http://www.gentoo.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sparc ~x86" +IUSE="pam" + +DEPEND="" + +S=${WORKDIR} + +pkg_setup() { + if use pam; + then + local filestoremove=0; + local lineorig=`head -n 1 ${FILESDIR}/common-pamd` + local lineold="" + + einfo "Checking for possible file collisions..." + + 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}`" + + if [[ "${lineorig}" != "${lineold}" ]] + then + ewarn "${ROOT}/etc/pam.d/${i} exists and wasn't provided by mailbase" + (( filestoremove++ )) + fi + fi + 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" + fi + fi +} + +src_install() { + dodir /etc/mail + insinto /etc/mail + doins ${FILESDIR}/aliases + insinto /etc/ + doins ${FILESDIR}/mailcap + + keepdir /var/spool/mail + fowners root:mail /var/spool/mail + fperms 0775 /var/spool/mail + dosym /var/spool/mail /var/mail + + if use pam; + then + insinto /etc/pam.d/ + + # pop file and its symlinks + newins ${FILESDIR}/common-pamd pop + dosym /etc/pam.d/pop /etc/pam.d/pop3 + dosym /etc/pam.d/pop /etc/pam.d/pop3s + dosym /etc/pam.d/pop /etc/pam.d/pops + + # imap file and its symlinks + newins ${FILESDIR}/common-pamd imap + dosym /etc/pam.d/imap /etc/pam.d/imap4 + dosym /etc/pam.d/imap /etc/pam.d/imap4s + dosym /etc/pam.d/imap /etc/pam.d/imaps + fi +} + +pkg_postinst() { + if [ "$(stat -c%a ${ROOT}/var/spool/mail/)" != "775" ] ; then + echo + ewarn + ewarn "Your ${ROOT}/var/spool/mail/ directory permissions differ from" + ewarn " those which mailbase set when you first installed it (0775)." + ewarn " If you did not change them on purpose, consider running:" + ewarn + echo -e "\tchmod 0775 ${ROOT}/var/spool/mail/" + echo + fi +} |