commit:     d44c85d4453325d70e526859bb0016bbf1d53415
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 20 06:34:00 2016 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Sep 20 06:35:20 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d44c85d4

sys-process/criu: version bump 2.6

Package-Manager: portage-2.3.0

 sys-process/criu/Manifest        |  1 +
 sys-process/criu/criu-2.6.ebuild | 96 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/sys-process/criu/Manifest b/sys-process/criu/Manifest
index 0037ca2..4e22fd1 100644
--- a/sys-process/criu/Manifest
+++ b/sys-process/criu/Manifest
@@ -2,3 +2,4 @@ DIST criu-2.2.tar.bz2 558926 SHA256 
f893938f72d2c0693a9430e7dd39dc3d32a40187de5e
 DIST criu-2.3.tar.bz2 572580 SHA256 
acbdfeb2b6c5b72dbc849e014eecd4d166f0c05c76fc40424eedec0761b60bfe SHA512 
b058d4a917363190f5196256ecff23fab7c11e259807d8cef954690e9bc03751095529da5774e687ff6a1a506382aec92275771b031d790d6a0bd7cebde2916a
 WHIRLPOOL 
a32809d05d01781b3241f4c6766f8d17acc8de275af01d934e849a47f8857d4479147dc127cc02e32ebb6358720536e1596b6e063fdc88ee1c0b0725e126220f
 DIST criu-2.4.tar.bz2 602896 SHA256 
2a38119d7baae2cad8496f98dfc461c9685e67f12131abc5f44d764d4b87e9f0 SHA512 
04f1ba472ea9189250f1eedbf377b2607f8425cc660b37e1ca8b47310eec84331551f5c3db1b7341779176aaeaaab67662545dad2ffbcf212548c67a991b0c72
 WHIRLPOOL 
9447a3e542beced07636269c7c6612080ecd6d4edb2bb09459440fc8a517bb08dd385bde6c80d5cc61dbf90948b740aa80bdae6bcd79b8415ae3d4fdec4413cd
 DIST criu-2.5.tar.bz2 605226 SHA256 
d2a9ffec0b659c3d3a71e1d473e95e36b208b2563f136ce8f471ff9600fcc51a SHA512 
ccf942005ff3b2a567726ddb8aa44048c130f1adf6e2cbdf48e919043c84a4e1c03ad0ec34b44263e5764bea62807a2cc0fa1135b929ad3166fb9486c2880570
 WHIRLPOOL 
9896fe45d4516a73e6b7c403a044d25902ed4a9000b0a0a053ff9d52c053adfb58c8ce0225b9841bc7e2f38de6a8e4fc6d3073d878ea5b09b81cc89cba91de62
+DIST criu-2.6.tar.bz2 614488 SHA256 
b85b50296175b1751fa2b26936cbcf5041d08a9fb49c32cb0f2b590e82dea322 SHA512 
37c5a207803213e4a98c2ea1b8f781f6bee2d7fb3c004fae4db5c56c64f61ff3177ad3fb314d1225cab4723e05900f55fc4ab466c11e7c9f9a4921634bbf90c5
 WHIRLPOOL 
5443c16af70b383d935318a9c15f9359d4f69de272533c0f713a2015718dec6f64cad59173664458a0fffc224a8f47b3c846d8cb66ce813f59ba6c32177effa4

diff --git a/sys-process/criu/criu-2.6.ebuild b/sys-process/criu/criu-2.6.ebuild
new file mode 100644
index 00000000..3f163d5
--- /dev/null
+++ b/sys-process/criu/criu-2.6.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 
python-utils-r1
+
+DESCRIPTION="utility to checkpoint/restore a process tree"
+HOMEPAGE="http://criu.org/";
+SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64"
+IUSE="python setproctitle"
+
+RDEPEND="dev-libs/protobuf-c
+       dev-libs/libnl:3
+       sys-libs/libcap
+       python? ( ${PYTHON_DEPS} )
+       setproctitle? ( dev-libs/libbsd )"
+DEPEND="${RDEPEND}
+       app-text/asciidoc
+       app-text/xmlto"
+RDEPEND="${RDEPEND}
+       python? (
+               dev-libs/protobuf[python,${PYTHON_USEDEP}]
+               dev-python/ipaddr[${PYTHON_USEDEP}]
+       )"
+
+CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL 
~INOTIFY_USER
+       ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG 
~NETLINK_DIAG"
+
+RESTRICT="test"
+
+PATCHES=(
+       "${FILESDIR}"/2.2/${PN}-2.2-flags.patch
+       "${FILESDIR}"/2.4/${PN}-2.4-makefile.patch
+       "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch
+       "${FILESDIR}"/2.5/${PN}-2.5-automagic-libbsd.patch
+       "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch
+       "${FILESDIR}"/2.3/${PN}-2.3-aarch64.patch
+)
+
+criu_arch() {
+       # criu infers the arch from $(uname -m).  We never want this to happen.
+       case ${ARCH} in
+       amd64) echo "x86";;
+       arm64) echo "aarch64";;
+       *)     echo "${ARCH}";;
+       esac
+}
+
+src_compile() {
+       RAW_LDFLAGS="$(raw-ldflags)" emake \
+               CC="$(tc-getCC)" \
+               LD="$(tc-getLD)" \
+               OBJCOPY="$(tc-getOBJCOPY)" \
+               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+               ARCH="$(criu_arch)" \
+               V=1 WERROR=0 DEBUG=0 \
+               SETPROCTITLE=$(usex setproctitle) \
+               PYCRIU=$(usex python) \
+               all docs
+}
+
+src_test() {
+       # root privileges are required to dump all necessary info
+       if [[ ${EUID} -eq 0 ]] ; then
+               emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test
+       fi
+}
+
+install_crit() {
+       "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" 
--prefix="${EPREFIX}/usr/"
+}
+
+src_install() {
+       emake \
+               ARCH="$(criu_arch)" \
+               PREFIX="${EPREFIX}"/usr \
+               LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \
+               DESTDIR="${D}" \
+               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+               install
+
+       dodoc CREDITS README.md
+
+       if use python ; then
+               cd lib
+               python_foreach_impl install_crit
+       fi
+}

Reply via email to