Contents of /branches/R11-stable/extras/lxc/lxc-0.9.0-r1.smage2
Parent Directory | Revision Log
Revision 19299 -
(show annotations)
(download)
Tue Sep 3 14:58:39 2013 UTC (11 years ago) by niro
File size: 977 byte(s)
Tue Sep 3 14:58:39 2013 UTC (11 years ago) by niro
File size: 977 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="lxc" |
4 | PVER="0.9.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-emulation" |
8 | |
9 | DESCRIPTION="LXC Linux Containers control utility." |
10 | HOMEPAGE="http://lxc.sourceforge.net/" |
11 | |
12 | DEPEND=">= sys-libs/libcap-2.22" |
13 | SDEPEND=">= virtual/kernel-headers" |
14 | |
15 | SRCFILE="${PNAME}-${PVER/_/-}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" |
17 | |
18 | sminclude mbuild mtools |
19 | |
20 | SRC_URI=( |
21 | http://lxc.sourceforge.net/download/${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
26 | |
27 | src_compile() |
28 | { |
29 | cd ${SRCDIR} |
30 | |
31 | mconfigure \ |
32 | --localstatedir=/var \ |
33 | --libexecdir=/usr/$(mlibdir) \ |
34 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
35 | --with-config-path=/etc/lxc \ |
36 | --with-rootfs-path=/var/lib/lxc/rootfs \ |
37 | --disable-doc \ |
38 | --enable-examples \ |
39 | --disable-rpath \ |
40 | --disable-apparmor \ |
41 | || die |
42 | |
43 | mmake || die |
44 | } |
45 | |
46 | src_install() |
47 | { |
48 | cd ${SRCDIR} |
49 | mmake DESTDIR=${BINDIR} install || die |
50 | |
51 | mkeepdir /etc/lxc || die |
52 | mkeepdir /var/lib/lxc/rootfs || die |
53 | mkeepdir /var/log/lxc || die |
54 | } |