Magellan Linux

Contents of /trunk/extras/lxc/lxc-3.0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31459 - (show annotations) (download)
Fri Jul 13 10:53:50 2018 UTC (5 years, 9 months ago) by niro
File size: 1019 byte(s)
auto added: ver bump to 3.0.1-r1
1 # $Id$
2
3 PNAME="lxc"
4 PVER="3.0.1"
5 PBUILD="r1"
6
7 PCAT="app-emulation"
8
9 DESCRIPTION="LXC Linux Containers control utility."
10 HOMEPAGE="https://linuxcontainers.org/"
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 https://linuxcontainers.org/downloads/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd https://linuxcontainers.org/${PNAME}/downloads/ | highesttarball gz"
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 }