blob: 0722432608c9d1a29d292d3b05104fac9384b477 [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
cros_pre_src_prepare_patches() {
# Exclude /usr/local and /run from the config paths.
local def_h="src/basic/def.h"
if ! sed -i '/"\/run\|"\/usr\/local/d' "${def_h}" ||
grep -HnE '/run|/usr/local' "${def_h}" ; then
die "unable to clean /run & /usr/local references"
fi
}
cros_pre_pkg_postinst_disable() {
# pkg_postinst() in upstream package will install files to
# /etc/runlevels which is masked. Don't let it do that.
unset -f pkg_postinst
}