]>
Commit | Line | Data |
---|---|---|
fa4c11b5 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = ppp | |
e759d93f | 28 | PKG_VER = 2.4.5 |
fa4c11b5 MT |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = System/Daemons | |
33 | PKG_URL = ftp://ftp.samba.org/pub/ppp/ | |
34 | PKG_LICENSE = BSD and LGPLv2+ and GPLv2+ and Public Domain | |
35 | PKG_SUMMARY = The PPP (Point-to-Point Protocol) daemon. | |
36 | ||
e59aa94a | 37 | PKG_BUILD_DEPS+= libpcap-devel linux-atm-devel pam-devel |
fa4c11b5 MT |
38 | |
39 | define PKG_DESCRIPTION | |
40 | The ppp package contains the PPP (Point-to-Point Protocol) daemon and \ | |
41 | documentation for PPP support. The PPP protocol provides a method for \ | |
42 | transmitting datagrams over serial point-to-point links. PPP is \ | |
43 | usually used to dial in to an ISP or other organization over a modem \ | |
44 | and phone line. | |
45 | endef | |
46 | ||
47 | PKG_TARBALL = $(THISAPP).tar.gz | |
48 | ||
e59aa94a MT |
49 | PKG_PACKAGES += $(PKG_NAME)-devel |
50 | ||
fa4c11b5 MT |
51 | define STAGE_PREPARE_CMDS |
52 | cd $(DIR_APP) && sed -e "s/^LIBS =/LIBS=-lutil/" -i pppd/Makefile.linux | |
53 | ||
54 | cd $(DIR_APP) && sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \ | |
55 | -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \ | |
56 | -i linux/Makefile.top | |
2d1f6320 MT |
57 | |
58 | cd $(DIR_APP) && sed -e "s@^DESTDIR.*@DESTDIR=\$$(INSTROOT)/usr@" \ | |
59 | -i pppd/plugins/pppol2tp/Makefile.linux | |
fa4c11b5 MT |
60 | endef |
61 | ||
62 | define STAGE_BUILD | |
63 | cd $(DIR_APP) && \ | |
64 | ./configure \ | |
65 | --prefix=/usr | |
66 | ||
67 | cd $(DIR_APP) && make CC="gcc $(CFLAGS)" $(PARALLELISMFLAGS) \ | |
68 | HAVE_INET6=yes USE_PAM=y | |
69 | endef | |
70 | ||
71 | define STAGE_INSTALL | |
72 | cd $(DIR_APP) && make install INSTROOT=$(BUILDROOT) | |
73 | ||
74 | rm -rfv $(BUILDROOT)/etc/ppp/plugins | |
75 | ||
76 | -mkdir -pv $(BUILDROOT)/etc/ppp | |
77 | touch $(BUILDROOT)/etc/ppp/secrets | |
78 | chmod -v 600 $(BUILDROOT)/etc/ppp/secrets | |
79 | ln -svf secrets $(BUILDROOT)/etc/ppp/pap-secrets | |
80 | ln -svf secrets $(BUILDROOT)/etc/ppp/chap-secrets | |
fa4c11b5 | 81 | endef |