Thank you for your assistance.  The final recipe I used looks like this:

#
# Copy the ppp script files for <provider> chips to the target filesystem
# These files are based on the details provided in
#

SUMMARY = "PPP Scripts for Basic <provider>Chip Operation"
SECTION = "net"
LICENSE = "MIT"
LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
DESCRIPTION = "A set of Linux PPP scripts that provide connect, disconnect and 
other basic Point-to-Point Protocol functionality for Quectel wireless modems.  
"

RDEPENDS_${PN} = "ppp"

SRC_URI += "file://<provider>-ppp"
SRC_URI += "file://<provider>-chat-connect"
SRC_URI += "file://<provider>-chat-disconnect"

S = "${WORKDIR}"

inherit allarch

# Install script on target's root filesystem
do_install () {
    # Install init script and default settings
    # ${sysconfdir}
    install -d ${D}${sysconfdir}/
    install -d ${D}${sysconfdir}/ppp
    install -d ${D}${sysconfdir}/ppp/peers
    install -m 0755 ${S}/<provider>-ppp ${D}${sysconfdir}/ppp/peers/
    install -m 0755 ${S}/<provider>-chat-connect ${D}${sysconfdir}/ppp/peers/
    install -m 0755 ${S}/<provider>-chat-disconnect ${D}${sysconfdir}/ppp/peers/
}

# Mark the files which are part of this package
FILES_${PN} += "{sysconfdir}/ppp/"
FILES_${PN} += "{sysconfdir}/ppp/peers/"
FILES_${PN} += "{sysconfdir}/ppp/peers/<provider>-ppp"
FILES_${PN} += "{sysconfdir}/ppp/peers/<provider>-chat-connect"
FILES_${PN} += "{sysconfdir}/ppp/peers/<provider>-chat-disconnect"


The above places the three script files into /etc/ppp/peers on the root 
filesystem a I hoped.  I chose to generate a <provider>-ppp_0.1.bb recipe 
rather than a bbappend recipe as these script files are relatively independent 
of the version of ppp used.
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to