/[gentoo-x86]/net-misc/l2tpd/l2tpd-0.69.ebuild
Gentoo

Contents of /net-misc/l2tpd/l2tpd-0.69.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Nov 17 19:54:23 2003 UTC (16 years ago) by lanius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
moved l2tpd from net-misc to net-dialup

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/l2tpd/l2tpd-0.69.ebuild,v 1.4 2003/07/13 14:31:36 aliz Exp $
4
5 DESCRIPTION="Layer 2 Tunnelling Protocol Daemon"
6 HOMEPAGE="http://www.l2tpd.org/"
7 SRC_URI="http://www.l2tpd.org/downloads/${P}.tar.gz"
8 # http://www.jacco2.dds.nl/networking/freeswanl2tpconfig-1.1.tgz"
9 DEPEND="virtual/glibc"
10 LICENSE="GPL-2"
11 KEYWORDS="x86"
12 SLOT="0"
13 IUSE=""
14
15 src_unpack() {
16 unpack ${A} || die
17 cd ${S} || die
18
19 #compile optimized
20 cp Makefile Makefile.orig
21 sed -e "s|-g -O2|${CFLAGS}|" Makefile.orig >Makefile
22 #-e "s|^#\(OSFLAGS+= -DUSE_KERNEL\)|\1|" \
23 #^wants an #include <linux/l2tp>
24
25 #make sure these stay just like so
26 cp file.h file.h.orig
27 sed -e 's|\(#define DEFAULT_AUTH_FILE \).*|\1"/etc/l2tpd/l2tp-secrets"|' \
28 -e 's|\(#define DEFAULT_CONFIG_FILE \).*|\1"/etc/l2tpd/l2tpd.conf"|' \
29 -e 's|\(#define DEFAULT_PID_FILE \).*|\1"/var/run/l2tpd.pid"|' \
30 file.h.orig >file.h
31 }
32
33 src_compile() {
34 emake || die
35 }
36
37 src_install() {
38 dosbin l2tpd
39 doman doc/*.[85]
40
41 dodoc BUGS CHANGELOG LICENSE CREDITS README TODO \
42 doc/rfc2661.txt doc/*.sample
43 #cp -a ../freeswanl2tpconfig ${D}/usr/share/doc/${PF}
44 #chown -R root.root ${D}/usr/share/doc/${PF}
45 #mv ${D}/usr/share/doc/${PF}/freeswanl2tpconfig \
46 # ${D}/usr/share/doc/${PF}/samples
47
48 insinto /etc/l2tpd
49 newins doc/l2tp-secrets.sample l2tp-secrets
50 newins doc/l2tpd.conf.sample l2tpd.conf
51
52 exeinto /etc/init.d
53 newexe ${FILESDIR}/l2tpd-init l2tpd
54 }

  ViewVC Help
Powered by ViewVC 1.1.20