2011-02-09 19:27:28 +01:00
|
|
|
# Template file for 'lxc'
|
2014-01-16 17:10:26 +01:00
|
|
|
_desc="Linux Containers"
|
|
|
|
|
2011-02-09 19:27:28 +01:00
|
|
|
pkgname=lxc
|
2014-03-11 13:20:01 +01:00
|
|
|
version=1.0.1
|
2014-02-24 14:55:20 +01:00
|
|
|
revision=1
|
2014-01-16 17:10:26 +01:00
|
|
|
conf_files="/etc/lxc/default.conf"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-24 14:59:24 +01:00
|
|
|
configure_args="--enable-doc --enable-seccomp --disable-apparmor --with-distro=none
|
2014-01-16 17:10:26 +01:00
|
|
|
--with-rootfs-path=/var/lxc/containers --with-log-path=/var/lxc/log"
|
2014-01-16 17:28:34 +01:00
|
|
|
hostmakedepends="pkg-config docbook2x"
|
2014-02-24 15:33:36 +01:00
|
|
|
makedepends="libcap-devel libseccomp-devel"
|
2014-01-16 17:10:26 +01:00
|
|
|
short_desc="${_desc} - utilities"
|
2011-02-09 19:27:28 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-01-16 17:10:26 +01:00
|
|
|
homepage="http://linuxcontainers.org"
|
2012-07-02 15:00:36 +02:00
|
|
|
license="LGPL-2.1"
|
2014-01-16 17:10:26 +01:00
|
|
|
distfiles="http://linuxcontainers.org/downloads/lxc-${version}.tar.gz"
|
2014-03-11 13:20:01 +01:00
|
|
|
checksum=17d8e5b575207b4fb57da0b8ba2d13f3e5ee20ce8ccd1259d6eae4bd5ca575b1
|
2011-02-09 19:27:28 +01:00
|
|
|
|
2014-01-16 17:10:26 +01:00
|
|
|
make_dirs="
|
|
|
|
/var/lib/lxc 0755 root root
|
|
|
|
/var/lxc/containers 0755 root root
|
|
|
|
/var/lxc/log 0755 root root"
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-01-16 17:28:34 +01:00
|
|
|
pre_configure() {
|
2014-02-24 14:55:20 +01: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 17:28:34 +01:00
|
|
|
sed -e 's,docbook2x-man,docbook2man,g' -i configure
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
liblxc_package() {
|
2014-01-16 17:10:26 +01:00
|
|
|
short_desc="${_desc} - shared library"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
2014-01-16 17:10:26 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lxc-devel_package() {
|
2014-01-16 17:10:26 +01:00
|
|
|
depends="libcap-devel liblxc>=${version}_${revision}"
|
|
|
|
short_desc="${_desc} - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-01-16 17:10:26 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|
2014-02-24 14:55:20 +01:00
|
|
|
|
|
|
|
post_install() {
|
2014-02-24 15:33:36 +01:00
|
|
|
vinstall ${FILESDIR}/service 644 usr/lib/systemd/system lxc@.service
|
2014-02-24 14:55:20 +01:00
|
|
|
}
|