1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Daemons
11 url = ftp://ftp.samba.org/pub/ppp/
12 license = BSD and LGPLv2+ and GPLv2+ and Public Domain
13 summary = The PPP (Point-to-Point Protocol) daemon.
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 \
33 # Explicitely add -fPIC to CFLAGS.
37 sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
38 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
41 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
42 -i pppd/plugins/pppol2tp/Makefile.linux
44 # Remove broken header file that crashed the build.
45 rm -f include/linux/if_pppol2tp.h
48 make_build_targets += \
52 make install INSTROOT=%{BUILDROOT}
54 rm -rfv %{BUILDROOT}/etc/ppp/plugins
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
71 package %{name}-debuginfo