Contents of /trunk/extras/lxc/lxc-0.8.0_rc1-r1.smage2
Parent Directory | Revision Log
Revision 12516 -
(show annotations)
(download)
Wed Jun 6 13:06:52 2012 UTC (12 years, 3 months ago) by niro
File size: 874 byte(s)
Wed Jun 6 13:06:52 2012 UTC (12 years, 3 months ago) by niro
File size: 874 byte(s)
auto added: ver bump to 0.8.0_rc1-r1
1 | # $Id$ |
2 | |
3 | PNAME="lxc" |
4 | PVER="0.8.0_rc1" |
5 | PBUILD="r2" |
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 | src_compile() |
26 | { |
27 | cd ${SRCDIR} |
28 | |
29 | mconfigure \ |
30 | --localstatedir=/var \ |
31 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
32 | --with-config-path=/etc/lxc \ |
33 | --with-rootfs-path=/var/lib/lxc/rootfs \ |
34 | --enable-doc \ |
35 | --enable-examples \ |
36 | --disable-rpath \ |
37 | || die |
38 | |
39 | mmake || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | mmake DESTDIR=${BINDIR} install || die |
46 | |
47 | mkeepdir /etc/lxc || die |
48 | mkeepdir /var/lib/lxc/rootfs || die |
49 | mkeepdir /var/log/lxc || die |
50 | } |