# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Userspace tools for kernel L2TP implementation." HOMEPAGE="http://openl2tp.sourceforge.net" SRC_URI="mirror://sourceforge/openl2tp/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc" DEPEND="sys-libs/readline =net-dialup/ppp-2.4.4* || ( >=sys-kernel/vanilla-sources-2.6.23 >=sys-kernel/gentoo-sources-2.6.23 )" RDEPEND="net-nds/rpcbind ${DEPEND}" # This prevents some weird error with the openl2tp Makefile regarding -Werror # being passed where it shouldn't be going. unset CFLAGS src_unpack() { unpack ${A} cd "${S}" # epatch "debian/patches/01_rm_unused.patch" } src_compile() { emake || die "Build failed." } src_install() { emake DESTDIR=${D} install || die "Install failed." if use doc; then dodoc README CHANGES doc/*.txt fi newinitd "${FILESDIR}"/openl2tp.initd openl2tp }