]> git.ipfire.org Git - ipfire-3.x.git/blob - ppp/ppp.nm
git: Update to 2.23.0
[ipfire-3.x.git] / ppp / ppp.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ppp
7 version = 2.4.6
8 release = 3
9
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.
14
15 description
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.
21 end
22
23 source_dl = ftp://ftp.samba.org/pub/ppp/
24
25 build
26 requires
27 libpcap-devel
28 libudev-devel
29 linux-atm-devel
30 openssl-devel
31 pam-devel
32 systemd-units
33 end
34
35 prepare_cmds
36 sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
37 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
38 -i linux/Makefile.top
39
40 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
41 -i pppd/plugins/pppol2tp/Makefile.linux
42
43 # Remove broken header file that crashed the build.
44 rm -f include/linux/if_pppol2tp.h
45 end
46
47 make_build_targets += \
48 CC="gcc %{CFLAGS} %{LDFLAGS}"
49
50 install
51 make install INSTROOT=%{BUILDROOT}
52
53 rm -rfv %{BUILDROOT}/etc/ppp/plugins
54
55 mkdir -pv %{BUILDROOT}/etc/ppp
56 touch %{BUILDROOT}/etc/ppp/secrets
57 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
58 ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
59 ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
60
61 mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp
62 mkdir -pv %{BUILDROOT}/run/ppp
63 end
64 end
65
66 packages
67 package %{name}
68 requires
69 /usr/lib/network/helpers/pppd-angel
70 end
71
72 script postin
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 end
75
76 script postup
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 end
79
80 script postun
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 end
83 end
84
85 package %{name}-devel
86 template DEVEL
87 end
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
92 end