]> git.ipfire.org Git - ipfire-3.x.git/blame - ppp/ppp.nm
kernel: udpate to 5.2
[ipfire-3.x.git] / ppp / ppp.nm
CommitLineData
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 6name = ppp
a373e543 7version = 2.4.6
e5f225d6 8release = 3
fa4c11b5 9
802ea3af 10groups = System/Daemons
901ed44a 11url = http://ppp.samba.org/
802ea3af
MT
12license = BSD and LGPLv2+ and GPLv2+ and Public Domain
13summary = The PPP (Point-to-Point Protocol) daemon.
fa4c11b5 14
802ea3af 15description
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
21end
22
901ed44a 23source_dl = ftp://ftp.samba.org/pub/ppp/
802ea3af
MT
24
25build
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
35 prepare_cmds
cd3ed4fd 36 sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
802ea3af
MT
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 += \
e5f225d6 48 CC="gcc %{CFLAGS} %{LDFLAGS}"
802ea3af
MT
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
901ed44a
SS
60
61 mkdir -pv %{BUILDROOT}%{localstatedir}/lock/ppp
62 mkdir -pv %{BUILDROOT}/run/ppp
802ea3af
MT
63 end
64end
65
66packages
67 package %{name}
901ed44a
SS
68 requires
69 /usr/lib/network/helpers/pppd-angel
70 end
71
cd069e94
MT
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
1f9bc2f0 84
802ea3af
MT
85 package %{name}-devel
86 template DEVEL
87 end
1f9bc2f0
MT
88
89 package %{name}-debuginfo
90 template DEBUGINFO
91 end
802ea3af 92end