summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-11-11 05:53:42 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-11-11 05:53:42 +0000
commite5805a21ec1f887dab076a7198e674931885683a (patch)
tree28d6294ded48972163363d4a80ddf24351b4effc /app-emulation/lxc
parentImport the pkg_preinst bit to make sure the links are really gone. (diff)
downloadhistorical-e5805a21ec1f887dab076a7198e674931885683a.tar.gz
historical-e5805a21ec1f887dab076a7198e674931885683a.tar.bz2
historical-e5805a21ec1f887dab076a7198e674931885683a.zip
Version bump.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x1CD13C8AD4301342
Diffstat (limited to 'app-emulation/lxc')
-rw-r--r--app-emulation/lxc/ChangeLog7
-rw-r--r--app-emulation/lxc/Manifest19
-rw-r--r--app-emulation/lxc/lxc-0.8.0.ebuild151
3 files changed, 168 insertions, 9 deletions
diff --git a/app-emulation/lxc/ChangeLog b/app-emulation/lxc/ChangeLog
index 5806316c4820..945192a804ed 100644
--- a/app-emulation/lxc/ChangeLog
+++ b/app-emulation/lxc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/lxc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.42 2012/08/04 04:58:06 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.43 2012/11/11 05:53:05 flameeyes Exp $
+
+*lxc-0.8.0 (11 Nov 2012)
+
+ 11 Nov 2012; Diego E. Pettenò <flameeyes@gentoo.org> +lxc-0.8.0.ebuild:
+ Version bump.
*lxc-0.8.0_rc2-r1 (04 Aug 2012)
diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest
index 66cb4ab2ae88..b628a3bd01af 100644
--- a/app-emulation/lxc/Manifest
+++ b/app-emulation/lxc/Manifest
@@ -2,19 +2,22 @@
Hash: SHA256
AUX lxc.initd.2 3673 SHA256 59af465354877331fd876872b15f4f658933612217d3a7538beef4514fe12096 SHA512 e39ee233c6ed600a5a0509649fbeefcfb2ad5dc632adf9f29ce4ba94b3054bda5e1290f6c68cdf30cd378802ad12d94ab9e55d9b597e23cc1a31210840f897db WHIRLPOOL 8d3223e642cebb04d27b6e93ad91ebbca0966ab5b034e8386de4df0c4d276e773032f326a9639fca07eecfcbf25f9048cd83d43c32bfb11d6af59e4ccb97911c
+DIST lxc-0.8.0-backports-1.tar.xz 2424 SHA256 5b68b96b9fbc2d0f5b2ad2e7fb996a3d837114237a306de39d9939f31756a522 SHA512 9898d78836cc546e80015a18070e3976118d2efb006584ecfb2887a4474598766e023eb6c120c16dae2e94dddc33c8a4e928fd44bc6fb2260a1913c06f5d374e WHIRLPOOL ef11f25ec8891f431be7aed32b38c0cc51e1096a37ea71c38aed4448ab0305784b510e2b55bdc73e5ef2128344a6c88adb3add798323f77e276b5185e53f5ef9
DIST lxc-0.8.0-rc2-backports-2.tar.xz 4616 SHA256 c371817b5be47ed70dea410a32dc434a060073992d5299d2c88853de79aa2111 SHA512 ca646ae325a4cf94632c443397834a8a7dc004874b528d2d685b698b3eda1e72e09ecfd68899b9c0cd17d5d7bf1a62230dd6d17d26f73d2d4ecbf1932c31b996 WHIRLPOOL 76deca3e2b7fe306c0e2f538759fb33656f08c52d1b59570edc6f3d2444d387a0f7944f759baf41402e747eb055ab403a82a40b95ba0c7d42d0644a5f990e851
DIST lxc-0.8.0-rc2.tar.gz 302999 SHA256 1f0ee0464507d26e494784e841b68c765ecd3abc5976012e226f69d1aa361bef SHA512 e6608f980489f67d412c9a50f8c3f65c1afbba520dfdfe2b695c597c2706544291f31c8cfca2d86cfbab09029f8a5706fae5ab72f1c45dccca5f7e2ae8851181 WHIRLPOOL b41fe7e14315b9e6702070535edfee68379c01fba23d143c5f11afa20f6d392c8bc32953da46ec3f74d7a2affe9f828d918f23a8a16c430e3b8ffcc9b2c10057
+DIST lxc-0.8.0.tar.gz 309973 SHA256 eac833730b94e423d4bef6834bc4a716437d2abd6ab8b24334c506aaaa08692c SHA512 47333e2010d0f4488b8876ba933f2d26304874bec0371a7ab3b6e5bd1a50a7d2312ff8507e273f1ee2341a7f2e3b79cd71e5e19ac31006a4e429ee96b01733f6 WHIRLPOOL 693b7d354dec7c6102d5ce3a42a9b618e213fd9ee8c592068ebadb7f25094606abce6c3da77b483fab0938410215010f71d487f336856c87327d6a98f20b65dd
+EBUILD lxc-0.8.0.ebuild 4687 SHA256 d26778ee3bd7eb304011ab0ddf5bc938f030641c4a8dde616ac49de7855403bb SHA512 dbcfe4064fc646c4a0c9d952f80e81f8251aea359a9945b27c5087876e46abadbb15d115c423a6456579859286a794b30932ebca111fe19a4c71d77459376d99 WHIRLPOOL 732a5529ed0f39465df3bc2b3a20b2a2e3532cafc890d93358315800e49dfb05021ca9788a8da3828c5cfb54298db77a6ecbea785c7184bf6016aaee2b541ea0
EBUILD lxc-0.8.0_rc2-r1.ebuild 4671 SHA256 516d8f213a7b7a723e58ebe2223f953b97564f66c0f3285f48c1339c559199c9 SHA512 d1011c6a2985d88842ee41b57a44e884afdb0404d5bcb5ca4c803c4d0d04972c73fd046b488e966d9d42de43b56f00e0e5a05fec79c67c6e67a0b3047dc814f1 WHIRLPOOL df3bc703c5ff2e15e9ec8d38e728b17e8be03ad461ff024cce3a94876f4944036f09b92bd84b1c727ed35b7cd2215ff2d4a34b55f6072c3872ccd454ff1210e0
-MISC ChangeLog 9815 SHA256 a6a3896b1cdc44296807bcdcfb69a5b9c7f432a78c3f1b3cd59bfc481e0bad89 SHA512 5344615a3bc6af68b990498c2f88b7fd787bb39416834f28da1dd38902e9c99b3700a30144c5a58e24efa66ac0b2f698dd57adac9828a63292575034744440c5 WHIRLPOOL cbfe4ec57aa8db74deab8df70d61088fe48f53485801793078565548739d09e8db36b2e1f25c64ac391987306cc99c7187671813d1e27929bf4735f219b74c30
+MISC ChangeLog 9933 SHA256 5829b2809433438e90fa960b406839e354d7d22a9f28675e41e6ba9d1de05271 SHA512 a23997372801fdfa77a6fa560897e856ffbead295b584efdd819a6c7b622730843054f8d11f5555e55e7f852f9e0a40e82776ee7d80b9a1abbb3a60ee283f0b0 WHIRLPOOL d8a47edc6db22360eb47004a0d7c41e0b58af3921120651c77fee9be67905be3eb465300ab8f4b7e6c6add12466d244c7cc51a7132c1dfb59f544167dae2c7b3
MISC metadata.xml 653 SHA256 35f64761067f47ff7abd0e3f3cb57f4bab888a2546bf3267d59987505101a190 SHA512 d227bc432c37518190c224b280116439dde42678f93925ae3a8eb2d2e91918377b33171d8e72ae4ab12f3e5d9faead4223a60e53bb4916d7770982deb64b0b70 WHIRLPOOL 4067036bca1ad2906cdba69c42c0ca5b14042ad7eab2ac8e9a2fbe4eb61e8a3972e4d40b6d9d6e7109a0d2f84a8598a8a9560dbddd43b35633f44ad5362937b0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEbBAEBCAAGBQJQHKv4AAoJEBzRPIrUMBNCMDUH+Jw0jfThhAwPtEHZvrQCaqfN
-nEFRa3STwfOdL1o1uHr0AL6QtrTTXTOVHDacP7bakRsHoOE3Ul6RKFBu4o00t05D
-zEuzwz6N0i/baFND3n5IQD39FWajxTeNfOxu3wK3ygOuSviPbM/gr4puVHBw2das
-dEoepE1uIu5IqO6oaoWmTZ+Lj63FuP48CZopZqnLJk2A3vyHWd44q76uObMhHtbz
-e7nwYWmU2iEoPTxVo08NlT/Vflqm7t8Ho9+FRUL1hJ6Lrk8MqwBO86Gs7Ta5wchR
-yZbBTiJZzuddfNTBZCS5+EvQ5Oyr8YvNkyQqr7lv168oK4/1fEgT/kjEJnJAzA==
-=hDkm
+iQEcBAEBCAAGBQJQnz1mAAoJEBzRPIrUMBNCQFEH/jGpAShBn+Lwbrol8lV6tGTU
+yCBo0PWSmnuprKhkteO6kHzD8+X5WXi7MXA1U/xnDseWHmTn84I3JC0UX7I767wY
+oDjm2lnsZrMIE3//qxO2+g0dRWpsOEDRD6gMlzdtdyj/CEUPrXTm9wY4Afc6W7c5
+pCpzUaRYEd0QeJqp+7sRP1ycPjIBuUFobbM8sY2sWf/zOMoqo7A6UMVRyV1h6/M/
+rgZ0tTV4LyRFbEY23ukaHfIrywhcX8aeH/T5dkchtLYnkGp45GXAE4EGtn54XfYk
+Uyz3rg35m6MNzGsDM+rSQr1DeKu03JcSaBXYmHTL8Dl61v1xbQ4rXvGfS9bUHJU=
+=9i3A
-----END PGP SIGNATURE-----
diff --git a/app-emulation/lxc/lxc-0.8.0.ebuild b/app-emulation/lxc/lxc-0.8.0.ebuild
new file mode 100644
index 000000000000..a37b7e84008d
--- /dev/null
+++ b/app-emulation/lxc/lxc-0.8.0.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-0.8.0.ebuild,v 1.1 2012/11/11 05:53:05 flameeyes Exp $
+
+EAPI="4"
+
+MY_P="${P/_/-}"
+
+BACKPORTS=1
+
+inherit eutils linux-info versionator flag-o-matic
+
+if [[ -n ${BACKPORTS} ]]; then
+ inherit autotools
+fi
+
+DESCRIPTION="LinuX Containers userspace utilities"
+HOMEPAGE="http://lxc.sourceforge.net/"
+SRC_URI="http://lxc.sourceforge.net/download/lxc/${MY_P}.tar.gz
+ ${BACKPORTS:+http://dev.gentoo.org/~flameeyes/${PN}/${MY_P}-backports-${BACKPORTS}.tar.xz}"
+S="${WORKDIR}/${MY_P}"
+
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE="examples vanilla"
+
+RDEPEND="sys-libs/libcap"
+
+DEPEND="${RDEPEND}
+ app-text/docbook-sgml-utils
+ >=sys-kernel/linux-headers-3.2"
+
+# For init script, so protect with vanilla, they are not strictly
+# needed.
+RDEPEND="${RDEPEND}
+ !vanilla? (
+ sys-apps/util-linux
+ app-misc/pax-utils
+ >=sys-apps/openrc-0.9.9.1
+ virtual/awk
+ )"
+
+CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE
+ ~CPUSETS ~CGROUP_CPUACCT
+ ~RESOURCE_COUNTERS ~CGROUP_MEM_RES_CTLR
+ ~CGROUP_SCHED
+
+ ~NAMESPACES
+ ~IPC_NS ~USER_NS ~PID_NS
+
+ ~DEVPTS_MULTIPLE_INSTANCES
+ ~CGROUP_FREEZER
+ ~UTS_NS ~NET_NS
+ ~VETH ~MACVLAN
+
+ ~POSIX_MQUEUE
+ ~!NETPRIO_CGROUP
+
+ ~!GRKERNSEC_CHROOT_MOUNT
+ ~!GRKERNSEC_CHROOT_DOUBLE
+ ~!GRKERNSEC_CHROOT_PIVOT
+ ~!GRKERNSEC_CHROOT_CHMOD
+ ~!GRKERNSEC_CHROOT_CAPS
+"
+
+ERROR_DEVPTS_MULTIPLE_INSTANCES="CONFIG_DEVPTS_MULTIPLE_INSTANCES: needed for pts inside container"
+
+ERROR_CGROUP_FREEZER="CONFIG_CGROUP_FREEZER: needed to freeze containers"
+
+ERROR_UTS_NS="CONFIG_UTS_NS: needed to unshare hostnames and uname info"
+ERROR_NET_NS="CONFIG_NET_NS: needed for unshared network"
+
+ERROR_VETH="CONFIG_VETH: needed for internal (host-to-container) networking"
+ERROR_MACVLAN="CONFIG_MACVLAN: needed for internal (inter-container) networking"
+
+ERROR_POSIX_MQUEUE="CONFIG_POSIX_MQUEUE: needed for lxc-execute command"
+
+ERROR_NETPRIO_CGROUP="CONFIG_NETPRIO_CGROUP: as of kernel 3.3 and lxc 0.8.0_rc1 this causes LXCs to fail booting."
+
+ERROR_GRKERNSEC_CHROOT_MOUNT=":CONFIG_GRKERNSEC_CHROOT_MOUNT some GRSEC features make LXC unusable see postinst notes"
+ERROR_GRKERNSEC_CHROOT_DOUBLE=":CONFIG_GRKERNSEC_CHROOT_DOUBLE some GRSEC features make LXC unusable see postinst notes"
+ERROR_GRKERNSEC_CHROOT_PIVOT=":CONFIG_GRKERNSEC_CHROOT_PIVOT some GRSEC features make LXC unusable see postinst notes"
+ERROR_GRKERNSEC_CHROOT_CHMOD=":CONFIG_GRKERNSEC_CHROOT_CHMOD some GRSEC features make LXC unusable see postinst notes"
+ERROR_GRKERNSEC_CHROOT_CAPS=":CONFIG_GRKERNSEC_CHROOT_CAPS some GRSEC features make LXC unusable see postinst notes"
+
+DOCS=(AUTHORS CONTRIBUTING MAINTAINERS TODO README doc/FAQ.txt)
+
+src_prepare() {
+ if [[ -n ${BACKPORTS} ]]; then
+ epatch "${WORKDIR}"/patches/*
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ econf \
+ --localstatedir=/var \
+ --bindir=/usr/sbin \
+ --docdir=/usr/share/doc/${PF} \
+ --with-config-path=/etc/lxc \
+ --with-rootfs-path=/usr/lib/lxc/rootfs \
+ --enable-doc \
+ --disable-apparmor \
+ $(use_enable examples)
+}
+
+src_install() {
+ default
+
+ rm -r "${D}"/usr/sbin/lxc-setcap \
+ || die "unable to remove lxc-setcap"
+
+ keepdir /etc/lxc /usr/lib/lxc/rootfs
+
+ find "${D}" -name '*.la' -delete
+
+ use vanilla && return 0
+
+ # Gentoo-specific additions!
+ newinitd "${FILESDIR}/${PN}.initd.2" ${PN}
+ keepdir /var/log/lxc
+}
+
+pkg_postinst() {
+ if ! use vanilla; then
+ elog "There is an init script provided with the package now; no documentation"
+ elog "is currently available though, so please check out /etc/init.d/lxc ."
+ elog "You _should_ only need to symlink it to /etc/init.d/lxc.configname"
+ elog "to start the container defined into /etc/lxc/configname.conf ."
+ elog "For further information about LXC development see"
+ elog "http://blog.flameeyes.eu/tag/lxc" # remove once proper doc is available
+ elog ""
+ fi
+ ewarn "With version 0.7.4, the mountpoint syntax came back to the one used by 0.7.2"
+ ewarn "and previous versions. This means you'll have to use syntax like the following"
+ ewarn ""
+ ewarn " lxc.rootfs = /container"
+ ewarn " lxc.mount.entry = /usr/portage /container/usr/portage none bind 0 0"
+ ewarn ""
+ ewarn "To use the Fedora, Debian and (various) Ubuntu auto-configuration scripts, you"
+ ewarn "will need sys-apps/yum or dev-util/debootstrap."
+ ewarn ""
+ ewarn "Some GrSecurity settings in relation to chroot security will cause LXC not to"
+ ewarn "work, while others will actually make it much more secure. Please refer to"
+ ewarn "Diego Elio Pettenò's weblog at http://blog.flameeyes.eu/tag/lxc for further"
+ ewarn "details."
+}