anchor.diff:      --enable-rewrite \
       --with-dbm=sdbm \
       --with-berkeley-db=no \
  -    --localstatedir=/var/${PN} \
  +    --localstatedir=/var/${BPN} \
       --with-gdbm=no \
       --with-ndbm=no \
  -    --includedir=${includedir}/${PN} \
  -    --datadir=${datadir}/${PN} \
  -    --sysconfdir=${sysconfdir}/${PN} \
  -    --libexecdir=${libdir}/${PN}/modules \
  +    --includedir=${includedir}/${BPN} \
  +    --datadir=${datadir}/${BPN} \
  +    --sysconfdir=${sysconfdir}/${BPN} \
  +    --libexecdir=${libdir}/${BPN}/modules \
       ap_cv_void_ptr_lt_long=no \
       --enable-mpms-shared \
       ac_cv_have_threadsafe_pollset=no"
  
positive.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}/${PN}/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}/${PN}/build/config_vars.mk
      sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${PN}/build/config_vars.mk
      sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${PN}/build/config_vars.mk
  }
  
  #
  
negative.code: 
  PACKAGES = "${PN}-doc ${PN}-dev ${PN}-dbg ${PN}"
  
  CONFFILES_${PN} = "${sysconfdir}/${BPN}/httpd.conf \
                     ${sysconfdir}/${BPN}/magic \
                     ${sysconfdir}/${BPN}/mime.types \
                     ${sysconfdir}/init.d/${BPN} "
  
  # we override here rather than append so that .so links are
  # included in the runtime package rather than here (-dev)
  # and to get build, icons, error into the -dev package
  FILES_${PN}-dev = "${datadir}/${BPN}/build \
                     ${datadir}/${BPN}/icons \
                     ${datadir}/${BPN}/error \
                     ${bindir}/apr-config ${bindir}/apu-config \
                     ${libdir}/apr*.exp \
                     ${includedir}/${BPN} \
                     ${libdir}/*.la \
                     ${libdir}/*.a"
  
  # manual to manual
  FILES_${PN}-doc += " ${datadir}/${BPN}/manual"
  
  #
  # override this too - here is the default, less datadir
  #
  FILES_${PN} =  "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* ${sysconfdir} \
                  ${sharedstatedir} ${localstatedir} /bin /sbin /lib/*.so* \
                  ${libdir}/${BPN}"
  
  # we want htdocs and cgi-bin to go with the binary
  FILES_${PN} += "${datadir}/${BPN}/htdocs ${datadir}/${BPN}/cgi-bin"
  
  #make sure the lone .so links also get wrapped in the base package
  FILES_${PN} += "${libdir}/lib*.so ${libdir}/pkgconfig/*"
  
  FILES_${PN}-dbg += "${libdir}/${BPN}/modules/.debug"
  
  RDEPENDS_${PN} += "openssl libgcc"
  