os.system('chmod 0511 %s/cups/var/run/cups/certs' % pkgdest)
}
-do_stage_append() {
+SYSROOT_PREPROCESS_FUNCS += "cups_config_mangle"
+
+cups_config_mangle() {
# Undo mangle of cups_datadir and cups_serverbin
sed -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:g' \
-e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:g' \
- -i ${STAGING_BINDIR_CROSS}/cups-config
+ -i ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/cups-config
}
PACKAGES =+ "${PN}-lib ${PN}-libimage"