blob: 3b880e25830f9f14f71f3896bde1ee5b4a029723 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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"
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
}
|