--- postal-0.62.ebuild 2005-03-17 21:06:21.000000000 +0100 +++ postal-0.69.ebuild 2008-04-24 01:47:52.000000000 +0200 @@ -1,29 +1,48 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/postal/postal-0.62.ebuild,v 1.4 2005/03/17 19:39:05 hansmi Exp $ +inherit autotools eutils + DESCRIPTION="SMTP and POP mailserver benchmark - the mad postman. Supports SSL, randomized user accounts and more." HOMEPAGE="http://www.coker.com.au/postal/" SRC_URI="http://www.coker.com.au/postal/${P}.tgz" -LICENSE="GPL-2" +LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~sparc ppc ~hppa" -IUSE="ssl" -DEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )" +IUSE="ssl gnutls" +#ssl is an alias for openssl. If both ssl and gnutls are enabled, automagic will +#enable only gnutls. +DEPEND="ssl? ( + !gnutls? ( >=dev-libs/openssl-0.9.8g ) + gnutls? ( >=net-libs/gnutls-2.2.2 ) + )" -src_compile() { - myconf= +pkg_setup() { + myconf=" --disable-stripping + $(use_enable ssl openssl) + $(use_enable gnutls gnutls)" + +} - if use !ssl; then - # broken configure, use_enable doesn't work right - myconf="${myconf} --disable-ssl" - fi +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/01_${P}-gcc43.patch" + epatch "${FILESDIR}/02_${P}-nossl.patch" + epatch "${FILESDIR}/03_${P}-c++0x-integrated.patch" + epatch "${FILESDIR}/04_${P}-warnings.patch" + epatch "${FILESDIR}/05_${P}-fix-version.patch" + eautoreconf +} + +src_compile() { econf ${myconf} || die emake || die } src_install() { - dosbin postal postal-list rabid - doman postal-list.8 postal.8 rabid.8 + emake DESTDIR="${D}" install || die + }