From: Benedikt Boehm Date: Thu, 7 Sep 2006 08:34:50 +0000 (+0000) Subject: add legacy API use flag for older kernels X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e01c78e87517eeb322520f3e752426c21fa9ffd2;p=gentoo.git add legacy API use flag for older kernels Package-Manager: portage-2.1.1_pre4-r3 --- 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 + 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/Manifest b/sys-cluster/util-vserver/Manifest index d15cfd3a47af..f13305d887cf 100644 --- a/sys-cluster/util-vserver/Manifest +++ b/sys-cluster/util-vserver/Manifest @@ -13,14 +13,14 @@ EBUILD util-vserver-0.30.210-r17.ebuild 3069 RMD160 c5703b6a1c6db00b2d08dfe34c83 MD5 96d0f5ff831cd9ab772045c4df899679 util-vserver-0.30.210-r17.ebuild 3069 RMD160 c5703b6a1c6db00b2d08dfe34c838c4e40bd1a81 util-vserver-0.30.210-r17.ebuild 3069 SHA256 8904e681349dcbbd40c6464bfd368291a85604906d13bf535ed171a78a6afc97 util-vserver-0.30.210-r17.ebuild 3069 -EBUILD util-vserver-0.30.210-r18.ebuild 3164 RMD160 6c04bac9fa1ee2db868fa0a1b149e541bf2e415f SHA1 ab798479a1aede468a44c11ff5b35152d1745a27 SHA256 5517717c01ffc6d304aa34054734c692516ea42737f48e888a2c5331073e73a9 -MD5 8914e8f60215b050da4610ddf8c5828d util-vserver-0.30.210-r18.ebuild 3164 -RMD160 6c04bac9fa1ee2db868fa0a1b149e541bf2e415f util-vserver-0.30.210-r18.ebuild 3164 -SHA256 5517717c01ffc6d304aa34054734c692516ea42737f48e888a2c5331073e73a9 util-vserver-0.30.210-r18.ebuild 3164 -MISC ChangeLog 12499 RMD160 a083ba22dd6731c5656e9f033f08541ce4c1c4b5 SHA1 4d2334369d78d474c5ea1842629e05710eccba0c SHA256 5616e70292f24f93c7a21c8fe68edec1f7bc2b15d7388caa248240b623d04b9e -MD5 1d8f53980bbd3cd32dddf306ac9923d7 ChangeLog 12499 -RMD160 a083ba22dd6731c5656e9f033f08541ce4c1c4b5 ChangeLog 12499 -SHA256 5616e70292f24f93c7a21c8fe68edec1f7bc2b15d7388caa248240b623d04b9e ChangeLog 12499 +EBUILD util-vserver-0.30.210-r18.ebuild 3447 RMD160 64aece6e0c61788770c23f90dea1435d490fe41b SHA1 d7647872ac8b4d6a379823d38b5a1de3a2b3477d SHA256 2caf9b07094b2ce16789a02583d4fb2eb69480884b28320c5c319b1a37f59d88 +MD5 ddc71486ce93640b776d45f87fc0f43a util-vserver-0.30.210-r18.ebuild 3447 +RMD160 64aece6e0c61788770c23f90dea1435d490fe41b util-vserver-0.30.210-r18.ebuild 3447 +SHA256 2caf9b07094b2ce16789a02583d4fb2eb69480884b28320c5c319b1a37f59d88 util-vserver-0.30.210-r18.ebuild 3447 +MISC ChangeLog 12630 RMD160 4acd02f0d32af5825ab290866105cb46b14413d4 SHA1 34c14c614a2dc1606f4319c8328284f42d20ee8f SHA256 ebc8c0e729d9edf304331de9bead64161e665c657313e6e7fc4d55f57ab42d9a +MD5 1d6179c7765432b962807e526fef51ad ChangeLog 12630 +RMD160 4acd02f0d32af5825ab290866105cb46b14413d4 ChangeLog 12630 +SHA256 ebc8c0e729d9edf304331de9bead64161e665c657313e6e7fc4d55f57ab42d9a ChangeLog 12630 MISC metadata.xml 588 RMD160 43bd819942f6f0c03bec0bcf67601a7099b59a2b SHA1 d0e5af40193886066bbe1060324dede1f0fd367f SHA256 798e87b6d5fb379322178e9f8b7432371f630caaf3fd6ff369e35056483cc31d MD5 493021fa14e20216e8ce772e9dc10a62 metadata.xml 588 RMD160 43bd819942f6f0c03bec0bcf67601a7099b59a2b metadata.xml 588 @@ -37,7 +37,7 @@ SHA256 1988272f4e575006f37181a3aafb203d19a5244a99824867b402a5deacc7ae2a files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFE/ygkmPFBzbX68WERAp20AJsGY7JeTKmd6EafDBy677eOIkwz3wCdF8Gl -IdMgZna9KVnuaJoZFsd0EOQ= -=flqC +iD8DBQFE/9m1mPFBzbX68WERAnnMAJ9TMI1k2r9oIKAmlCKXA4EBSxPdEACfcpeS +eGXK0WyTWRaQm2fug0ZduHY= +=kFX3 -----END PGP SIGNATURE----- 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" }