ChangeLog

# ChangeLog for net-mail/mailbase
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/ChangeLog,v 1.74 2007/11/14 07:57:49 vapier Exp $

14 Nov 2007; Mike Frysinger mailbase-1.ebuild:
Move mail user/group and postmaster user here from baselayout.

17 Jun 2007; Fernando J. Pereda mailbase-1.ebuild:
Don't mix ewarn and echo as per bug #182348

08 Feb 2007; Fabian Groffen mailbase-0.00-r6.ebuild,
mailbase-1.ebuild:
Dropped ppc-macos keyword, see you in prefix

06 Jan 2007; Timothy Redaelli mailbase-1.ebuild:
Added stat for BSD wrt bug #153869, acknowledged by Fernando J. Pereda

06 Jan 2007; Fernando J. Pereda
-mailbase-0.00-r4.ebuild, -mailbase-0.00-r5.ebuild,
-mailbase-0.00-r7.ebuild, -mailbase-0.00-r8.ebuild,
-mailbase-0.00-r9.ebuild:
QA: Clean unused versions.

17 Oct 2006; Roy Marples mailbase-1.ebuild:
Added ~sparc-fbsd keyword.

03 Apr 2006; Diego Pettenò mailbase-1.ebuild:
Add ~x86-fbsd keyword.

25 Aug 2005; Aron Griffis mailbase-1.ebuild:
stable on ia64

19 Aug 2005; Michael Hanselmann mailbase-1.ebuild:
Stable on ppc.

09 Aug 2005; Aaron Walker mailbase-1.ebuild:
Stable on mips.

09 Aug 2005; Diego Pettenò mailbase-1.ebuild:
Stable on amd64.

08 Aug 2005; Markus Rothe mailbase-1.ebuild:
Stable on ppc64

03 Aug 2005; Gustavo Zacarias mailbase-1.ebuild:
Stable on sparc

03 Aug 2005; Fernando J. Pereda mailbase-1.ebuild:
stable on x86 and alpha

29 Jul 2005; MATSUU Takuto mailbase-0.00-r9.ebuild:
stable on sh.

28 Jun 2005; Joshua Kinard mailbase-0.00-r9.ebuild:
Marked stable on mips.

18 Jun 2005; Chris Bainbridge Manifest:
Fix broken manifest.

17 Jun 2005; Michael Hanselmann mailbase-0.00-r9.ebuild:
Stable on ppc.

12 Jun 2005; Olivier Crête mailbase-0.00-r9.ebuild:
Stable on amd64

08 Jun 2005; Fernando J. Pereda mailbase-1.ebuild:
remove the pam.d files check

06 Jun 2005; Markus Rothe mailbase-0.00-r9.ebuild:
Stable on ppc64

31 May 2005; Rene Nussbaumer
mailbase-0.00-r9.ebuild:
Stable on hppa.

31 May 2005; Fernando J. Pereda
mailbase-0.00-r9.ebuild:
Stable on alpha

30 May 2005; Gustavo Zacarias
mailbase-0.00-r9.ebuild:
Stable on sparc

30 May 2005; Fernando J. Pereda
mailbase-0.00-r9.ebuild:
Stable on x86

22 May 2005; Fernando J. Pereda mailbase-1.ebuild:
bit of cleanup

29 Apr 2005; Fernando J. Pereda mailbase-1.ebuild:
make it respect USE pam, wrt #90870. Reported by: Nuno Alexandre


*mailbase-0.00-r9 (11 Apr 2005)

11 Apr 2005; Fernando J. Pereda
+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 mailbase-0.00-r8.ebuild:
Stable on ppc64

06 Mar 2005; Bryan Østergaard
mailbase-0.00-r8.ebuild:
Stable on alpha, bug 83797.

23 Feb 2005; Marcus D. Hanwell mailbase-0.00-r8.ebuild:
Stable on amd64, bug 82404.

19 Feb 2005; Michael Hanselmann
mailbase-0.00-r8.ebuild:
Stable on hppa.

19 Feb 2005; Michael Hanselmann
mailbase-0.00-r8.ebuild:
Stable on ppc.

18 Feb 2005; Gustavo Zacarias mailbase-0.00-r8.ebuild:
Stable on sparc wrt #82404

17 Feb 2005; Olivier Crête mailbase-0.00-r8.ebuild:
Marking stable on x86 for security bug #82404

14 Feb 2005; Fernando J. Pereda
mailbase-0.00-r8.ebuild:
Use symlinks instead of regular files

11 Feb 2005; Fernando J. Pereda
mailbase-0.00-r8.ebuild:
Make it respect USE=pam. Fixes #81614. Thanks to SpanKY

*mailbase-0.00-r8 (11 Feb 2005)

11 Feb 2005; Fernando J. Pereda
+mailbase-0.00-r8.ebuild:
Handle instalation of pam.d files with newins instead of copying

10 Feb 2005; Fernando J. Pereda
mailbase-0.00-r7.ebuild:
Use instead of accessing /

*mailbase-0.00-r7 (10 Feb 2005)

10 Feb 2005; Fernando J. Pereda +files/common-pamd,
+mailbase-0.00-r7.ebuild:
Version bump. Related to #79240. Reported by Wolfram Schlich


18 Jan 2005; Joshua Kinard mailbase-0.00-r6.ebuild:
Marked stable on mips.

16 Jan 2005; Guy Martin mailbase-0.00-r6.ebuild:
Stable on hppa.

29 Dec 2004; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

17 Dec 2004; Gustavo Zacarias mailbase-0.00-r6.ebuild:
Stable on sparc

16 Dec 2004; Dylan Carlson mailbase-0.00-r6.ebuild:
Stable on amd64.

16 Dec 2004; Andrej Kacian mailbase-0.00-r6.ebuild:
Stable on x86.

23 Jul 2004; Mamoru KOMACHI mailbase-0.00-r6.ebuild:
Added to macos.

07 Jun 2004; Bryan Østergaard mailbase-0.00-r6.ebuild:
Stable on alpha.

01 Apr 2004; mailbase-0.00-r6.ebuild:
Adding s390 keywords

14 Mar 2004; Tom Gall mailbase-0.00-r6.ebuild:
stable on ppc64

28 Jan 2004; Aron Griffis mailbase-0.00-r5.ebuild:
stable on alpha and ia64

20 Jan 2004; Martin Holzer mailbase-0.00-r5.ebuild,
mailbase-0.00-r6.ebuild:
fowner syntax. closes 38034

25 Dec 2003; Robin H. Johnson mailbase-0.00-r4.ebuild:
change to keepdir as per bug #35308

14 Dec 2003; mailbase-0.00-r4.ebuild,
mailbase-0.00-r5.ebuild, mailbase-0.00-r6.ebuild:
QA: fixing chown user.group to user:group, bug #35127

09 Dec 2003; Lars Weiler mailbase-0.00-r5.ebuild:
Masked stable on ppc

*mailbase-0.00-r6 (06 Aug 2003)

08 Aug 2003; Jan Seidel mailbase-0.00-r6.ebuild :
Added ~mips to keywords.

06 Aug 2003; Daniel Ahlberg mailbase-0.00-r6.ebuild :
Both #8029 and #16749 says 0775 for /var/spool/mail.

15 Jul 2003; Christian Birchinger
mailbase-0.00-r5.ebuild:
Added sparc stable keyword

20 Feb 2003; Zach Welch :
Added arm to keywords.

12 Feb 2003; Guy Martin :
Added hppa to keywords.

25 Dec 2002; Martin Schlemmer mailbase-0.00-r5.ebuild :
Always set the ownership and permissions in pkg_postinst(), closing bug #8029.
Cleanup the build a bit by using keepdir, fowners and fperms.

*mailbase-0.00-r5 (18 Dec 2002)

08 Aug 2003; Jan Seidel mailbase-0.00-r5.ebuild :
Added mips to keywords.

18 Dec 2002; Nick Hadaway mailbase-0.00-r5.ebuild :
Changed /var/spool/mail permissions to 1777

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*mailbase-0.00-r4 (27 Jun 2002)

18 Apr 2003; Jan Seidel mailbase-0.00-r4.ebuild :
Added mips to keywords.

27 Jun 2002; Phil Bordelon mailbase-0.00-r4.ebuild :

Added a .keep in /var/spool/mail so it doesn't get removed when mailbase is
unmerged from an upgrade. Also cleaned up the ebuild to match the current
format. The original Author of the script was Jerry Alexandratos .

*mailbase-0.00-r3 (12 May 2002)

12 May 2002; Martin Schlemmer mailbase-0.00-r3.ebuild :

Change ownership on /var/spool/mail to root.mail.

*mailbase-0.00-r1 (1 Feb 2002)

1 Feb 2002; G.Bevin ChangeLog :

Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

AUX aliases 809 RMD160 ebca326bf7ed746a545f2bfa8f2839a5ecf1debb SHA1 7d8d134e21df6bea63518953dfa97fc0aab32f3c SHA256 41fffc461dfa6a8c36564698b4d9eaabaf280dbc446b3e7f3af4820930e687d6
AUX common-pamd 417 RMD160 3a1e4ab95deb3e4326337403cb3d05912e130cd3 SHA1 40744d25bc66f89344049c74e7d87e0f9495fd91 SHA256 bbfe6375738fceacb4f6226ede08f7b9b0b280bf83d1b8b8e55e2e1f03b4090c
AUX common-pamd-include 362 RMD160 a2615a3f09be6039430851bcf52f6ae77414aa20 SHA1 62ce37bdd86d18f10867d4b57ffcc46f751327fd SHA256 31b97438e6735ee4754051b95d926468f59fe8e15490e8bf34debaeaf3f8c651
AUX mailcap 2235 RMD160 cb84573fec9e1c78f43a8eed2f9a0898c3817097 SHA1 f6405002211445186e2178ca23773695666bc2ce SHA256 99dcf0c43b9aa26625a8ff7e375e13f85cc0d677a93e90da62a868d8a2162cda
EBUILD mailbase-0.00-r6.ebuild 894 RMD160 96b3119624f302e877a6c22a340f8c01652f8567 SHA1 6361e46fe163c6ec7d5b4e51cd6c5c1d67708204 SHA256 15a49316fa12d94373db14521b06a123b7ff6c75299879114852e2e00a1b7c70
EBUILD mailbase-1.ebuild 1704 RMD160 3f7b706757c4012d2201a0d81a96a4f9d327df8a SHA1 8474d12f85010f5495c54d09f9e87d6af2e152c4 SHA256 a3d7cde680a38b43ba07402681fe62c80c7f86047d1ede62e287348524d47316
MISC ChangeLog 8577 RMD160 40b9a7637ff661a70e4f175d83ef0c9bf304b366 SHA1 a967aa2521c062dc62f4efffac28a6419c6818e4 SHA256 c2d3f73c9cfb22fb9456f5d5d6dc4a950e7c4b687f77400e9fad32e56bb72fbe
MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32

files

mailbase-0.00-r6.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-0.00-r6.ebuild,v 1.20 2007/02/08 22:22:25 grobian Exp $

DESCRIPTION="MTA layout package"
SRC_URI=""
HOMEPAGE="http://www.gentoo.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390"
IUSE=""

DEPEND=""

S=${WORKDIR}

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
}

pkg_postinst() {
if [ ! -d ${ROOT}/var/spool/mail ]
then
mkdir -p ${ROOT}/var/spool/mail
fi

# Always set these to close bug #8029.
chown root:mail ${ROOT}/var/spool/mail
chmod 0775 ${ROOT}/var/spool/mail
}

mailbase-1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailbase/mailbase-1.ebuild,v 1.19 2007/11/14 07:57:49 vapier Exp $

inherit pam eutils

DESCRIPTION="MTA layout package"
SRC_URI=""
HOMEPAGE="http://www.gentoo.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="pam"

RDEPEND="pam? ( virtual/pam )"

S=${WORKDIR}

pkg_setup() {
enewgroup mail 12
enewuser mail 8 -1 /var/spool/mail mail
enewuser postmaster 14 -1 /var/spool/mail
}

src_install() {
dodir /etc/mail
insinto /etc/mail
doins "${FILESDIR}"/aliases || die
insinto /etc
doins "${FILESDIR}"/mailcap || die

keepdir /var/spool/mail
fowners root:mail /var/spool/mail
fperms 0775 /var/spool/mail
dosym /var/spool/mail /var/mail

newpamd "${FILESDIR}"/common-pamd-include pop
newpamd "${FILESDIR}"/common-pamd-include imap
if use pam ; then
local p
for p in pop3 pop3s pops ; do
dosym pop /etc/pam.d/${p} || die
done
for p in imap4 imap4s imaps ; do
dosym imap /etc/pam.d/${p} || die
done
fi
}

get_permissions_oct() {
if [[ ${USERLAND} = GNU ]] ; then
stat -c%a "${ROOT}$1"
elif [[ ${USERLAND} = BSD ]] ; then
stat -f%p "${ROOT}$1" | cut -c 3-
fi
}

pkg_postinst() {
if [[ "$(get_permissions_oct /var/spool/mail)" != "775" ]] ; then
echo
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
ewarn " chmod 0775 ${ROOT}/var/spool/mail/"
echo
fi
}

metadata.xml




net-mail