baselayout: migrate from efunctions to gentoo-functions

This commit is contained in:
Michael Marineau 2015-06-23 18:43:18 -04:00
parent 58d9e69737
commit fd91ed98a8
2 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,7 @@ DEPEND="sys-apps/systemd
# Make sure coreos-init is not installed in the SDK
RDEPEND="${DEPEND}
sys-apps/efunctions
>=sys-apps/gentoo-functions-0.10
cros_host? ( !coreos-base/coreos-init )"
declare -A LIB_SYMS # list of /lib->lib64 symlinks
@ -186,4 +186,11 @@ pkg_postinst() {
touch "${ROOT}/etc/"{group,gshadow,passwd,shadow}
chmod 640 "${ROOT}/etc/"{gshadow,shadow}
fi
# compat symlink for packages that haven't migrated to gentoo-functions
local func=../../lib/gentoo/functions.sh
if [[ "$(readlink "${ROOT}/etc/init.d/functions.sh")" != "${func}" ]]; then
elog "Creating /etc/init.d/functions.sh symlink..."
mkdir -p "${ROOT}/etc/init.d"
ln -sf "${func}" "${ROOT}/etc/init.d/functions.sh"
fi
}