blob: f5df70625cb9b2226e5e39851a087c4bed52a16f [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# 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"
sed -i '/"\/run\|"\/usr\/local/d' "${def_h}" &&
! grep -HnE '/run|/usr/local' "${def_h}" ||
die "unable to clean /run & /usr/local references"
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