1SUMMARY = "Point-to-Point Protocol (PPP) support"
2DESCRIPTION = "ppp (Paul's PPP Package) is an open source package which implements \
3the Point-to-Point Protocol (PPP) on Linux and Solaris systems."
4SECTION = "console/network"
5HOMEPAGE = "http://samba.org/ppp/"
6BUGTRACKER = "http://ppp.samba.org/cgi-bin/ppp-bugs"
7DEPENDS = "libpcap openssl virtual/crypt"
8LICENSE = "BSD-3-Clause & BSD-3-Clause-Attribution & GPL-2.0-or-later & LGPL-2.0-or-later & PD"
9LIC_FILES_CHKSUM = "file://pppd/ccp.c;beginline=1;endline=29;md5=e2c43fe6e81ff77d87dc9c290a424dea \
10                    file://pppd/plugins/passprompt.c;beginline=1;endline=10;md5=3bcbcdbf0e369c9a3e0b8c8275b065d8 \
11                    file://pppd/tdb.c;beginline=1;endline=27;md5=4ca3a9991b011038d085d6675ae7c4e6 \
12                    file://chat/chat.c;beginline=1;endline=15;md5=0d374b8545ee5c62d7aff1acbd38add2"
13
14SRC_URI = "https://download.samba.org/pub/${BPN}/${BP}.tar.gz \
15           file://pon \
16           file://poff \
17           file://init \
18           file://ip-up \
19           file://ip-down \
20           file://08setupdns \
21           file://92removedns \
22           file://pap \
23           file://ppp_on_boot \
24           file://provider \
25           file://ppp@.service \
26           "
27
28SRC_URI[sha256sum] = "5cae0e8075f8a1755f16ca290eb44e6b3545d3f292af4da65ecffe897de636ff"
29
30inherit autotools systemd
31
32EXTRA_OECONF += "--with-openssl=${STAGING_EXECPREFIXDIR}"
33
34do_install:append () {
35	mkdir -p ${D}${bindir}/ ${D}${sysconfdir}/init.d
36	mkdir -p ${D}${sysconfdir}/ppp/ip-up.d/
37	mkdir -p ${D}${sysconfdir}/ppp/ip-down.d/
38	install -m 0755 ${WORKDIR}/pon ${D}${bindir}/pon
39	install -m 0755 ${WORKDIR}/poff ${D}${bindir}/poff
40	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ppp
41	install -m 0755 ${WORKDIR}/ip-up ${D}${sysconfdir}/ppp/
42	install -m 0755 ${WORKDIR}/ip-down ${D}${sysconfdir}/ppp/
43	install -m 0755 ${WORKDIR}/08setupdns ${D}${sysconfdir}/ppp/ip-up.d/
44	install -m 0755 ${WORKDIR}/92removedns ${D}${sysconfdir}/ppp/ip-down.d/
45	mkdir -p ${D}${sysconfdir}/chatscripts
46	mkdir -p ${D}${sysconfdir}/ppp/peers
47	install -m 0755 ${WORKDIR}/pap ${D}${sysconfdir}/chatscripts
48	install -m 0755 ${WORKDIR}/ppp_on_boot ${D}${sysconfdir}/ppp/ppp_on_boot
49	install -m 0755 ${WORKDIR}/provider ${D}${sysconfdir}/ppp/peers/provider
50	install -d ${D}${systemd_system_unitdir}
51	install -m 0644 ${WORKDIR}/ppp@.service ${D}${systemd_system_unitdir}
52	sed -i -e 's,@SBINDIR@,${sbindir},g' \
53	       ${D}${systemd_system_unitdir}/ppp@.service
54}
55
56CONFFILES:${PN} = "${sysconfdir}/ppp/pap-secrets ${sysconfdir}/ppp/chap-secrets ${sysconfdir}/ppp/options"
57PACKAGES =+ "${PN}-oa ${PN}-oe ${PN}-radius ${PN}-winbind ${PN}-minconn ${PN}-password ${PN}-l2tp ${PN}-tools"
58FILES:${PN}        = "${sysconfdir} ${bindir} ${sbindir}/chat ${sbindir}/pppd ${systemd_system_unitdir}/ppp@.service"
59FILES:${PN}-oa       = "${libdir}/pppd/${PV}/pppoatm.so"
60FILES:${PN}-oe       = "${sbindir}/pppoe-discovery ${libdir}/pppd/${PV}/*pppoe.so"
61FILES:${PN}-radius   = "${libdir}/pppd/${PV}/radius.so ${libdir}/pppd/${PV}/radattr.so ${libdir}/pppd/${PV}/radrealms.so"
62FILES:${PN}-winbind  = "${libdir}/pppd/${PV}/winbind.so"
63FILES:${PN}-minconn  = "${libdir}/pppd/${PV}/minconn.so"
64FILES:${PN}-password = "${libdir}/pppd/${PV}/pass*.so"
65FILES:${PN}-l2tp     = "${libdir}/pppd/${PV}/*l2tp.so"
66FILES:${PN}-tools    = "${sbindir}/pppstats ${sbindir}/pppdump"
67SUMMARY:${PN}-oa       = "Plugin for PPP for PPP-over-ATM support"
68SUMMARY:${PN}-oe       = "Plugin for PPP for PPP-over-Ethernet support"
69SUMMARY:${PN}-radius   = "Plugin for PPP for RADIUS support"
70SUMMARY:${PN}-winbind  = "Plugin for PPP to authenticate against Samba or Windows"
71SUMMARY:${PN}-minconn  = "Plugin for PPP to set a delay before the idle timeout applies"
72SUMMARY:${PN}-password = "Plugin for PPP to get passwords via a pipe"
73SUMMARY:${PN}-l2tp     = "Plugin for PPP for l2tp support"
74SUMMARY:${PN}-tools    = "Additional tools for the PPP package"
75
76