You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-mta/nbsmtp/nbsmtp-1.00-r2.ebuild

59 lines
1.3 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/nbsmtp/nbsmtp-1.00-r2.ebuild,v 1.10 2011/03/28 09:15:27 eras Exp $
inherit eutils
DESCRIPTION="Extremely simple MTA to get mail off the system to a relayhost"
SRC_URI="http://www.gentoo-es.org/~ferdy/${P}.tar.bz2"
HOMEPAGE="http://nbsmtp.ferdyx.org"
SLOT="0"
KEYWORDS="alpha amd64 hppa ppc sparc x86"
LICENSE="GPL-2"
IUSE="ssl ipv6 debug"
DEPEND="ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}
!mail-mta/courier
!mail-mta/esmtp
!mail-mta/exim
!mail-mta/mini-qmail
!mail-mta/msmtp
!mail-mta/netqmail
!mail-mta/nullmailer
!mail-mta/postfix
!mail-mta/qmail-ldap
!mail-mta/sendmail
!mail-mta/ssmtp"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-openssl.patch
}
src_compile() {
econf $(use_enable ssl) \
$(use_enable debug) \
$(use_enable ipv6) || die
emake || die
}
src_install() {
dodir /usr/{{s,}bin,lib}
dobin nbsmtp
dobin scripts/nbqueue
dobin scripts/wrapper-nbsmtp
doman nbsmtprc.5 nbsmtp.8
dodoc INSTALL DOCS Doxyfile
dohard /usr/bin/wrapper-nbsmtp /usr/bin/sendmail
dohard /usr/bin/wrapper-nbsmtp /usr/sbin/sendmail
dohard /usr/bin/wrapper-nbsmtp /usr/lib/sendmail
dohard /usr/bin/wrapper-nbsmtp /usr/bin/mailq
dohard /usr/bin/wrapper-nbsmtp /usr/bin/newaliases
}