Magellan Linux

Contents of /branches/R11-unstable/extras/lxc/lxc-0.9.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25636 - (show annotations) (download)
Tue Nov 25 04:03:34 2014 UTC (9 years, 5 months ago) by niro
File size: 977 byte(s)
-release branches/R11-unstable
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 }