diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-08-11 14:34:33 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-08-11 14:34:33 +0000 |
commit | 5575d50d976b3102b2d2dfe32410743892c24e36 (patch) | |
tree | c7d7c33f8477d0b43a8cbde9d67dd14f3c98fd56 /sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild | |
parent | Build libsbuf and libcam multilib. Factorize some code. (diff) | |
download | historical-5575d50d976b3102b2d2dfe32410743892c24e36.tar.gz historical-5575d50d976b3102b2d2dfe32410743892c24e36.tar.bz2 historical-5575d50d976b3102b2d2dfe32410743892c24e36.zip |
Install directly in /usr/src/sys and remove the symlink useflag
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild')
-rw-r--r-- | sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild index fe5efea6d191..4ba5d294a7dd 100644 --- a/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild +++ b/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild,v 1.2 2013/08/10 13:27:28 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.2_rc1.ebuild,v 1.3 2013/08/11 14:34:25 aballier Exp $ inherit bsdmk freebsd flag-o-matic DESCRIPTION="FreeBSD kernel sources" SLOT="0" -IUSE="symlink" +IUSE="" if [[ ${PV} != *9999* ]]; then KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" @@ -60,21 +60,14 @@ src_compile() { } src_install() { - insinto "/usr/src/sys-${RV}" + insinto "/usr/src/sys" doins -r "${S}/"* } -pkg_postinst() { - if [[ ! -L "${ROOT}/usr/src/sys" ]]; then - einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${RV}..." - ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ - eerror "Couldn't create ${ROOT}/usr/src/sys symlink." - elif use symlink; then - einfo "Updating /usr/src/sys symlink to sys-${RV}..." - rm "${ROOT}/usr/src/sys" || \ - eerror "Couldn't remove previous symlinks, please fix manually." - ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ - eerror "Couldn't create ${ROOT}/usr/src/sys symlink." +pkg_preinst() { + if [[ -L "${ROOT}/usr/src/sys" ]]; then + einfo "/usr/src/sys is a symlink, removing it..." + rm -f "${ROOT}/usr/src/sys" fi if use sparc-fbsd ; then |