Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 219092 | Differences between
and this patch

Collapse All | Expand All

(-)postal-0.62.ebuild (-11 / +30 lines)
Lines 1-29 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/postal/postal-0.62.ebuild,v 1.4 2005/03/17 19:39:05 hansmi Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/postal/postal-0.62.ebuild,v 1.4 2005/03/17 19:39:05 hansmi Exp $
4
4
5
inherit autotools eutils
6
5
DESCRIPTION="SMTP and POP mailserver benchmark - the mad postman. Supports SSL, randomized user accounts and more."
7
DESCRIPTION="SMTP and POP mailserver benchmark - the mad postman. Supports SSL, randomized user accounts and more."
6
HOMEPAGE="http://www.coker.com.au/postal/"
8
HOMEPAGE="http://www.coker.com.au/postal/"
7
SRC_URI="http://www.coker.com.au/postal/${P}.tgz"
9
SRC_URI="http://www.coker.com.au/postal/${P}.tgz"
8
LICENSE="GPL-2"
10
LICENSE="GPL-3"
9
SLOT="0"
11
SLOT="0"
10
KEYWORDS="~x86 ~sparc ppc ~hppa"
12
KEYWORDS="~x86 ~sparc ppc ~hppa"
11
IUSE="ssl"
13
IUSE="ssl gnutls"
12
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6b )"
14
#ssl is an alias for openssl. If both ssl and gnutls are enabled, automagic will
15
#enable only gnutls.
16
DEPEND="ssl? (
17
	!gnutls? ( >=dev-libs/openssl-0.9.8g )
18
	gnutls? ( >=net-libs/gnutls-2.2.2 )
19
	)"
13
20
14
src_compile() {
21
pkg_setup() {
15
	myconf=
22
	myconf=" --disable-stripping
23
		$(use_enable ssl openssl)
24
		$(use_enable gnutls gnutls)"
25
26
}
16
27
17
	if use !ssl; then
28
src_unpack() {
18
		# broken configure, use_enable doesn't work right
29
	unpack ${A}
19
		myconf="${myconf} --disable-ssl"
30
	cd "${S}"
20
	fi
31
	epatch "${FILESDIR}/01_${P}-gcc43.patch"
32
	epatch "${FILESDIR}/02_${P}-nossl.patch"
33
	epatch "${FILESDIR}/03_${P}-c++0x-integrated.patch"
34
	epatch "${FILESDIR}/04_${P}-warnings.patch"
35
	epatch "${FILESDIR}/05_${P}-fix-version.patch"
21
36
37
	eautoreconf
38
}
39
40
src_compile() {
22
	econf ${myconf} || die
41
	econf ${myconf} || die
23
	emake || die
42
	emake || die
24
}
43
}
25
44
26
src_install() {
45
src_install() {
27
	dosbin postal postal-list rabid
46
	emake DESTDIR="${D}" install || die
28
	doman postal-list.8 postal.8 rabid.8
47
29
}
48
}

Return to bug 219092