anchor.diff:              -e 's,/usr/bin/,${bindir}/,g' \
               -e 's,/usr/lib,${libdir}/,g' \
               -e 's,/etc/,${sysconfdir}/,g' \
  -            -e 's,/usr/,${prefix}/,g' > ${D}/${sysconfdir}/init.d/${PN}
  -    chmod 755 ${D}/${sysconfdir}/init.d/${PN}
  +            -e 's,/usr/,${prefix}/,g' > ${D}/${sysconfdir}/init.d/${BPN}
  +    chmod 755 ${D}/${sysconfdir}/init.d/${BPN}
       # remove the goofy original files...
  -    rm -rf ${D}/${sysconfdir}/${PN}/original
  +    rm -rf ${D}/${sysconfdir}/${BPN}/original
       # Expat should be found in the staging area via DEPENDS...
       rm -f ${D}/${libdir}/libexpat.*
   
  -    install -d ${D}${sysconfdir}/${PN}/conf.d
  -    install -d ${D}${sysconfdir}/${PN}/modules.d
  +    install -d ${D}${sysconfdir}/${BPN}/conf.d
  +    install -d ${D}${sysconfdir}/${BPN}/modules.d
   
       # Ensure configuration file pulls in conf.d and modules.d
  -    printf "\nIncludeOptional ${sysconfdir}/${PN}/conf.d/*.conf" >> ${D}/${sysconfdir}/${PN}/httpd.conf
  -    printf "\nIncludeOptional ${sysconfdir}/${PN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${PN}/httpd.conf
  +    printf "\nIncludeOptional ${sysconfdir}/${BPN}/conf.d/*.conf" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
  +    printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
   }
   
   SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"
  
positive.code:     --enable-rewrite \
      --with-dbm=sdbm \
      --with-berkeley-db=no \
      --localstatedir=/var/${PN} \
      --with-gdbm=no \
      --with-ndbm=no \
      --includedir=${includedir}/${PN} \
      --datadir=${datadir}/${PN} \
      --sysconfdir=${sysconfdir}/${PN} \
      --libexecdir=${libdir}/${PN}/modules \
      ap_cv_void_ptr_lt_long=no \
      --enable-mpms-shared \
      ac_cv_have_threadsafe_pollset=no"
  
negative.code: apache_sysroot_preprocess () {
      install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
      install -m 755 ${D}${bindir}/apxs ${SYSROOT_DESTDIR}${bindir_crossscripts}/
      sed -i 's!my $installbuilddir = .*!my $installbuilddir = "${STAGING_DIR_HOST}/${datadir}/${BPN}/build";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
      sed -i 's!my $libtool = .*!my $libtool = "${STAGING_BINDIR_CROSS}/${TARGET_PREFIX}libtool";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
  
      sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
      sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
      sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${BPN}/build/config_vars.mk
  }
  
  #
  