]>
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 MT |
6 | name = ppp |
7 | version = 2.4.5 | |
901ed44a | 8 | release = 6 |
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 | |
28 | linux-atm-devel | |
29 | openssl-devel | |
30 | pam-devel | |
cd069e94 | 31 | systemd-units |
802ea3af MT |
32 | end |
33 | ||
12a96ed0 MT |
34 | # Explicitely add -fPIC to CFLAGS. |
35 | CFLAGS += -fPIC | |
36 | ||
802ea3af | 37 | prepare_cmds |
cd3ed4fd | 38 | sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \ |
802ea3af MT |
39 | -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \ |
40 | -i linux/Makefile.top | |
41 | ||
42 | sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \ | |
43 | -i pppd/plugins/pppol2tp/Makefile.linux | |
44 | ||
45 | # Remove broken header file that crashed the build. | |
46 | rm -f include/linux/if_pppol2tp.h | |
47 | end | |
48 | ||
49 | make_build_targets += \ | |
50 | CC="gcc %{CFLAGS}" | |
51 | ||
52 | install | |
53 | make install INSTROOT=%{BUILDROOT} | |
54 | ||
55 | rm -rfv %{BUILDROOT}/etc/ppp/plugins | |
56 | ||
57 | mkdir -pv %{BUILDROOT}/etc/ppp | |
58 | touch %{BUILDROOT}/etc/ppp/secrets | |
59 | chmod -v 600 %{BUILDROOT}/etc/ppp/secrets | |
60 | ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets | |
61 | ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets | |
901ed44a SS |
62 | |
63 | mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp | |
64 | mkdir -pv %{BUILDROOT}/run/ppp | |
802ea3af MT |
65 | end |
66 | end | |
67 | ||
68 | packages | |
69 | package %{name} | |
901ed44a SS |
70 | requires |
71 | /usr/lib/network/helpers/pppd-angel | |
72 | end | |
73 | ||
cd069e94 MT |
74 | script postin |
75 | systemctl daemon-reload >/dev/null 2>&1 || : | |
76 | end | |
77 | ||
78 | script postup | |
79 | systemctl daemon-reload >/dev/null 2>&1 || : | |
80 | end | |
81 | ||
82 | script postun | |
83 | systemctl daemon-reload >/dev/null 2>&1 || : | |
84 | end | |
85 | end | |
1f9bc2f0 | 86 | |
802ea3af MT |
87 | package %{name}-devel |
88 | template DEVEL | |
89 | end | |
1f9bc2f0 MT |
90 | |
91 | package %{name}-debuginfo | |
92 | template DEBUGINFO | |
93 | end | |
802ea3af | 94 | end |