Index: qpopper-4.0.5-r2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-mail/qpopper/qpopper-4.0.5-r2.ebuild,v --- qpopper-4.0.5-r2.ebuild 1.2 +++ qpopper-4.0.5-r2.ebuild @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/qpopper/qpopper-4.0.5-r2.ebuild,v 1.2 2005/02/14 13:49:32 plasmaroo Exp $ +inherit eutils + IUSE="debug gdbm mailbox pam ssl xinetd" S=${WORKDIR}/${PN}${PV} @@ -15,17 +17,23 @@ gdbm? ( sys-libs/gdbm ) !gdbm? ( sys-libs/db ) pam? ( - >=sys-libs/pam-0.72 - >=net-mail/mailbase-0.00-r8 - ) + >=sys-libs/pam-0.72 + >=net-mail/mailbase-0.00-r8 + ) ssl? ( dev-libs/openssl )" SLOT="0" LICENSE="qpopper" KEYWORDS="~x86 ~sparc ~amd64" -src_compile() { +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}/${PN}-CAN-2005-1151.patch" || die "first patch failed" + epatch "${FILESDIR}/${PN}-CAN-2005-1152.patch" || die "second patch failed" +} +src_compile() { local myconf use pam && myconf="${myconf} --with-pam=pop3"