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