forked from ports/contrib
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# Description: container namespace cgroup virtualisation for linux guests
|
|
# URL: https://linuxcontainers.org/lxc
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Packager: ryuo, James Buren
|
|
# Packager: Thomas Penteker, tek at serverop dot de
|
|
# Depends: libseccomp
|
|
# Optional: gnupg dnsmasq
|
|
|
|
name=lxc
|
|
version=4.0.2
|
|
release=1
|
|
source=(https://linuxcontainers.org/downloads/$name/$name-$version.tar.gz
|
|
man-pages.tar.xz
|
|
default.conf
|
|
lxc-usernet
|
|
lxc-users-setup
|
|
lxc-users
|
|
lxc-cgroups
|
|
lxc-net)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--libexecdir=/usr/lib \
|
|
--localstatedir=/var \
|
|
--sysconfdir=/etc \
|
|
--enable-pam \
|
|
--with-pamdir=/lib/security \
|
|
--disable-apparmor \
|
|
--with-init-script=sysvinit
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/usr/share/man
|
|
install -d $PKG/var/lib/misc
|
|
|
|
install -m 0755 $SRC/lxc-users-setup $PKG/usr/sbin/
|
|
mv $SRC/man* $PKG/usr/share/man
|
|
rm -rf $PKG/usr/lib/lxc/rootfs/README $PKG/usr/share/doc
|
|
rm -rf $PKG/usr/share/lxc/config/common.conf.d/README
|
|
mv $PKG/etc/rc.d/init.d/* $PKG/etc/rc.d/
|
|
install -m755 $SRC/lxc-cgroups $PKG/etc/rc.d/
|
|
install -m755 $SRC/lxc-users $PKG/etc/rc.d/
|
|
rmdir $PKG/etc/rc.d/init.d/
|
|
install -m644 $SRC/lxc-net $PKG/etc/default/
|
|
rm $PKG/etc/lxc/default.conf
|
|
install -m644 $SRC/default.conf $PKG/etc/lxc/
|
|
install -m644 $SRC/lxc-usernet $PKG/etc/lxc/
|
|
if [ "$(prt-get isinst bash-completion)" = 'package bash-completion is not installed' ]; then
|
|
rm -fr $PKG/etc/bash_completion.d;
|
|
fi
|
|
}
|