summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-12-06 07:09:12 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-12-06 07:09:12 +0000
commit8f65f694da4cda829f2c0893bc8e42ae2e161834 (patch)
tree150ad13e0a745effcd5ccf3470aaf1e2467e873e /sys-apps/proot
parentRemove old. (diff)
downloadgentoo-2-8f65f694da4cda829f2c0893bc8e42ae2e161834.tar.gz
gentoo-2-8f65f694da4cda829f2c0893bc8e42ae2e161834.tar.bz2
gentoo-2-8f65f694da4cda829f2c0893bc8e42ae2e161834.zip
Version bump, wrt bug #490840. Thanks to Tim Harder for discovering this issue
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'sys-apps/proot')
-rw-r--r--sys-apps/proot/ChangeLog9
-rw-r--r--sys-apps/proot/files/proot-3.2.1-makefile.patch11
-rw-r--r--sys-apps/proot/proot-3.2.1.ebuild48
3 files changed, 67 insertions, 1 deletions
diff --git a/sys-apps/proot/ChangeLog b/sys-apps/proot/ChangeLog
index b033bf32756d..25ded1949f95 100644
--- a/sys-apps/proot/ChangeLog
+++ b/sys-apps/proot/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/proot
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/proot/ChangeLog,v 1.1 2013/01/24 08:54:46 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/proot/ChangeLog,v 1.2 2013/12/06 07:09:12 pinkbyte Exp $
+
+*proot-3.2.1 (06 Dec 2013)
+
+ 06 Dec 2013; Sergey Popov <pinkbyte@gentoo.org> +proot-3.2.1.ebuild,
+ +files/proot-3.2.1-makefile.patch:
+ Version bump, wrt bug #490840. Thanks to Tim Harder for discovering this
+ issue
*proot-2.3.1 (24 Jan 2013)
diff --git a/sys-apps/proot/files/proot-3.2.1-makefile.patch b/sys-apps/proot/files/proot-3.2.1-makefile.patch
new file mode 100644
index 000000000000..854c48ef0817
--- /dev/null
+++ b/sys-apps/proot/files/proot-3.2.1-makefile.patch
@@ -0,0 +1,11 @@
+--- src/GNUmakefile.orig 2013-12-06 10:47:18.554784621 +0400
++++ src/GNUmakefile 2013-12-06 10:47:43.129785804 +0400
+@@ -9,7 +9,7 @@
+ CC = gcc
+ LD = $(CC)
+ CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I. -I$(VPATH)
+-CFLAGS += -Wall -Wextra -O2
++CFLAGS += -Wall -Wextra
+ LDFLAGS += -ltalloc
+
+ OBJECTS = \
diff --git a/sys-apps/proot/proot-3.2.1.ebuild b/sys-apps/proot/proot-3.2.1.ebuild
new file mode 100644
index 000000000000..85bace571c85
--- /dev/null
+++ b/sys-apps/proot/proot-3.2.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/proot/proot-3.2.1.ebuild,v 1.1 2013/12/06 07:09:12 pinkbyte Exp $
+
+EAPI=5
+MY_PN="PRoot"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc"
+HOMEPAGE="http://proot.me"
+SRC_URI="https://github.com/cedric-vincent/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="sys-libs/talloc"
+DEPEND="${RDEPEND}
+ test? ( dev-util/valgrind )"
+
+# Breaks sandbox
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-makefile.patch" \
+ "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch"
+ epatch_user
+}
+
+src_compile() {
+ emake -C src V=1 \
+ CC="$(tc-getCC)" \
+ CHECK_VERSION="true"
+}
+
+src_install() {
+ dobin src/proot
+ doman doc/proot.1
+ dodoc doc/*.txt doc/articles/*
+}
+
+src_test() {
+ emake -C tests -j1 CC="$(tc-getCC)"
+}