diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2014-05-03 18:43:43 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2014-05-03 18:43:43 +0000 |
commit | 09e9087ddd81a2a818205360df943b63950b8f5e (patch) | |
tree | 198b80c4f0d101ba1a0744f43ade90896fae2cf7 /app-emulation/lxc | |
parent | Mask app-emulation/lxc[seccomp] because it's not supported on powerpc (diff) | |
download | historical-09e9087ddd81a2a818205360df943b63950b8f5e.tar.gz historical-09e9087ddd81a2a818205360df943b63950b8f5e.tar.bz2 historical-09e9087ddd81a2a818205360df943b63950b8f5e.zip |
Version bump to 1.0.3
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0x09BF4F54C2BA7F3C!
Diffstat (limited to 'app-emulation/lxc')
-rw-r--r-- | app-emulation/lxc/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/lxc/Manifest | 24 | ||||
-rw-r--r-- | app-emulation/lxc/lxc-1.0.3.ebuild | 183 | ||||
-rw-r--r-- | app-emulation/lxc/metadata.xml | 1 |
4 files changed, 210 insertions, 6 deletions
diff --git a/app-emulation/lxc/ChangeLog b/app-emulation/lxc/ChangeLog index 74c0fda48661..663ce926d4d9 100644 --- a/app-emulation/lxc/ChangeLog +++ b/app-emulation/lxc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/lxc # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.47 2014/04/19 17:14:23 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.48 2014/05/03 18:43:36 hwoarang Exp $ + +*lxc-1.0.3 (03 May 2014) + + 03 May 2014; Markos Chandras <hwoarang@gentoo.org> +lxc-1.0.3.ebuild, + files/lxc_at.service, metadata.xml: + Version bump to 1.0.3 *lxc-0.8.0-r2 (19 Apr 2014) diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest index e58c27e15fd2..8cb8627167ef 100644 --- a/app-emulation/lxc/Manifest +++ b/app-emulation/lxc/Manifest @@ -7,15 +7,29 @@ DIST lxc-0.8.0-backports-1.tar.xz 2424 SHA256 5b68b96b9fbc2d0f5b2ad2e7fb996a3d83 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 +DIST lxc-1.0.3.tar.gz 538073 SHA256 9fc4ac60a842058e4ad0fe6a281dc0079ee9830afa1852a10fa044219f2c6412 SHA512 95d7080cdb34776b601959bbc95572b1d6defeaec6820a38d9b09eb05bb43eaa4a2c4d9fae26f4d1a7ee13ad6cd104c36dd5cbe6ee5e44f274135e42370cc983 WHIRLPOOL 99324332f6d1f50dc3c0c9e54a565295b2186183f9e198418a8a891b799befebabf42784eab02988643ee0c1c77389dc0ce9ae28a5da4df42f9eb2749e0b0da4 EBUILD lxc-0.8.0-r1.ebuild 4575 SHA256 a0ab7706bd081d41ad92941e1fd1cc47f073e2854ba8b92868c16bcf96d31fe8 SHA512 9aa5f52845446b79a7c2a850a41d8345f30b7eee493e2a236cdeebe86b2a949fb6556e642e1679907d15a9d7a43486b7f3885784eb750265e3a0450819619d03 WHIRLPOOL 059da01a1ff45dc77a81c396107ef7b77f4dd3d14f124bd7d9a80bdf6326a08c350bf63539954e37c048e945c040944ce045a40ae546a9d670d11e28b90819a8 EBUILD lxc-0.8.0-r2.ebuild 4644 SHA256 2888f0ee5960f78b217666e78a5d89732f2641f79662f73089bee8041e1ef08c SHA512 fcb6371871ee38bb5715528128f87b16f5d0c76f7503f1c3a4ef1123633c07a6e02899f1ec9cee49f2accce30a2b6d0de251db53f9dce11e4b753a6348d43c85 WHIRLPOOL 4554f320786acdbb8b76d862a85d330d31f756a2878a12c9792074a9bcd8de790e10a4a4d3b6a9b8e6835c07e4b927976b801dfad0add746b7bedc59084baf78 EBUILD lxc-0.8.0_rc2-r1.ebuild 4671 SHA256 516d8f213a7b7a723e58ebe2223f953b97564f66c0f3285f48c1339c559199c9 SHA512 d1011c6a2985d88842ee41b57a44e884afdb0404d5bcb5ca4c803c4d0d04972c73fd046b488e966d9d42de43b56f00e0e5a05fec79c67c6e67a0b3047dc814f1 WHIRLPOOL df3bc703c5ff2e15e9ec8d38e728b17e8be03ad461ff024cce3a94876f4944036f09b92bd84b1c727ed35b7cd2215ff2d4a34b55f6072c3872ccd454ff1210e0 -MISC ChangeLog 10654 SHA256 89900d5023ee74219cde566a68e2b7b90cbb6298e07c13d4a6ab815bfbdb626d SHA512 eace1554fc27eeb174c66fb0f2c9c9837eaca8a649d1a47ee11c3a847baf8de6d69fe8024178f35d7a00731dc887fa1ef1fb5ed35e6481580bb2d02682aa560f WHIRLPOOL 70c0106d5f441df468ea288ce39ee3416cf56f9a89a3b9581fe44fef3166ad9dcb7ab65f248f9b2efcaa970923529dbc0fc975f9c7b3b6df4136f1996dfa4cd7 -MISC metadata.xml 652 SHA256 f79e23b59f36846b00417ee65dc1b1d902fafdf9e6cf0fe73e09fab6b94e723d SHA512 057253204b0fcdb07cf5b820e178716f73864d4b711dab0ae12df85d078ab3857a527b6fff163d623f7182f5f8411c8b275133917b44f2e0136c684f71f7ab46 WHIRLPOOL 80762b9a6ee854558ee51b82858700ba148e242328e48c8068fd2cd10cdd4f8aa3b3673da4426f066ac62d4bf58503cafc182236042ed0a626ef16007a923496 +EBUILD lxc-1.0.3.ebuild 5597 SHA256 3a698b042a910ff36a8ad5564e3565f8f8de1881f354d7545f832ee912890d8a SHA512 0beb6fe3c7f073f75fc71107cc83700d428a2885180a5cdcc6a53432177b313e03fa57771899437080764944e3f9f55c040e1a5554fb8e231691122192c512c1 WHIRLPOOL 08f899ae4798791ccb583c0eaa3121ce9c7a5edcbc5e1fd40b45764ea36156445968ff10a65b3703de56074f97f81eb1baf80a657d7619b891333184e2ff1d4d +MISC ChangeLog 10818 SHA256 bb80ded10fc82cb752279d100c1e9e8a6f913f52b75651df9c61af565fb12e65 SHA512 9d84c14215c3265c0d5214bea11391dce7fa81538f6d3b80cb348bab717f7bddf480d90fc03aa6418323df2ad1b04e651105c49b1a37576e8ca07af280348241 WHIRLPOOL 1721d70f3fefdb4dfd5d8ea577767a2704cbec6415498f79e75de468a68a66302242762503428e1e66086a99c7ad930279010233b8744a103621fd1962b3fecb +MISC metadata.xml 749 SHA256 b2f42fb2dd8fb70848c3a6a487423f36c5ec9d474228e13d68d60f976130a32d SHA512 5ce3b323442b8e11ec20f2f88077550a517058d7696666ce6834dfc2e8560dc63d9d50b2cf2b311ac503848f9b2c768112b1c2eb5bd1005a04503f104c152897 WHIRLPOOL 3abe7d01acd844b0d4a109a99cad2abfe1f591b47633aa5b952379036526550cdfea922231533d4d24e013ba7bf6d03c4fe71ea7bdfcb2b283f41cdeff054846 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlNSrvAACgkQCaWpQKGI+9TarwCfUyz4nfE3hAqMk187TOZPYflQ -jC4AoIOHXQinjdem0ADEhVF0gdRjzjvo -=hfqG +iQJ8BAEBCABmBQJTZTiAXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw +OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88HZYP/374PQr6rdf89iO1n6OKRr6c +FAC59At/jj9wqC27U20U3Vp0DymH6VkmuEXA/oJ2RKweFFDFcZWB1ciqo/JTrm+p +jt4wn7/arxntjmT+E2WlIO2ZXJ94RHBB+TyZ8SAS2zLnqQUNTUi3LKGBt1ulUCsV +buW0fs0HFUsmv5nb8L/tWctwBMSooVumvprG54M9Fm5iR9rXoG5GFhkCb6YoQzs9 +ytdXDSVFcdzyYJihdR2Zl8LE3vNXAkzfMpWG0mxmGw5EjLjKAWKnqXanCEJyvbT+ +YX4WbYFuL8MQxAPJHoLmmUqAQ98QInY4ffsAAGMDpG+5VJ1EgFueoxrRA5L6zbSL +mSwr2UB5RABRgn0NrKvM0zVKDolzPRGVMmHohmG2NqzpdHEDGDcrRtg3jEda4djC +Vy0sZcrSzLugKpkmgp2gPQqb8Sufx9SI+SVJi9mB7YiGQOTI25ByeG+FMX3y1oAc +gk8izzVsrHSeEvctWhiJhkq4ct+FROdo0gItNsHBmdmvId9BhHpsimwQi93m20lU +Wm9IVC9QQ+ZW8QXitsHmNjh1JbIw8oW+n5kteCBNwGAtjn85XQT4+xBJ4Gd3Ke4S +jS/dcvwkmAKHtb1v909tKwtNAdbPbb5gDyS2iynZ1Ie1krVTwFsPVN4Wg1ZHIAjA +bMKEXQQFqo3cFGzmIspW +=MsQW -----END PGP SIGNATURE----- diff --git a/app-emulation/lxc/lxc-1.0.3.ebuild b/app-emulation/lxc/lxc-1.0.3.ebuild new file mode 100644 index 000000000000..ab1e9034e24c --- /dev/null +++ b/app-emulation/lxc/lxc-1.0.3.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/lxc-1.0.3.ebuild,v 1.1 2014/05/03 18:43:36 hwoarang Exp $ + +EAPI="5" + +MY_P="${P/_/-}" +PYTHON_COMPAT=( python{3_2,3_3,3_4} ) + +inherit autotools distutils-r1 eutils linux-info versionator flag-o-matic systemd + +DESCRIPTION="LinuX Containers userspace utilities" +HOMEPAGE="http://lxc.sourceforge.net/" +SRC_URI="https://github.com/lxc/lxc/archive/${MY_P}.tar.gz" + +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" + +LICENSE="LGPL-3" +SLOT="0" +IUSE="doc examples lua python seccomp" + +RDEPEND="net-libs/gnutls + sys-libs/libcap + lua? ( >=dev-lang/lua-5.1 ) + python? ( ${PYTHON_DEPS} ) + seccomp? ( sys-libs/libseccomp )" + +DEPEND="${RDEPEND} + doc? ( app-text/docbook-sgml-utils ) + >=sys-kernel/linux-headers-3.2" + +RDEPEND="${RDEPEND} + sys-apps/util-linux + app-misc/pax-utils + virtual/awk" + +CONFIG_CHECK="~CGROUPS ~CGROUP_DEVICE + ~CPUSETS ~CGROUP_CPUACCT + ~RESOURCE_COUNTERS + ~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) + +S="${WORKDIR}/${PN}-${MY_P}" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die + if [[ -n ${BACKPORTS} ]]; then + epatch "${WORKDIR}"/patches/* + fi + + if use python; then + python_setup + # We will handle python on our own + echo > "${S}/src/python-${PN}/Makefile.am"; + fi + + eautoreconf +} + +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 \ + $(use_enable doc) \ + --disable-apparmor \ + $(use_enable examples) \ + $(use_enable lua) \ + $(use_enable python) +} + +python_compile() { + distutils-r1_python_compile build_ext -I ../ -L ../${PN} +} + +src_compile() { + default + + if use python; then + pushd "${S}/src/python-${PN}" > /dev/null + distutils-r1_src_compile + popd > /dev/null + fi +} + +src_install() { + default + + if use python; then + pushd "${S}/src/python-lxc" > /dev/null + # Unset DOCS. This has been handled by the default target + unset DOCS + distutils-r1_src_install + popd > /dev/null + fi + + keepdir /etc/lxc /usr/lib/lxc/rootfs /var/log/lxc + + find "${D}" -name '*.la' -delete + + # Gentoo-specific additions! + newinitd "${FILESDIR}/${PN}.initd.2" ${PN} + + # lxc-devsetup script + exeinto /usr/libexec/${PN} + doexe config/init/systemd/${PN}-devsetup + # Use that script with the systemd service (Similar to upstream + # Makefile.am + cp "${FILESDIR}"/${PN}_at.service ${PN}_at.service + sed -i \ + "/Restart=always/a ExecStartPre=/usr/libexec/${PN}/${PN}-devsetup" \ + ${PN}_at.service \ + || die "Failed to add ${PN}-devsetup to the systemd service file" + systemd_newunit ${PN}_at.service "lxc@.service" +} + +pkg_postinst() { + 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 "" + 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." +} diff --git a/app-emulation/lxc/metadata.xml b/app-emulation/lxc/metadata.xml index 138cece73f9a..cc2018606483 100644 --- a/app-emulation/lxc/metadata.xml +++ b/app-emulation/lxc/metadata.xml @@ -9,6 +9,7 @@ <email>dev-zero@gentoo.org</email> </maintainer> <use> + <flag name="seccomp">Use seccomp syscall filters using <pkg>sys-libs/libseccomp</pkg></flag> <flag name="vanilla"> Avoid adding Gentoo Linux-specific modifications, which include the custom init script. This is present as a flag to avoid |