]> git.ipfire.org Git - ipfire-3.x.git/blob - ppp/ppp.nm
apr: Update to version 1.7.4
[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.5.0
8 release = 1
9
10 groups = System/Daemons
11 url = https://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 = https://download.samba.org/pub/ppp/
24
25 build
26 requires
27 autoconf
28 automake
29 libpcap-devel
30 libudev-devel
31 libxcrypt-devel
32 openssl-devel
33 pam-devel
34 systemd-devel
35 end
36
37 configure_options += --with-logfile-dir=/var/log
38
39 install
40 make install INSTROOT=%{BUILDROOT}
41
42 touch /var/log/connect-errors
43 mkdir -pv %{BUILDROOT}/etc/ppp
44
45 # Reminder note
46 # code used to be here to copy across IPFire2.x dialler etc scripts
47 # something to replace those for IPFire3.x is likely nedeed somewhere
48
49 touch %{BUILDROOT}/etc/ppp/secrets
50 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
51 ln -svf %{BUILDROOT}/etc/ppp/secrets /etc/ppp/pap-secrets
52 ln -svf %{BUILDROOT}/etc/ppp/secrets /etc/ppp/chap-secrets
53 end
54 end
55
56 packages
57 package %{name}
58
59 script postin
60 systemctl daemon-reload >/dev/null 2>&1 || :
61 end
62
63 script postup
64 systemctl daemon-reload >/dev/null 2>&1 || :
65 end
66
67 script postun
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70 end
71
72 package %{name}-devel
73 template DEVEL
74 end
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
79 end