]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = ppp |
a373e543 | 7 | version = 2.4.6 |
cba4ea7b | 8 | release = 2 |
fa4c11b5 | 9 | |
802ea3af | 10 | groups = System/Daemons |
901ed44a | 11 | url = http://ppp.samba.org/ |
802ea3af MT |
12 | license = BSD and LGPLv2+ and GPLv2+ and Public Domain |
13 | summary = The PPP (Point-to-Point Protocol) daemon. | |
fa4c11b5 | 14 | |
802ea3af | 15 | description |
901ed44a SS |
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 | |
fa4c11b5 | 20 | and phone line. |
802ea3af MT |
21 | end |
22 | ||
901ed44a | 23 | source_dl = ftp://ftp.samba.org/pub/ppp/ |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
27 | libpcap-devel | |
a373e543 | 28 | libudev-devel |
802ea3af MT |
29 | linux-atm-devel |
30 | openssl-devel | |
31 | pam-devel | |
cd069e94 | 32 | systemd-units |
802ea3af MT |
33 | end |
34 | ||
12a96ed0 MT |
35 | # Explicitely add -fPIC to CFLAGS. |
36 | CFLAGS += -fPIC | |
37 | ||
802ea3af | 38 | prepare_cmds |
cd3ed4fd | 39 | sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \ |
802ea3af MT |
40 | -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \ |
41 | -i linux/Makefile.top | |
42 | ||
43 | sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \ | |
44 | -i pppd/plugins/pppol2tp/Makefile.linux | |
45 | ||
46 | # Remove broken header file that crashed the build. | |
47 | rm -f include/linux/if_pppol2tp.h | |
48 | end | |
49 | ||
50 | make_build_targets += \ | |
51 | CC="gcc %{CFLAGS}" | |
52 | ||
53 | install | |
54 | make install INSTROOT=%{BUILDROOT} | |
55 | ||
56 | rm -rfv %{BUILDROOT}/etc/ppp/plugins | |
57 | ||
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 | |
901ed44a SS |
63 | |
64 | mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp | |
65 | mkdir -pv %{BUILDROOT}/run/ppp | |
802ea3af MT |
66 | end |
67 | end | |
68 | ||
69 | packages | |
70 | package %{name} | |
901ed44a SS |
71 | requires |
72 | /usr/lib/network/helpers/pppd-angel | |
73 | end | |
74 | ||
cd069e94 MT |
75 | script postin |
76 | systemctl daemon-reload >/dev/null 2>&1 || : | |
77 | end | |
78 | ||
79 | script postup | |
80 | systemctl daemon-reload >/dev/null 2>&1 || : | |
81 | end | |
82 | ||
83 | script postun | |
84 | systemctl daemon-reload >/dev/null 2>&1 || : | |
85 | end | |
86 | end | |
1f9bc2f0 | 87 | |
802ea3af MT |
88 | package %{name}-devel |
89 | template DEVEL | |
90 | end | |
1f9bc2f0 MT |
91 | |
92 | package %{name}-debuginfo | |
93 | template DEBUGINFO | |
94 | end | |
802ea3af | 95 | end |