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 = http://ppp.samba.org/
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
23 source_dl = ftp://ftp.samba.org/pub/ppp/
35 # Explicitely add -fPIC to CFLAGS.
39 sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
40 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
43 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
44 -i pppd/plugins/pppol2tp/Makefile.linux
46 # Remove broken header file that crashed the build.
47 rm -f include/linux/if_pppol2tp.h
50 make_build_targets += \
54 make install INSTROOT=%{BUILDROOT}
56 rm -rfv %{BUILDROOT}/etc/ppp/plugins
58 mkdir -pv %{BUILDROOT}/etc/ppp
59 touch %{BUILDROOT}/etc/ppp/secrets
60 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
61 ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
62 ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
64 mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp
65 mkdir -pv %{BUILDROOT}/run/ppp
72 /usr/lib/network/helpers/pppd-angel
76 systemctl daemon-reload >/dev/null 2>&1 || :
80 systemctl daemon-reload >/dev/null 2>&1 || :
84 systemctl daemon-reload >/dev/null 2>&1 || :
92 package %{name}-debuginfo