]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - ppp/ppp.nm
libselinux: Update to new upstream version 2.1.10.
[people/amarx/ipfire-3.x.git] / ppp / ppp.nm
CommitLineData
fa4c11b5 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
fa4c11b5
MT
4###############################################################################
5
802ea3af
MT
6name = ppp
7version = 2.4.5
12a96ed0 8release = 3
fa4c11b5 9
802ea3af
MT
10groups = System/Daemons
11url = ftp://ftp.samba.org/pub/ppp/
12license = BSD and LGPLv2+ and GPLv2+ and Public Domain
13summary = The PPP (Point-to-Point Protocol) daemon.
fa4c11b5 14
802ea3af 15description
fa4c11b5
MT
16 The ppp package contains the PPP (Point-to-Point Protocol) daemon and \
17 documentation for PPP support. The PPP protocol provides a method for \
18 transmitting datagrams over serial point-to-point links. PPP is \
19 usually used to dial in to an ISP or other organization over a modem \
20 and phone line.
802ea3af
MT
21end
22
23source_dl =
24
25build
26 requires
27 libpcap-devel
28 linux-atm-devel
29 openssl-devel
30 pam-devel
31 end
32
12a96ed0
MT
33 # Explicitely add -fPIC to CFLAGS.
34 CFLAGS += -fPIC
35
802ea3af
MT
36 prepare_cmds
37 sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
38 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
39 -i linux/Makefile.top
40
41 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
42 -i pppd/plugins/pppol2tp/Makefile.linux
43
44 # Remove broken header file that crashed the build.
45 rm -f include/linux/if_pppol2tp.h
46 end
47
48 make_build_targets += \
49 CC="gcc %{CFLAGS}"
50
51 install
52 make install INSTROOT=%{BUILDROOT}
53
54 rm -rfv %{BUILDROOT}/etc/ppp/plugins
55
56 mkdir -pv %{BUILDROOT}/etc/ppp
57 touch %{BUILDROOT}/etc/ppp/secrets
58 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
59 ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
60 ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
61 end
62end
63
64packages
65 package %{name}
1f9bc2f0 66
802ea3af
MT
67 package %{name}-devel
68 template DEVEL
69 end
1f9bc2f0
MT
70
71 package %{name}-debuginfo
72 template DEBUGINFO
73 end
802ea3af 74end