Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19004 - (hide annotations) (download)
Wed Aug 21 07:40:01 2013 UTC (10 years, 8 months ago) by niro
Original Path: trunk/extras/lxc/lxc-0.9.0-r1.smage2
File size: 977 byte(s)
auto added: ver bump to 0.9.0-r1
1 niro 19004 # $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     }