summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/vzctl/vzctl-3.0.12.ebuild')
-rw-r--r--sys-cluster/vzctl/vzctl-3.0.12.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys-cluster/vzctl/vzctl-3.0.12.ebuild b/sys-cluster/vzctl/vzctl-3.0.12.ebuild
index 53424f4..cbf1846 100644
--- a/sys-cluster/vzctl/vzctl-3.0.12.ebuild
+++ b/sys-cluster/vzctl/vzctl-3.0.12.ebuild
@@ -28,8 +28,15 @@ src_unpack() {
unpack ${A}
epatch "${WORKDIR}/patches"/*.patch
-# use amd64 && epatch "${FILESDIR}/${P/_pre/}-libdir64.patch"
-# use x86 && epatch "${FILESDIR}/${P/_pre/}-libdir.patch"
+ if use amd64 ; then
+ epatch "Applying ${P}-libdir64.patch"
+ sed -i "s,LIBDIR = $(PREFIX)/lib/vzctl/lib,LIBDIR = $(PREFIX)/lib64,"
+ fi
+
+ if use x86 ; then
+ epatch "Applying ${P}-libdir.patch"
+ sed -i "s,LIBDIR = $(PREFIX)/lib/vzctl/lib,LIBDIR = $(PREFIX)/lib,"
+ fi
}
src_compile() {