# Copyright 2013 OSTC Group # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 DESCRIPTION="E-MailRelay is a simple SMTP proxy and store-and-forward message transfer agent (MTA)." HOMEPAGE="http://emailrelay.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="ipv6, debug, verbose, gui, pop, admin" DEPEND="" RDEPEND="${DEPEND}" src_unpack() { if [ "${A}" != "" ]; then unpack ${A} fi } src_configure() { if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then econf \ $(use_enable ipv6 ) \ $(use_enable debug ) \ $(use_enable verbose ) \ $(use_enable gui ) \ $(use_enable pop ) \ $(use_enable admin ) fi } src_compile() { if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then emake || die "emake failed" fi } src_install() { emake DESTDIR="${D}" install || die "Install failed" newinitd "${FILESDIR}/emailrelay.initd" emailrelay || die "newinitd failed" } pkg_postinst() { elog "You will need to update /etc/emailrelay.conf" elog "Enter any AUTH details in /etc/emailrelay.auth" elog "Start service with /etc/init.d/emailrelay start" elog "add to default rc level" }