title: How do I write a yocto/bitbake recipe to replace the default vsftpd.conf file with my own file?
body: <p>I want to replace the default vsftpd.conf file with my own file!
  My bitbake file looks following:</p>
  
  <p><strong>bbexample_1.0.bb</strong></p>
  
  <pre><code>DESCRIPTION = "Configuration and extra files for TX28"
  LICENSE = "CLOSED"
  LIC_FILES_CHKSUM = ""
  
  S = "${WORKDIR}"
  
  SRC_URI += " \
      file://ld.so.conf \
      file://nginx/nginx.conf \
      file://init.d/myscript.sh"
  
  inherit allarch
  
  do_install () {
      install -d ${D}${sysconfdir}
      install -d ${D}${sysconfdir}/nginx
      install -d ${D}${sysconfdir}/init.d
      rm -f ${D}${sysconfdir}/ld.so.conf
      install -m 0755 ${WORKDIR}/ld.so.conf ${D}${sysconfdir}
      install -m 0755 ${WORKDIR}/nginx/nginx.conf ${D}${sysconfdir}/nginx/
      install -m 0755 ${WORKDIR}/init.d/myscript.sh ${D}${sysconfdir}/init.d/
  }
  </code></pre>
  
  <p><strong>bbexample_1.0.bbappend</strong></p>
  
  <pre><code>FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
  
  SRC_URI += " \
      file://vsftpd.conf"
  
  do_install_append () {
      install -m 0755 ${WORKDIR}/vsftpd.conf ${D}${sysconfdir}
  }
  </code></pre>
  
  <p>But, the file could not be replaced!
  What is wrong?</p>