]>
Commit | Line | Data |
---|---|---|
589a3454 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
589a3454 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = openl2tp |
7 | version = 1.7 | |
f5d8aeeb | 8 | release = 2 |
802ea3af MT |
9 | |
10 | groups = Networking/PPP | |
11 | url = http://www.openl2tp.org/ | |
12 | license = GPL | |
13 | summary = A Linux L2TP solution for enterprise VPN and ISPs. | |
14 | ||
15 | description | |
16 | OpenL2TP is an open source L2TP client / server, written specifically | |
17 | for Linux. It has been designed for use as an enterprise L2TP VPN | |
18 | server or in commercial, Linux-based, embedded networking products and | |
19 | is able to support hundreds of sessions, each with different | |
20 | configuration. It is used by several ISPs to provide L2TP services and | |
589a3454 | 21 | by corporations to implement L2TP VPNs. |
802ea3af | 22 | end |
589a3454 | 23 | |
802ea3af | 24 | source_dl = |
589a3454 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
28 | bison | |
29 | flex | |
30 | flex-devel | |
31 | readline-devel | |
32 | tcl | |
33 | end | |
589a3454 | 34 | |
802ea3af | 35 | CFLAGS += -fno-strict-aliasing |
589a3454 | 36 | |
802ea3af MT |
37 | prepare_cmds |
38 | sed -e "s/-lfl/&_pic/g" -i Makefile | |
f5d8aeeb MT |
39 | |
40 | # Remove -Werror from all makefiles. | |
41 | find . -name Makefile | xargs sed -i -e "s/-Werror//g" | |
802ea3af MT |
42 | end |
43 | ||
44 | build | |
f5d8aeeb | 45 | make OPT_CFLAGS="%{CFLAGS}" ARCH="%{DISTRO_ARCH}" \ |
802ea3af MT |
46 | KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5" |
47 | end | |
589a3454 MT |
48 | |
49 | # This doesn't really a good testing | |
802ea3af MT |
50 | #define test |
51 | # cd %{DIR_APP} && make test | |
589a3454 MT |
52 | #endef |
53 | ||
802ea3af | 54 | install |
f5d8aeeb | 55 | make install DESTDIR=%{BUILDROOT} ARCH="%{DISTRO_ARCH}" \ |
802ea3af MT |
56 | KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5" |
57 | end | |
58 | end | |
59 | ||
60 | packages | |
61 | package %{name} | |
1f9bc2f0 MT |
62 | |
63 | package %{name}-debuginfo | |
64 | template DEBUGINFO | |
65 | end | |
802ea3af | 66 | end |