contrib/lxc/Pkgfile

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2013-04-13 14:26:39 +02:00
# Description: container namespace cgroup virtualisation for linux guests
2019-10-05 07:42:07 +02:00
# URL: https://linuxcontainers.org/lxc
2020-06-01 15:17:14 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Packager: ryuo, James Buren
# Packager: Thomas Penteker, tek at serverop dot de
2019-10-05 07:42:07 +02:00
# Depends: libseccomp
# Optional: gnupg dnsmasq
2013-04-13 14:26:39 +02:00
name=lxc
2022-02-18 14:27:27 +01:00
version=4.0.12
2013-04-13 14:26:39 +02:00
release=1
2019-10-05 07:42:07 +02:00
source=(https://linuxcontainers.org/downloads/$name/$name-$version.tar.gz
2020-10-23 12:18:30 +02:00
man-pages.tar.xz default.conf lxc-usernet lxc-users-setup
lxc-users lxc-cgroups lxc-net)
2013-04-13 14:26:39 +02:00
build() {
2016-08-29 22:47:43 +02:00
cd $name-$version
2013-04-13 14:26:39 +02:00
./configure --prefix=/usr \
2019-10-05 07:42:07 +02:00
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
--localstatedir=/var \
--sysconfdir=/etc \
--enable-pam \
--with-pamdir=/lib/security \
--disable-apparmor \
--with-init-script=sysvinit
2013-04-13 14:26:39 +02:00
make
make DESTDIR=$PKG install
2014-02-24 18:03:07 +01:00
2019-10-05 07:42:07 +02:00
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
2014-02-24 18:03:07 +01:00
rm -rf $PKG/usr/lib/lxc/rootfs/README $PKG/usr/share/doc
2019-10-05 07:42:07 +02:00
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
2013-04-13 14:26:39 +02:00
}