summaryrefslogtreecommitdiff
blob: 7753a1ae252e32b3bc796330a0a4e828a1ea478f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailer-config/mailer-config-0.2.ebuild,v 1.2 2005/07/09 17:11:19 swegener Exp $

DESCRIPTION="Utility to switch between mailers using mailwrapper"
HOMEPAGE="http://www.gentoo.org"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~alpha ~hppa"
IUSE=""

DEPEND=""

src_install() {
	dosbin  mailer-config
	dodoc README

	insinto /etc/mail/
	newins "${FILESDIR}/mailer.conf" default.mailer
}

pkg_postinst() {
	einfo
	einfo "Because /etc/mail/mailer.conf is now handled for you, it will"
	einfo "save time if you add:"
	einfo "    CONFIG_PROTECT_MASK=\"/etc/mail/mailer.conf\""
	einfo "to your /etc/make.conf file."
	einfo
	einfo "With this, when a new profile is installed, it will be switched to"
	einfo "automatically, and you will not be prompted to etc-update"
	einfo "mailer.conf manually. Instead, you should always use mailer-config."
	einfo
}