diff options
Diffstat (limited to 'sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit')
-rw-r--r-- | sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit b/sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit new file mode 100644 index 000000000000..a28fb8c09268 --- /dev/null +++ b/sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit @@ -0,0 +1,19 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Eblit that handles binpkg postinst tasks. +# In this case, it sets up the /usr/src/linux symlink. + +eblit-mips-sources-pkg_postinst() { + # Symlink /usr/src/linux as appropriate + local my_ksrc="${S##*/}" + for x in {ip27,ip28,ip30,cobalt}; do + use ${x} && my_ksrc="${my_ksrc}.${x}" + done + + if [ ! -e "${ROOT}usr/src/linux" ]; then + rm -f "${ROOT}usr/src/linux" + ln -sf "${my_ksrc}" "${ROOT}/usr/src/linux" + fi +} |