blob: 6033e4ca0db54cff1c1e721681c785f44eb11e85 (
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.3
11 release=1
12 source=(https://linuxcontainers.org/downloads/$name/$name-$version.tar.gz
13 man-pages.tar.xz
14 default.conf
15 lxc-usernet
16 lxc-users-setup
17 lxc-users
18 lxc-cgroups
19 lxc-net)
20
21 build() {
22 cd $name-$version
23 ./configure --prefix=/usr \
24 --mandir=/usr/share/man \
25 --libexecdir=/usr/lib \
26 --localstatedir=/var \
27 --sysconfdir=/etc \
28 --enable-pam \
29 --with-pamdir=/lib/security \
30 --disable-apparmor \
31 --with-init-script=sysvinit
32
33 make
34 make DESTDIR=$PKG install
35
36 install -d $PKG/usr/share/man
37 install -d $PKG/var/lib/misc
38
39 install -m 0755 $SRC/lxc-users-setup $PKG/usr/sbin/
40 mv $SRC/man* $PKG/usr/share/man
41 rm -rf $PKG/usr/lib/lxc/rootfs/README $PKG/usr/share/doc
42 rm -rf $PKG/usr/share/lxc/config/common.conf.d/README
43 mv $PKG/etc/rc.d/init.d/* $PKG/etc/rc.d/
44 install -m755 $SRC/lxc-cgroups $PKG/etc/rc.d/
45 install -m755 $SRC/lxc-users $PKG/etc/rc.d/
46 rmdir $PKG/etc/rc.d/init.d/
47 install -m644 $SRC/lxc-net $PKG/etc/default/
48 rm $PKG/etc/lxc/default.conf
49 install -m644 $SRC/default.conf $PKG/etc/lxc/
50 install -m644 $SRC/lxc-usernet $PKG/etc/lxc/
51 if [ "$(prt-get isinst bash-completion)" = 'package bash-completion is not installed' ]; then
52 rm -fr $PKG/etc/bash_completion.d;
53 fi
54 }
|