From 83c242e7cc2df314ab05ff0966d54ffdf93d9352 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Sat, 31 Jan 2015 13:16:20 +0000 Subject: [PATCH] Drop old Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0x09BF4F54C2BA7F3C! --- app-emulation/lxc/ChangeLog | 6 +- app-emulation/lxc/Manifest | 33 +++--- app-emulation/lxc/lxc-1.0.4.ebuild | 183 ----------------------------- app-emulation/lxc/lxc-1.0.6.ebuild | 179 ---------------------------- 4 files changed, 21 insertions(+), 380 deletions(-) delete mode 100644 app-emulation/lxc/lxc-1.0.4.ebuild delete mode 100644 app-emulation/lxc/lxc-1.0.6.ebuild diff --git a/app-emulation/lxc/ChangeLog b/app-emulation/lxc/ChangeLog index 990990a075a3..da853d9fe80e 100644 --- a/app-emulation/lxc/ChangeLog +++ b/app-emulation/lxc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/lxc # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.55 2015/01/29 04:49:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/lxc/ChangeLog,v 1.56 2015/01/31 13:16:17 hwoarang Exp $ + + 31 Jan 2015; Markos Chandras -lxc-1.0.4.ebuild, + -lxc-1.0.6.ebuild: + Drop old 29 Jan 2015; Mike Frysinger lxc-1.0.7.ebuild: Fix by Simran Basi to set distro explicitly to Gentoo to fix cross-compiling. diff --git a/app-emulation/lxc/Manifest b/app-emulation/lxc/Manifest index cfe4b2e5f087..3ba64709f09d 100644 --- a/app-emulation/lxc/Manifest +++ b/app-emulation/lxc/Manifest @@ -5,29 +5,28 @@ AUX lxc-1.0.6-bash-completion.patch 1341 SHA256 ddac7cc033a4029f8264d06978321bb3 AUX lxc.initd.2 3673 SHA256 bb7780168695e934549909c5c7baa7d6cdc92b0e19093a3d04a1313081a832e1 SHA512 25b0474d6f16fcede89a8e17518a658f810cb554eaef10aae3ce1fdd8c8640118aa6375cbee443f0b26e8086eb7c25375ceaaaf29a4110bd779f94b2f4b0d300 WHIRLPOOL 28f56d71b95b26c7f6ad5402a37413a973bc7bdf08fd3963ad192888ae1b49809a56c16009bc6049061d419ecffb1279e153e6ef5acbe06956efca154eae6a01 AUX lxc.initd.3 3765 SHA256 2a96156f8d07391ae67d2160199d6ae362889438ac5b48c6c241aa02b9f4928e SHA512 fecefad41640c648bc3923952131e97617bc40bfcaa8b7dce2cac752551ca4c9e126c14febe4c56c04ccb3ebd378a91c5a6fe1d3a8cfcf083186b962e4d43b82 WHIRLPOOL ac64b41aed33c08e3baef74fbacb3895a0566837f3e185315792e5a333e35af72c5c784e890cdbf4480515704b017a97c8ba8e1a256032c50da22c3d63b135d4 AUX lxc_at.service 232 SHA256 0aaf2f362b3ac6aa2b427d47ac4436d46387624b0d8bc4850c5d5b6a7d228711 SHA512 4c3bab4f2cc9aea8b0753dcaf2fd7ed5f1cd7d97d286d6204b2fc17505b6edaac2f536bbda5c1466856311d0e93d75de91dec51e9b0f665d67afedbf40c19170 WHIRLPOOL f6928b4b85e63c38295cabc651b7bd61d2b0bc69ff1850de7cfa8a4f40e4894d94264c262fec7d345488cace49c4283f932739313b975f6862c1aa0ef51e0652 -DIST lxc-1.0.4.tar.gz 548741 SHA256 bcb04752fddc581030727be179a9f65715e11b0a04bf9bb119adb1b2d117bd9a SHA512 ec30e01e2dab393a74b50279981a9bb0e93da2ed2c82b33e218cd1146df20b5443a75ace623c30b6c9718f8a23e4a447484bf316c9155324fe931741d2ed9f06 WHIRLPOOL 2ae27940884bb645674410ff223f80e63b90cda7a4fdf189133ebab91621c0fc95ddb24e439f08ffbf93a3056e32dcc88cdc04ac75d9c4ad8a4779c177845074 DIST lxc-1.0.6.tar.gz 561249 SHA256 2aea199a89e2cd946f93406af6c3f62844f36954b79a6991b36d2c33022cb11c SHA512 fe85ccb57865d86704df6b4b79d60f31892785b07dc9dd2580cc6c384c89c29c23516e906b7a16bc03c6582c1fb2432bb8ff11bd17c09efa8f6a035fb41f46b1 WHIRLPOOL 9e77453fbe31523a2e8f39cfaba6f09fef68d00b54549167a0cde56c00934f827f5b4190b9fb64242f36782a9fcda63e6796c35fd47420870c2cee7b9bc0a1c8 DIST lxc-1.0.7.tar.gz 564985 SHA256 a0b1b09592e076e270dcb3ba004616d9ac3147f9de0b78ca39a30f8956b0a8f2 SHA512 e6ff42a7b41177e1be0d2cd47d4c554565c7fc35355f3aa8aeba00d4adc7a0f364ecd060ddb6c97b2fe5968329c4e4c4b3cb022bffd2da145f30880f077264a8 WHIRLPOOL f07e5e9efb8ff394aa9cdd6c3e725b453c8137ec221399cbf910d57dbc9268fc84e7227273567792821415dc14e774942b76a58a1a478de57d5c82e545702000 -EBUILD lxc-1.0.4.ebuild 5597 SHA256 c7f4007dae5414e8d8acdc8927df0f2f090ca9bbcba8ef8f7044d6df0e4da43e SHA512 994812de2c433e2996f0149da1c156947ccaa50699852f4af655d74bd9bac93a743a782e42a603ee192ebc66c52432e687413831896d0d2e7286d5ac1b75e33f WHIRLPOOL c9d7200d4493fa341d15fbe83fd76b6fc277a0d4d334739586a28f2dbe897864c431423bdb2a189ef6e2866ac120808781151c8b36f986bdf8049053a139eec1 EBUILD lxc-1.0.6-r1.ebuild 5858 SHA256 b4bc37f2d005858c71dc02110ac99d048f5193bb4c1d2da7b9f858c36ed01452 SHA512 3821d69cf02f91e08075b029ede033f994f397b958932ce6ce13e588da92e68e15757184ae3b176d003fa190d8bdfc5e926b3333376a300aa5d5b789e581f4cd WHIRLPOOL 9bebff48adca2da4fef6b24e8f24acacd50064ae45c812b6d68faa7832da5f6ddda90552de57ab439de2bc2113f266b257f1312eb63b4b5667b9e4dc0ef0c8c9 -EBUILD lxc-1.0.6.ebuild 5517 SHA256 342383c71c61bb2d5dc14b179d0f8570f3707a654be9ea3b5bba946b44c2b183 SHA512 a8314c49a5f2df5ede9ffa6882fb84350ec15fed18cf82f4b63d513e309ba9267adf5a0a068c37c83ae2cfcbfa6fba2b4e8083b59c441fb852938498a5fafebd WHIRLPOOL ac1bdfeb650ad33cad3d3b7b3257f24e409bbcaed15900ef27fd4ee7fb4e836a56314fb09f1d52c45dcd3014c89f54ca65bc46c53a0e829b9900e43a49098377 EBUILD lxc-1.0.7.ebuild 5889 SHA256 66c11d6f9ff9d935c89d5a5abece432a5d956439e8bd77bef80492d849be27c4 SHA512 2ba4cc7cba13b54cd1c9531afaff08e19c3ad10561c116e8a41080d3c4f9fd7b36e54a9a944242b5f820ca9e9fd0e1ccea233a39de3322fc3df665d19a223b27 WHIRLPOOL cb2148f5b3636bc374320c028beec8ed7039097061a97cff9aadfff44b1964804d77fe8970434974d0888c35712197339454137f47a3e8047771a96565487b85 -MISC ChangeLog 11903 SHA256 6f918dd445bd2cc52bf3ee3653c651a2c51cb52fbff792c6eb9b1a7e4d270888 SHA512 1ce0240b0a5f4b3c2d0471e5ba43a46073102c2f2561f695a066fea7fe827957381c35b20abcb370d2ee3b4fd91d316faa86afcb86a2c906c30292e35b165496 WHIRLPOOL 4f82fcb7c77d8e928dd160663ae0f750ee8271ea7ad804912378d14ff85d8868bc86872d91720be542d0f197ed4292590243296add89cf1ec0f9450ab9804283 +MISC ChangeLog 12010 SHA256 b7ed0cdde5721b1a8784a0c12c666cfbb784908613f5267d08696f839e685868 SHA512 61c3aea45d8bd79032bcf7fe189a8bd6bfb2331eb6401583c4771718f24a67242613a31e03c896edfa97532a07a1abe80e43b808dfefb6739a195cdf66b90f9c WHIRLPOOL 91222982e4a3ea1b09f71abc893d42038a2f2be33ab1065324339a388e8966eefa8e5da91e8f938d01e059033ee6d799756bb7093cf4f5dd58014ea027e1bddb MISC metadata.xml 494 SHA256 82db4b5e8580454962bfd6c341660f4b5b2d244311152978f8ff107dcf3c55d2 SHA512 cb0cdedcafedb433898bf9cde51736a6728db69d689ca0cc324487cf1f35356e710062bb8072a94909139bfa1cace529d81cc6a8b4ae4cba6e6f99fde0ac53a7 WHIRLPOOL a1aacd0211fb2a31522c7a0ab2f1259870b4cbcc8ba099ec35188bf24e55fc4f4cf3eb76dd67360037b0a038b3d80f1c7c45fb6a081f6bf424780573f1178a1c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJUybvlAAoJEPGu1DbS6WIAYNMP/RLfTowGIZTOOFCCl+hfj2BH -Zhe4v1xPrPQdnkPryO10Oj92eGqXQMa+3WCPUfahKt5FSWluowR6BNEgxh7rhIFm -Hf7DGT5+4pInBdQuWgLVvAoSDG/M8BiqRtH38zTIxYo2s9R/hBxi8F+/j7ezMvWv -gaf42n939ssXRkJSlMpmJsyu/Itc5pfuF2GDQK25pcOwI9J6mOcG5fNbQ4eYV6Xv -eC7QCWBykc1FOuLGubRcrGWqcG1KIzbgB/LEjxAOPxq/pkEioUmE+DJJDy0BTxGc -m9arXf04Alm2yEPBp1OibYucfoaMvk7QpwF4V+TyvUiUn//MYDIHsKElfhImL0MM -xIf9411JJO18ylqoIcZFLKc0OZF/1RFYMSc2bCktQHYwFT1O3QCmAPlZgoFl1QDw -9e2dqGwR73LQM7Y3UjppHHTVlXsb4WwfBGqkHwwd0WoNv8mrTL9TAIEvFp0eA0wn -/uSc1k1eh+OnGc4LRF7h3d86qFo68ZXnEjEgGa7GN0/gTEv3poQHTvq4fAZq43yQ -INlu3uPs1kMMCvdbV0hLVCr7AvE1Rqfd/tv8L6OF94PI0fj5fK6kT1G0oaT7Ly1P -Cdl/rRVy0gGO/9O/6grAuQpkAY/9fB3K+D7mHpojn3VZ8NET0Ob0y1WknSBO5DJy -7uf+/4tHEBKOUPrj8ROb -=hB+y +iQJ8BAEBCABmBQJUzNWiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw +OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88/TUP+wXESA0+SJBjjvCu22XURhUe +xHjbEyUdCYtNxIcASdtzXzC5zi5f2LvHZZ9g1bL15AdZlxO9tVu9DN1sJDwGT34r +yTG5w0EnGFUXEXMacFfhEG9CBuK4amT1HVs/QLleMKtMBapI4yk3slIGvYTwAi4D +8gmQMWQFLEDe5LzsHFNdemFQxVuXxDyeWVgoF8TELnc4S2nGPT0Y/4pF3ZgEOSpu +NY/gzIwzAvkYryFROjEg/v9U7rtGLr+WpVGjA1iRmWACpVvSIDA2CK6zbQKWYYyI +NSlSI/sgaOxkXu8saPJ3C5KYtsycK0ll6SaQZFQJt9wA17DBAWVP1nrZq2TyoTcj +nN2Ft0umJvxjctgOw4Of+AN1b+BFeIf8G1MgRXXvnemqa05DxztWqZRgCbljg7a6 +yLDZHZb08HAWHP/cNEGxVVmu8D/KrE+l8q/1Wv11LP25+XyxJRrKJPFvULLq6TME +gU9Je7j56WkfbKYF3UZSeoZ2dzpepAF401eCiyj/U7aozEuJR1XKNapWIzgFDZvi +CJakMbpsk7U5Vbm8KNtUKTgob1mMi9iLnkb/t8mzxLBfJTQp/ToMgcCS6Vg97UFM +Xj4X9Ya0A92WWbr2CxxxhOfquEyMevsohpx89kdE8zTPAHrmyn5JvNxx8ojepDNy +TAOL/qOORj5sd/Xor9J1 +=ivNM -----END PGP SIGNATURE----- diff --git a/app-emulation/lxc/lxc-1.0.4.ebuild b/app-emulation/lxc/lxc-1.0.4.ebuild deleted file mode 100644 index b3c915b9d7e8..000000000000 --- a/app-emulation/lxc/lxc-1.0.4.ebuild +++ /dev/null @@ -1,183 +0,0 @@ -# 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.4.ebuild,v 1.1 2014/06/15 18:29:53 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 NEWS 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/lxc-1.0.6.ebuild b/app-emulation/lxc/lxc-1.0.6.ebuild deleted file mode 100644 index ea0001afdeeb..000000000000 --- a/app-emulation/lxc/lxc-1.0.6.ebuild +++ /dev/null @@ -1,179 +0,0 @@ -# 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.6.ebuild,v 1.1 2014/10/18 17:00:37 hwoarang Exp $ - -EAPI="5" - -MY_P="${P/_/-}" -PYTHON_COMPAT=( python{3_2,3_3,3_4} ) -DISTUTILS_OPTIONAL=1 - -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 NEWS 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 - - 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) \ - --disable-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! - # Use initd.3 per #517144 - newinitd "${FILESDIR}/${PN}.initd.3" ${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." -} -- 2.26.2