void-packages/srcpkgs/lxc/template

58 lines
1.8 KiB
Text
Raw Normal View History

2011-02-09 18:27:28 +00:00
# Template file for 'lxc'
2014-01-16 16:10:26 +00:00
_desc="Linux Containers"
2011-02-09 18:27:28 +00:00
pkgname=lxc
version=1.1.0
2015-03-08 14:54:31 +00:00
revision=5
build_style=gnu-configure
2015-02-04 13:22:56 +00:00
configure_args="--enable-doc --enable-seccomp --enable-cgmanager
--enable-capabilities --disable-apparmor --with-distro=none
2014-01-16 16:10:26 +00:00
--with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log"
2014-01-16 16:28:34 +00:00
hostmakedepends="pkg-config docbook2x"
2015-02-04 13:22:56 +00:00
makedepends="libcap-devel libseccomp-devel gnutls-devel libcgmanager-devel"
2014-01-16 16:10:26 +00:00
short_desc="${_desc} - utilities"
2011-02-09 18:27:28 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
2014-01-16 16:10:26 +00:00
homepage="http://linuxcontainers.org"
2012-07-02 13:00:36 +00:00
license="LGPL-2.1"
2014-01-16 16:10:26 +00:00
distfiles="http://linuxcontainers.org/downloads/lxc-${version}.tar.gz"
checksum=e261ff10ca17b488e37a2aab4b4aa4f768f4ee80b62d761076d69917766be36d
2011-02-09 18:27:28 +00:00
2014-08-21 07:40:31 +00:00
build_options="systemd"
conf_files="/etc/lxc/default.conf"
2014-01-16 16:10:26 +00:00
make_dirs="
/var/lib/lxc 0755 root root
/var/lxc/containers 0755 root root
/var/lxc/log 0755 root root"
2014-01-16 16:28:34 +00:00
pre_configure() {
2014-02-24 13:55:20 +00:00
sed -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' -i configure
2014-01-16 16:28:34 +00:00
sed -e 's,docbook2x-man,docbook2man,g' -i configure
}
post_install() {
2014-08-21 07:40:31 +00:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service
fi
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* ${DESTDIR}/usr/share/bash-completion/completions/
# Install void lxc config/template.
vinstall ${FILESDIR}/void.common.conf 644 usr/share/lxc/config
vinstall ${FILESDIR}/lxc-void 755 usr/share/lxc/templates
2015-03-08 14:54:31 +00:00
vsv lxc-autostart
}
2014-01-16 16:28:34 +00:00
liblxc_package() {
2014-01-16 16:10:26 +00:00
short_desc="${_desc} - shared library"
pkg_install() {
2014-01-16 16:10:26 +00:00
vmove "usr/lib/*.so.*"
}
}
lxc-devel_package() {
2014-01-16 16:10:26 +00:00
depends="libcap-devel liblxc>=${version}_${revision}"
short_desc="${_desc} - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2014-01-16 16:10:26 +00:00
vmove "usr/lib/*.so"
}
}