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" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | LICENSE = "BSD & GPLv2+ & LGPLv2+ & PD" |
| 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 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | file://makefile.patch \ |
| 16 | file://cifdefroute.patch \ |
| 17 | file://pppd-resolv-varrun.patch \ |
| 18 | file://makefile-remove-hard-usr-reference.patch \ |
| 19 | file://pon \ |
| 20 | file://poff \ |
| 21 | file://init \ |
| 22 | file://ip-up \ |
| 23 | file://ip-down \ |
| 24 | file://08setupdns \ |
| 25 | file://92removedns \ |
| 26 | file://copts.patch \ |
| 27 | file://pap \ |
| 28 | file://ppp_on_boot \ |
| 29 | file://provider \ |
| 30 | file://0001-ppp-Fix-compilation-errors-in-Makefile.patch \ |
| 31 | file://ppp@.service \ |
| 32 | file://fix-CVE-2015-3310.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 33 | file://0001-pppoe-include-netinet-in.h-before-linux-in.h.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 34 | file://0001-ppp-Remove-unneeded-include.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 35 | file://ppp-2.4.7-DES-openssl.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 36 | file://0001-pppd-Fix-bounds-check-in-EAP-code.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | " |
| 38 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | SRC_URI_append_libc-musl = "\ |
| 40 | file://0001-Fix-build-with-musl.patch \ |
| 41 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | SRC_URI[md5sum] = "78818f40e6d33a1d1de68a1551f6595a" |
| 43 | SRC_URI[sha256sum] = "02e0a3dd3e4799e33103f70ec7df75348c8540966ee7c948e4ed8a42bbccfb30" |
| 44 | |
| 45 | inherit autotools-brokensep systemd |
| 46 | |
| 47 | TARGET_CC_ARCH += " ${LDFLAGS}" |
| 48 | EXTRA_OEMAKE = "STRIPPROG=${STRIP} MANDIR=${D}${datadir}/man/man8 INCDIR=${D}${includedir} LIBDIR=${D}${libdir}/pppd/${PV} BINDIR=${D}${sbindir}" |
| 49 | EXTRA_OECONF = "--disable-strip" |
| 50 | |
| 51 | # Package Makefile computes CFLAGS, referencing COPTS. |
| 52 | # Typically hard-coded to '-O2 -g' in the Makefile's. |
| 53 | # |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 54 | EXTRA_OEMAKE += ' COPTS="${CFLAGS} -I${STAGING_INCDIR}/openssl -I${S}/include"' |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 55 | |
| 56 | do_configure () { |
| 57 | oe_runconf |
| 58 | } |
| 59 | |
| 60 | do_install_append () { |
| 61 | make install-etcppp ETCDIR=${D}/${sysconfdir}/ppp |
| 62 | mkdir -p ${D}${bindir}/ ${D}${sysconfdir}/init.d |
| 63 | mkdir -p ${D}${sysconfdir}/ppp/ip-up.d/ |
| 64 | mkdir -p ${D}${sysconfdir}/ppp/ip-down.d/ |
| 65 | install -m 0755 ${WORKDIR}/pon ${D}${bindir}/pon |
| 66 | install -m 0755 ${WORKDIR}/poff ${D}${bindir}/poff |
| 67 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ppp |
| 68 | install -m 0755 ${WORKDIR}/ip-up ${D}${sysconfdir}/ppp/ |
| 69 | install -m 0755 ${WORKDIR}/ip-down ${D}${sysconfdir}/ppp/ |
| 70 | install -m 0755 ${WORKDIR}/08setupdns ${D}${sysconfdir}/ppp/ip-up.d/ |
| 71 | install -m 0755 ${WORKDIR}/92removedns ${D}${sysconfdir}/ppp/ip-down.d/ |
| 72 | mkdir -p ${D}${sysconfdir}/chatscripts |
| 73 | mkdir -p ${D}${sysconfdir}/ppp/peers |
| 74 | install -m 0755 ${WORKDIR}/pap ${D}${sysconfdir}/chatscripts |
| 75 | install -m 0755 ${WORKDIR}/ppp_on_boot ${D}${sysconfdir}/ppp/ppp_on_boot |
| 76 | install -m 0755 ${WORKDIR}/provider ${D}${sysconfdir}/ppp/peers/provider |
| 77 | install -d ${D}${systemd_unitdir}/system |
| 78 | install -m 0644 ${WORKDIR}/ppp@.service ${D}${systemd_unitdir}/system |
| 79 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ |
| 80 | ${D}${systemd_unitdir}/system/ppp@.service |
| 81 | rm -rf ${D}/${mandir}/man8/man8 |
| 82 | chmod u+s ${D}${sbindir}/pppd |
| 83 | } |
| 84 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 85 | do_install_append_libc-musl () { |
| 86 | install -Dm 0644 ${S}/include/net/ppp_defs.h ${D}${includedir}/net/ppp_defs.h |
| 87 | } |
| 88 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 89 | CONFFILES_${PN} = "${sysconfdir}/ppp/pap-secrets ${sysconfdir}/ppp/chap-secrets ${sysconfdir}/ppp/options" |
| 90 | PACKAGES =+ "${PN}-oa ${PN}-oe ${PN}-radius ${PN}-winbind ${PN}-minconn ${PN}-password ${PN}-l2tp ${PN}-tools" |
| 91 | FILES_${PN} = "${sysconfdir} ${bindir} ${sbindir}/chat ${sbindir}/pppd ${systemd_unitdir}/system/ppp@.service" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 92 | FILES_${PN}-oa = "${libdir}/pppd/${PV}/pppoatm.so" |
| 93 | FILES_${PN}-oe = "${sbindir}/pppoe-discovery ${libdir}/pppd/${PV}/rp-pppoe.so" |
| 94 | FILES_${PN}-radius = "${libdir}/pppd/${PV}/radius.so ${libdir}/pppd/${PV}/radattr.so ${libdir}/pppd/${PV}/radrealms.so" |
| 95 | FILES_${PN}-winbind = "${libdir}/pppd/${PV}/winbind.so" |
| 96 | FILES_${PN}-minconn = "${libdir}/pppd/${PV}/minconn.so" |
| 97 | FILES_${PN}-password = "${libdir}/pppd/${PV}/pass*.so" |
| 98 | FILES_${PN}-l2tp = "${libdir}/pppd/${PV}/*l2tp.so" |
| 99 | FILES_${PN}-tools = "${sbindir}/pppstats ${sbindir}/pppdump" |
| 100 | SUMMARY_${PN}-oa = "Plugin for PPP for PPP-over-ATM support" |
| 101 | SUMMARY_${PN}-oe = "Plugin for PPP for PPP-over-Ethernet support" |
| 102 | SUMMARY_${PN}-radius = "Plugin for PPP for RADIUS support" |
| 103 | SUMMARY_${PN}-winbind = "Plugin for PPP to authenticate against Samba or Windows" |
| 104 | SUMMARY_${PN}-minconn = "Plugin for PPP to set a delay before the idle timeout applies" |
| 105 | SUMMARY_${PN}-password = "Plugin for PPP to get passwords via a pipe" |
| 106 | SUMMARY_${PN}-l2tp = "Plugin for PPP for l2tp support" |
| 107 | SUMMARY_${PN}-tools = "Additional tools for the PPP package" |