]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - ppp/ppp.nm
glibc: Disable multilib support on X86_64
[people/stevee/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
10f472d0 7version = 2.4.9
43d20aa0 8release = 4
fa4c11b5 9
802ea3af 10groups = System/Daemons
10f472d0 11url = https://ppp.samba.org/
802ea3af 12license = BSD and LGPLv2+ and GPLv2+ and Public Domain
10f472d0 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
10f472d0 23source_dl = https://download.samba.org/pub/ppp/
802ea3af
MT
24
25build
26 requires
27 libpcap-devel
a373e543 28 libudev-devel
8ec58cde 29 libxcrypt-devel
802ea3af
MT
30 openssl-devel
31 pam-devel
8ec58cde 32 systemd-devel
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 60
43d20aa0
SS
61 # Fix binary permissions.
62 find %{BUILDROOT}%{sbindir} -type f -executable \
63 -exec chmod 755 {} \;
802ea3af
MT
64 end
65end
66
67packages
68 package %{name}
291f753b
MT
69 #requires
70 # /usr/lib/network/helpers/pppd-angel
71 #end
901ed44a 72
cd069e94
MT
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
1f9bc2f0 85
802ea3af
MT
86 package %{name}-devel
87 template DEVEL
88 end
1f9bc2f0
MT
89
90 package %{name}-debuginfo
91 template DEBUGINFO
92 end
802ea3af 93end