#inherit eutils DESCRIPTION="GNU radius authentication server" HOMEPAGE="http://www.gnu.org/software/radius/radius.html" SRC_URI="ftp://ftp.gnu.org/gnu/radius/${P}.tar.gz" LICENSE="GPL2" SLOT="0" KEYWORDS="~x86" IUSE="mysql postgres pam" DEPEND="mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql ) pam? ( sys-libs/pam )" S=${WORKDIR}/${P} src_compile() { local myconf="" use mysql && myconf="${myconf} --with-mysql" use postgres && myconf="${myconf} --with-postgres" use pam && myconf="${myconf} --enable-pam" econf ${myconf} || die emake || die "emake failed" } src_install() { einstall || die }