1 |
commit: f4156bb8f8372cb28944a2d04a3cf36f1125af89 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 12 03:01:42 2018 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 12 03:05:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4156bb8 |
7 |
|
8 |
sys-process/criu: version bump to 3.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
sys-process/criu/Manifest | 1 + |
13 |
sys-process/criu/criu-3.7.ebuild | 115 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 116 insertions(+) |
15 |
|
16 |
diff --git a/sys-process/criu/Manifest b/sys-process/criu/Manifest |
17 |
index 863d68e8601..3cddefc4645 100644 |
18 |
--- a/sys-process/criu/Manifest |
19 |
+++ b/sys-process/criu/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST criu-2.5.tar.bz2 605226 BLAKE2B c4086b9822b119a648bda4f6cc831eba5b7e3fba5af41f8f0b1c00dac7d4aff88a71e81569c4559fd98113e76eba0653c67684f443c1c803c453209367a4c875 SHA512 ccf942005ff3b2a567726ddb8aa44048c130f1adf6e2cbdf48e919043c84a4e1c03ad0ec34b44263e5764bea62807a2cc0fa1135b929ad3166fb9486c2880570 |
22 |
DIST criu-3.6.tar.bz2 739437 BLAKE2B 0f128cf69a5a073df3abc736e3081b7d266573575c038a457fdf8adcdab668d957559f3b9a16606ff31871c3bf5e111349995c496c4236b5191340486814981f SHA512 5849024ac4660a5537ed37b6d98adf61d3f071e2a181d873a1f7ca6c4d00a4258445b4bc840e908d907bc34daf8a818450f54e6cdf4826a679e756c0cbc5d586 |
23 |
+DIST criu-3.7.tar.bz2 749499 BLAKE2B 41222983183910b8a039a69e1a425993703e4f461c1cc0e64e92f877aff571d56c7f32cdae7848ef1633a15cac9e7b746f8c84a71f3607f7fc22959964820258 SHA512 8feb9e2579c04b67a7fe9631bb662504a7eb78550c3951cbe29252d87d9258fd6994533f6e60b0017b6a6e21bbdd5e7cd7e8a255be53b77b57efacec4e50140f |
24 |
|
25 |
diff --git a/sys-process/criu/criu-3.7.ebuild b/sys-process/criu/criu-3.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..34cf3149abc |
28 |
--- /dev/null |
29 |
+++ b/sys-process/criu/criu-3.7.ebuild |
30 |
@@ -0,0 +1,115 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+inherit eutils toolchain-funcs linux-info flag-o-matic python-r1 python-utils-r1 |
39 |
+ |
40 |
+DESCRIPTION="utility to checkpoint/restore a process tree" |
41 |
+HOMEPAGE="http://criu.org/" |
42 |
+SRC_URI="http://download.openvz.org/criu/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64" |
47 |
+IUSE="python selinux setproctitle static-libs" |
48 |
+ |
49 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-libs/protobuf-c |
53 |
+ dev-libs/libnl:3 |
54 |
+ net-libs/libnet:1.1 |
55 |
+ sys-libs/libcap |
56 |
+ python? ( ${PYTHON_DEPS} ) |
57 |
+ selinux? ( sys-libs/libselinux ) |
58 |
+ setproctitle? ( dev-libs/libbsd )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ app-text/asciidoc |
61 |
+ app-text/xmlto" |
62 |
+RDEPEND="${RDEPEND} |
63 |
+ python? ( |
64 |
+ || ( |
65 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
66 |
+ dev-libs/protobuf[python,${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+ dev-python/ipaddr[${PYTHON_USEDEP}] |
69 |
+ )" |
70 |
+ |
71 |
+CONFIG_CHECK="~CHECKPOINT_RESTORE ~NAMESPACES ~PID_NS ~FHANDLE ~EVENTFD ~EPOLL ~INOTIFY_USER |
72 |
+ ~IA32_EMULATION ~UNIX_DIAG ~INET_DIAG ~INET_UDP_DIAG ~PACKET_DIAG ~NETLINK_DIAG" |
73 |
+ |
74 |
+RESTRICT="test" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/2.2/${PN}-2.2-flags.patch |
78 |
+ "${FILESDIR}"/2.3/${PN}-2.3-no-git.patch |
79 |
+ "${FILESDIR}"/${PN}-2.8-automagic-libbsd.patch |
80 |
+ "${FILESDIR}"/2.0/${PN}-2.0-sysroot.patch |
81 |
+) |
82 |
+ |
83 |
+criu_arch() { |
84 |
+ # criu infers the arch from $(uname -m). We never want this to happen. |
85 |
+ case ${ARCH} in |
86 |
+ amd64) echo "x86";; |
87 |
+ arm64) echo "aarch64";; |
88 |
+ *) echo "${ARCH}";; |
89 |
+ esac |
90 |
+} |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default |
94 |
+ |
95 |
+ if ! use selinux; then |
96 |
+ sed \ |
97 |
+ -e 's:libselinux:no_libselinux:g' \ |
98 |
+ -i Makefile.config || die |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ RAW_LDFLAGS="$(raw-ldflags)" emake \ |
104 |
+ CC="$(tc-getCC)" \ |
105 |
+ LD="$(tc-getLD)" \ |
106 |
+ OBJCOPY="$(tc-getOBJCOPY)" \ |
107 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
108 |
+ ARCH="$(criu_arch)" \ |
109 |
+ V=1 WERROR=0 DEBUG=0 \ |
110 |
+ SETPROCTITLE=$(usex setproctitle) \ |
111 |
+ PYCRIU=$(usex python) \ |
112 |
+ all docs |
113 |
+} |
114 |
+ |
115 |
+src_test() { |
116 |
+ # root privileges are required to dump all necessary info |
117 |
+ if [[ ${EUID} -eq 0 ]] ; then |
118 |
+ emake -j1 CC="$(tc-getCC)" ARCH="$(criu_arch)" V=1 WERROR=0 test |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+install_crit() { |
123 |
+ "${PYTHON:-python}" ../scripts/crit-setup.py install --root="${D}" --prefix="${EPREFIX}/usr/" |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ emake \ |
128 |
+ ARCH="$(criu_arch)" \ |
129 |
+ PREFIX="${EPREFIX}"/usr \ |
130 |
+ LOGROTATEDIR="${EPREFIX}"/etc/logrotate.d \ |
131 |
+ DESTDIR="${D}" \ |
132 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
133 |
+ install |
134 |
+ |
135 |
+ dodoc CREDITS README.md |
136 |
+ |
137 |
+ if use python ; then |
138 |
+ cd lib |
139 |
+ python_foreach_impl install_crit |
140 |
+ fi |
141 |
+ |
142 |
+ if ! use static-libs; then |
143 |
+ find "${D}" -name "*.a" -delete || die |
144 |
+ fi |
145 |
+} |