]> git.ipfire.org Git - ipfire-3.x.git/blob - ppp/ppp.nm
systemd: Build manpages again
[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.9
8 release = 4
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 libpcap-devel
28 libudev-devel
29 libxcrypt-devel
30 openssl-devel
31 pam-devel
32 systemd-devel
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 # Fix binary permissions.
62 find %{BUILDROOT}%{sbindir} -type f -executable \
63 -exec chmod 755 {} \;
64 end
65 end
66
67 packages
68 package %{name}
69 #requires
70 # /usr/lib/network/helpers/pppd-angel
71 #end
72
73 script postin
74 systemctl daemon-reload >/dev/null 2>&1 || :
75 end
76
77 script postup
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80
81 script postun
82 systemctl daemon-reload >/dev/null 2>&1 || :
83 end
84 end
85
86 package %{name}-devel
87 template DEVEL
88 end
89
90 package %{name}-debuginfo
91 template DEBUGINFO
92 end
93 end