Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Point-to-Point Protocol (PPP) support" |
| 2 | DESCRIPTION = "ppp (Paul's PPP Package) is an open source package which implements \ |
| 3 | the Point-to-Point Protocol (PPP) on Linux and Solaris systems." |
| 4 | SECTION = "console/network" |
| 5 | HOMEPAGE = "http://samba.org/ppp/" |
| 6 | BUGTRACKER = "http://ppp.samba.org/cgi-bin/ppp-bugs" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | DEPENDS = "libpcap openssl virtual/crypt" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 8 | LICENSE = "BSD-3-Clause & BSD-3-Clause-Attribution & GPL-2.0-or-later & LGPL-2.0-or-later & PD" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | LIC_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 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | SRC_URI = "https://download.samba.org/pub/${BPN}/${BP}.tar.gz \ |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 15 | file://makefix.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | file://pon \ |
| 17 | file://poff \ |
| 18 | file://init \ |
| 19 | file://ip-up \ |
| 20 | file://ip-down \ |
| 21 | file://08setupdns \ |
| 22 | file://92removedns \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | file://pap \ |
| 24 | file://ppp_on_boot \ |
| 25 | file://provider \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | file://ppp@.service \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 27 | file://0001-ppp-fix-build-against-5.15-headers.patch \ |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 28 | file://CVE-2022-4603.patch \ |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 29 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 31 | SRC_URI[sha256sum] = "f938b35eccde533ea800b15a7445b2f1137da7f88e32a16898d02dee8adc058d" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | |
| 33 | inherit autotools-brokensep systemd |
| 34 | |
| 35 | TARGET_CC_ARCH += " ${LDFLAGS}" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 36 | EXTRA_OEMAKE = "CC='${CC}' STRIPPROG=${STRIP} MANDIR=${D}${datadir}/man/man8 INCDIR=${D}${includedir} LIBDIR=${D}${libdir}/pppd/${PV} BINDIR=${D}${sbindir}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | EXTRA_OECONF = "--disable-strip" |
| 38 | |
| 39 | # Package Makefile computes CFLAGS, referencing COPTS. |
| 40 | # Typically hard-coded to '-O2 -g' in the Makefile's. |
| 41 | # |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | EXTRA_OEMAKE += ' COPTS="${CFLAGS} -I${STAGING_INCDIR}/openssl -I${S}/include"' |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 44 | EXTRA_OECONF:append:libc-musl = " --disable-ipxcp" |
| 45 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | do_configure () { |
| 47 | oe_runconf |
| 48 | } |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | do_install:append () { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | make install-etcppp ETCDIR=${D}/${sysconfdir}/ppp |
| 52 | mkdir -p ${D}${bindir}/ ${D}${sysconfdir}/init.d |
| 53 | mkdir -p ${D}${sysconfdir}/ppp/ip-up.d/ |
| 54 | mkdir -p ${D}${sysconfdir}/ppp/ip-down.d/ |
| 55 | install -m 0755 ${WORKDIR}/pon ${D}${bindir}/pon |
| 56 | install -m 0755 ${WORKDIR}/poff ${D}${bindir}/poff |
| 57 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ppp |
| 58 | install -m 0755 ${WORKDIR}/ip-up ${D}${sysconfdir}/ppp/ |
| 59 | install -m 0755 ${WORKDIR}/ip-down ${D}${sysconfdir}/ppp/ |
| 60 | install -m 0755 ${WORKDIR}/08setupdns ${D}${sysconfdir}/ppp/ip-up.d/ |
| 61 | install -m 0755 ${WORKDIR}/92removedns ${D}${sysconfdir}/ppp/ip-down.d/ |
| 62 | mkdir -p ${D}${sysconfdir}/chatscripts |
| 63 | mkdir -p ${D}${sysconfdir}/ppp/peers |
| 64 | install -m 0755 ${WORKDIR}/pap ${D}${sysconfdir}/chatscripts |
| 65 | install -m 0755 ${WORKDIR}/ppp_on_boot ${D}${sysconfdir}/ppp/ppp_on_boot |
| 66 | install -m 0755 ${WORKDIR}/provider ${D}${sysconfdir}/ppp/peers/provider |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 67 | install -d ${D}${systemd_system_unitdir} |
| 68 | install -m 0644 ${WORKDIR}/ppp@.service ${D}${systemd_system_unitdir} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 69 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 70 | ${D}${systemd_system_unitdir}/ppp@.service |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 71 | rm -rf ${D}/${mandir}/man8/man8 |
| 72 | chmod u+s ${D}${sbindir}/pppd |
| 73 | } |
| 74 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 75 | do_install:append:libc-musl () { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 76 | install -Dm 0644 ${S}/include/net/ppp_defs.h ${D}${includedir}/net/ppp_defs.h |
| 77 | } |
| 78 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 79 | CONFFILES:${PN} = "${sysconfdir}/ppp/pap-secrets ${sysconfdir}/ppp/chap-secrets ${sysconfdir}/ppp/options" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 80 | PACKAGES =+ "${PN}-oa ${PN}-oe ${PN}-radius ${PN}-winbind ${PN}-minconn ${PN}-password ${PN}-l2tp ${PN}-tools" |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 81 | FILES:${PN} = "${sysconfdir} ${bindir} ${sbindir}/chat ${sbindir}/pppd ${systemd_system_unitdir}/ppp@.service" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 82 | FILES:${PN}-oa = "${libdir}/pppd/${PV}/pppoatm.so" |
| 83 | FILES:${PN}-oe = "${sbindir}/pppoe-discovery ${libdir}/pppd/${PV}/*pppoe.so" |
| 84 | FILES:${PN}-radius = "${libdir}/pppd/${PV}/radius.so ${libdir}/pppd/${PV}/radattr.so ${libdir}/pppd/${PV}/radrealms.so" |
| 85 | FILES:${PN}-winbind = "${libdir}/pppd/${PV}/winbind.so" |
| 86 | FILES:${PN}-minconn = "${libdir}/pppd/${PV}/minconn.so" |
| 87 | FILES:${PN}-password = "${libdir}/pppd/${PV}/pass*.so" |
| 88 | FILES:${PN}-l2tp = "${libdir}/pppd/${PV}/*l2tp.so" |
| 89 | FILES:${PN}-tools = "${sbindir}/pppstats ${sbindir}/pppdump" |
| 90 | SUMMARY:${PN}-oa = "Plugin for PPP for PPP-over-ATM support" |
| 91 | SUMMARY:${PN}-oe = "Plugin for PPP for PPP-over-Ethernet support" |
| 92 | SUMMARY:${PN}-radius = "Plugin for PPP for RADIUS support" |
| 93 | SUMMARY:${PN}-winbind = "Plugin for PPP to authenticate against Samba or Windows" |
| 94 | SUMMARY:${PN}-minconn = "Plugin for PPP to set a delay before the idle timeout applies" |
| 95 | SUMMARY:${PN}-password = "Plugin for PPP to get passwords via a pipe" |
| 96 | SUMMARY:${PN}-l2tp = "Plugin for PPP for l2tp support" |
| 97 | SUMMARY:${PN}-tools = "Additional tools for the PPP package" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 98 | |
| 99 | # Ignore compatibility symlink rp-pppoe.so->pppoe.so |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 100 | INSANE_SKIP:${PN}-oe += "dev-so" |