summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-04-11 17:20:30 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-04-11 17:20:30 +0000
commit03b21d64f7247f30d970decce6474ea975ec45c4 (patch)
treef1ffb6300f0aa05e43db3298ad6ba187f5509257 /net-mail/mailbase
parentVersion bump for security bug 88264. (diff)
downloadhistorical-03b21d64f7247f30d970decce6474ea975ec45c4.tar.gz
historical-03b21d64f7247f30d970decce6474ea975ec45c4.tar.bz2
historical-03b21d64f7247f30d970decce6474ea975ec45c4.zip
Replace pkg_postinst code with an ewarn if user changed /var/spool/mail perms. wrt 88177
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-mail/mailbase')
-rw-r--r--net-mail/mailbase/ChangeLog9
-rw-r--r--net-mail/mailbase/Manifest20
-rw-r--r--net-mail/mailbase/files/digest-mailbase-0.00-r90
-rw-r--r--net-mail/mailbase/mailbase-0.00-r9.ebuild98
4 files changed, 122 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..b5f86e68bd3f 100644
--- a/net-mail/mailbase/Manifest
+++ b/net-mail/mailbase/Manifest
@@ -1,15 +1,27 @@
-MD5 b43da8a7ca07a3964b4bca4cf4888fe8 ChangeLog 5470
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 d5b004fb1c539c147780c7bc7c86629e mailbase-0.00-r9.ebuild 2434
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 74658ac458acda202001fe3c3e4393d5 ChangeLog 5676
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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFCWrIjViELBEf1JB0RAt/cAJ9pkNrSi3NlBMUIBNx/ehlJAhpSkACePinp
+3sGk4ji3NFDwOcmw0KXBWW4=
+=fVDR
+-----END PGP SIGNATURE-----
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
+}