# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils DESCRIPTION="An MTA for workstations and for servers in small networks." HOMEPAGE="http://www.marmaro.de/prog/masqmail/" SRC_URI="http://www.marmaro.de/prog/masqmail/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="+mta +auth debug" DEPEND="" RDEPEND="${CDEPEND} mta? ( !mail-mta/courier !mail-mta/esmtp !mail-mta/exim !mail-mta/mini-qmail !mail-mta/nbsmtp !mail-mta/netqmail !mail-mta/nullmailer !mail-mta/postfix !mail-mta/msmtp !mail-mta/qmail-ldap !mail-mta/sendmail !=mail-mta/ssmtp-2.64-r2[mta] )" group_user_check() { einfo "Checking for mail group..." enewgroup mail 12 einfo "Checking for mail user..." enewuser mail 8 -1 -1 mail } pkg_setup() { #Add group "mail" and user "mail" group_user_check || die "Faild to check/add needed groups" } src_configure() { econf \ $(use_enable debug) \ $(use_enable auth) } src_compile() { emake || die } src_install() { emake DESTDIR="${D}" install || die newinitd ${FILESDIR}/masqmail masqmail if use mta; then dodir /usr/sbin dosym /usr/sbin/masqmail /usr/sbin/sendmail dosym /usr/sbin/masqmail /usr/lib/sendmail fi elog "You will need to copy masqmail.conf and a route-file" elog "from the docs/ directory to /etc/masqmail/ " elog "and adopt to your needs" }