blob: 2acdf209930e7209e6d1be5e75933d410651e0ea (
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
46
47
48
49
50
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/l2tpd/l2tpd-0.70_pre20031121.ebuild,v 1.3 2005/05/13 04:25:09 mrness Exp $
inherit eutils
DESCRIPTION="Layer 2 Tunnelling Protocol Daemon"
HOMEPAGE="http://l2tpd.snapgear.org/"
MY_P="l2tpd_0.70-pre20031121"
S="${WORKDIR}/${P/_/-}.orig"
SRC_URI="http://ftp.debian.org/debian/pool/main/l/l2tpd/${MY_P}.orig.tar.gz
http://ftp.debian.org/debian/pool/main/l/l2tpd/${MY_P}-2.diff.gz"
DEPEND="virtual/libc
>=sys-apps/sed-4"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
SLOT="0"
IUSE=""
src_unpack() {
unpack ${MY_P}.orig.tar.gz || die
epatch ${DISTDIR}/${MY_P}-2.diff.gz || die
cd ${S} || die
#Put CFLAGS from make.conf and disable builtin definition of log function
sed -i.orig -e "s|-ggdb|${CFLAGS} -fno-builtin-log|" Makefile || die
}
src_compile() {
emake || die
}
src_install() {
dosbin l2tpd
doman doc/*.[85]
doman *.[85]
dodoc BUGS CHANGELOG LICENSE CREDITS README TODO \
doc/rfc2661.txt doc/*.sample
insinto /etc/l2tpd
newins doc/l2tp-secrets.sample l2tp-secrets
newins doc/l2tpd.conf.sample l2tpd.conf
exeinto /etc/init.d
newexe ${FILESDIR}/l2tpd-init l2tpd
}
|