diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2006-09-07 08:34:50 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2006-09-07 08:34:50 +0000 |
commit | 099f22b8701f1eff4ff20e7cc677eb0453f68fa6 (patch) | |
tree | 1bca621f6899d3b74a1f094381487365f80b573b /sys-cluster | |
parent | add legacy use flag for util-vserver (diff) | |
download | gentoo-2-099f22b8701f1eff4ff20e7cc677eb0453f68fa6.tar.gz gentoo-2-099f22b8701f1eff4ff20e7cc677eb0453f68fa6.tar.bz2 gentoo-2-099f22b8701f1eff4ff20e7cc677eb0453f68fa6.zip |
add legacy API use flag for older kernels
(Portage version: 2.1.1_pre4-r3)
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/util-vserver/ChangeLog | 6 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild | 22 |
2 files changed, 20 insertions, 8 deletions
diff --git a/sys-cluster/util-vserver/ChangeLog b/sys-cluster/util-vserver/ChangeLog index c2fa9856779d..1feab6235120 100644 --- a/sys-cluster/util-vserver/ChangeLog +++ b/sys-cluster/util-vserver/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-cluster/util-vserver # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.62 2006/09/06 19:56:54 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.63 2006/09/07 08:34:50 hollow Exp $ + + 07 Sep 2006; Benedikt Böhm <hollow@gentoo.org> + util-vserver-0.30.210-r18.ebuild: + add legacy API use flag for older kernels *util-vserver-0.30.210-r18 (06 Sep 2006) diff --git a/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild index d70f133644e7..19aa99eeeff6 100644 --- a/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild +++ b/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild,v 1.1 2006/09/06 19:56:54 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild,v 1.2 2006/09/07 08:34:50 hollow Exp $ inherit autotools eutils toolchain-funcs bash-completion @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" -IUSE="" +IUSE="legacy" DEPEND=">=dev-libs/dietlibc-0.28 dev-libs/beecrypt @@ -41,11 +41,21 @@ pkg_setup() { einfo einfo "Using \"${VDIRBASE}\" as vserver base directory" einfo + + myconf="${myconf} --with-vrootdir=${VDIRBASE}" + + # default paths + myconf="${myconf} --localstatedir=/var" + myconf="${myconf} --with-initrddir=/etc/init.d" + + # needed for older vserver kernels not in portage (default: v13,net) + # we provide this just for convenience for people using self-made kernels + use legacy && myconf="${myconf} --enable-apis=compat,v11,fscompat,v13,net" } src_unpack() { - unpack ${A} || die - cd "${S}" || die + unpack ${A} + cd "${S}" cp "${WORKDIR}"/tools/* scripts/ || die "failed to copy gentoo tools" epatch "${WORKDIR}"/patches/*.patch @@ -55,9 +65,7 @@ src_unpack() { } src_compile() { - econf --localstatedir=/var \ - --with-initrddir=/etc/init.d \ - --with-vrootdir="${VDIRBASE}" || die "econf failed" + econf ${myconf} || die "econf failed" emake || die "emake failed" } |