]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - ppp/ppp.nm
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[people/amarx/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
MT
6name = ppp
7version = 2.4.5
cd069e94 8release = 5
fa4c11b5 9
802ea3af
MT
10groups = System/Daemons
11url = ftp://ftp.samba.org/pub/ppp/
12license = BSD and LGPLv2+ and GPLv2+ and Public Domain
13summary = The PPP (Point-to-Point Protocol) daemon.
fa4c11b5 14
802ea3af 15description
fa4c11b5
MT
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.
802ea3af
MT
21end
22
23source_dl =
24
25build
26 requires
27 libpcap-devel
28 linux-atm-devel
29 openssl-devel
30 pam-devel
cd069e94 31 systemd-units
802ea3af
MT
32 end
33
12a96ed0
MT
34 # Explicitely add -fPIC to CFLAGS.
35 CFLAGS += -fPIC
36
802ea3af 37 prepare_cmds
cd3ed4fd 38 sed -e "s@^RUNDIR .*@RUNDIR = /run/ppp@" \
802ea3af
MT
39 -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
40 -i linux/Makefile.top
41
42 sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
43 -i pppd/plugins/pppol2tp/Makefile.linux
44
45 # Remove broken header file that crashed the build.
46 rm -f include/linux/if_pppol2tp.h
47 end
48
49 make_build_targets += \
50 CC="gcc %{CFLAGS}"
51
52 install
53 make install INSTROOT=%{BUILDROOT}
54
55 rm -rfv %{BUILDROOT}/etc/ppp/plugins
56
57 mkdir -pv %{BUILDROOT}/etc/ppp
58 touch %{BUILDROOT}/etc/ppp/secrets
59 chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
60 ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
61 ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
62 end
63end
64
65packages
66 package %{name}
cd069e94
MT
67 script postin
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70
71 script postup
72 systemctl daemon-reload >/dev/null 2>&1 || :
73 end
74
75 script postun
76 systemctl daemon-reload >/dev/null 2>&1 || :
77 end
78 end
1f9bc2f0 79
802ea3af
MT
80 package %{name}-devel
81 template DEVEL
82 end
1f9bc2f0
MT
83
84 package %{name}-debuginfo
85 template DEBUGINFO
86 end
802ea3af 87end