# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="An updated version of Cisco's TACACS+ server" HOMEPAGE="http://www.shrubbery.net/tac_plus/" SRC_URI="ftp://ftp.shrubbery.net/pub/tac_plus/tacacs+-F${PV}.tar.gz" LICENSE="cisco-tac_plus" SLOT="0" KEYWORDS="~x86" IUSE="skey finger debug" DEPEND="skey? ( >=app-admin/skey-1.1.5-r1 )" S=${WORKDIR}/tacacs+-F${PV} src_compile() { local myconf use debug && myconf="--enable-debug --enable-warn" econf \ `use_with skey` \ `use_with finger` \ ${myconf} \ || die "econf failed" emake || die } src_install() { einstall || die dodoc CHANGES COPYING FAQ INSTALL exeinto /etc/init.d ; newexe ${FILESDIR}/tac_plus.init tac_plus || die insinto /etc/tac_plus ; newins ${FILESDIR}/tac_plus.conf tac_plus.conf || die insinto /etc/conf.d ; newins ${FILESDIR}/tac_plus.confd tac_plus || die }