summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2005-01-14 12:15:15 +0000
committerJohn Mylchreest <johnm@gentoo.org>2005-01-14 12:15:15 +0000
commit6b0489a2226a42ed7e4098748071f536c1da1b89 (patch)
treeb78b46ccef7f5b17fa83e6259398d85a18f03597 /eclass
parentvserver developement and rc version (Manifest recommit) (diff)
downloadgentoo-2-6b0489a2226a42ed7e4098748071f536c1da1b89.tar.gz
gentoo-2-6b0489a2226a42ed7e4098748071f536c1da1b89.tar.bz2
gentoo-2-6b0489a2226a42ed7e4098748071f536c1da1b89.zip
adding symlink use flag support
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 257548e86087..10e4e0779735 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.83 2005/01/14 11:19:05 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.84 2005/01/14 12:15:15 johnm Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -163,7 +163,7 @@ then
SLOT="${PVR}"
DESCRIPTION="Sources for the Linux kernel"
- IUSE="${IUSE} build doc"
+ IUSE="${IUSE} symlink build doc"
elif [ "${ETYPE}" == "headers" ]
then
DESCRIPTION="Linux system headers"
@@ -387,6 +387,9 @@ preinst_headers() {
postinst_sources() {
local MAKELINK=0
+ # if we have USE=symlink, then force K_SYMLINK=1
+ use symlink && K_SYMLINK=1
+
# if we are to forcably symlink, delete it if it already exists first.
if [[ -n ${K_SYMLINK} ]] ; then
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux