blob: 13854ce73d7152dc15d5b4bac964eaf2056d85e2 (
plain)
1 # Description: container namespace cgroup virtualisation for linux guests
2 # URL: https://linuxcontainers.org/lxc
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Packager: ryuo, James Buren
5 # Packager: Thomas Penteker, tek at serverop dot de
6 # Depends: libseccomp
7 # Optional: gnupg dnsmasq
8
9 name=lxc
10 version=4.0.11
11 release=1
12 source=(https://linuxcontainers.org/downloads/$name/$name-$version.tar.gz
13 man-pages.tar.xz default.conf lxc-usernet lxc-users-setup
14 lxc-users lxc-cgroups lxc-net)
15
16 build() {
17 cd $name-$version
18 ./configure --prefix=/usr \
19 --mandir=/usr/share/man \
20 --libexecdir=/usr/lib \
21 --localstatedir=/var \
22 --sysconfdir=/etc \
23 --enable-pam \
24 --with-pamdir=/lib/security \
25 --disable-apparmor \
26 --with-init-script=sysvinit
27
28 make
29 make DESTDIR=$PKG install
30
31 install -d $PKG/usr/share/man
32 install -d $PKG/var/lib/misc
33
34 install -m 0755 $SRC/lxc-users-setup $PKG/usr/sbin/
35 mv $SRC/man* $PKG/usr/share/man
36 rm -rf $PKG/usr/lib/lxc/rootfs/README $PKG/usr/share/doc
37 rm -rf $PKG/usr/share/lxc/config/common.conf.d/README
38 mv $PKG/etc/rc.d/init.d/* $PKG/etc/rc.d/
39 install -m755 $SRC/lxc-cgroups $PKG/etc/rc.d/
40 install -m755 $SRC/lxc-users $PKG/etc/rc.d/
41 rmdir $PKG/etc/rc.d/init.d/
42 install -m644 $SRC/lxc-net $PKG/etc/default/
43 rm $PKG/etc/lxc/default.conf
44 install -m644 $SRC/default.conf $PKG/etc/lxc/
45 install -m644 $SRC/lxc-usernet $PKG/etc/lxc/
46 if [ "$(prt-get isinst bash-completion)" = 'package bash-completion is not installed' ]; then
47 rm -fr $PKG/etc/bash_completion.d;
48 fi
49 }
|