sys-apps/prctl: bump up to 1.6, keyworded for x86 and amd64
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 22 Jun 2016 22:08:25 +0000 (23:08 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 22 Jun 2016 22:08:37 +0000 (23:08 +0100)
Has got new mcekill knob, useful on x86/amd64 family.

Package-Manager: portage-2.3.0_rc1

sys-apps/prctl/Manifest
sys-apps/prctl/files/prctl-1.6-no-implicits.patch [new file with mode: 0644]
sys-apps/prctl/metadata.xml
sys-apps/prctl/prctl-1.6.ebuild [new file with mode: 0644]

index 5e43f5bded7586e9d63eee9782a6ffa0cad78526..bb9b9d246356ed4345756c75b2c56d8168db0baa 100644 (file)
@@ -1 +1,2 @@
 DIST prctl-1.5.tar.gz 17507 SHA256 b3fed2cec8721518179355d1a443c4be58f73ea224aa4c0cc4ba30ec87479687 SHA512 60463a80fcadec9f2c6fbb0e179391affb594a15f116bc0c6dba350251b6fab1eb7bfca5753e0765cb27b723b76a86cbe19bdaa3ef50d4fee6696ed861e0bb96 WHIRLPOOL e494535cbb7aa2a2bf25dc461231b297dc98c24b87ab50fd6db74da63be9263bc64c07491a8e6c9434f2506022c0f1c7cc0bd2aab31ffa77a5f66589361b6c40
+DIST prctl-1.6.tar.gz 18876 SHA256 62cf7b519774dd5b655c9718fc9b16cc5f9feff199c6cd81f563c4da09fc8727 SHA512 c5b70abbb76f76f4a4c53cebcbd34fa4e87d7db2278a2ea17128da30dea958cc4e4d75b641cb3b9fbd8fa56fee482e97dbae5e61c697e80ef4d13f4b6d28cfda WHIRLPOOL 3fe30b105dc5561bfb34be15dcf42073f116ff3f59131d4a4a4792ad53e32b7950dca684ba4e64c353426a673db1b8467fe703db6d6d70673e49f78852fe4dcb
diff --git a/sys-apps/prctl/files/prctl-1.6-no-implicits.patch b/sys-apps/prctl/files/prctl-1.6-no-implicits.patch
new file mode 100644 (file)
index 0000000..2bbf9ab
--- /dev/null
@@ -0,0 +1,20 @@
+diff --git a/prctl.c b/prctl.c
+index 2dcda79..01c542f 100644
+--- a/prctl.c
++++ b/prctl.c
+@@ -27,3 +27,4 @@
+ #include <pwd.h>
+-#include <linux/prctl.h>
++#include <linux/prctl.h> /* prctl constants */
++#include <sys/prctl.h> /* prctl() proto */
+ #include <string.h>
+@@ -50,3 +51,3 @@ int verbose=0;
+-print_version(char *progname)
++void print_version(char *progname)
+ {
+@@ -55,3 +56,3 @@ print_version(char *progname)
+-usage(char *progname)
++void usage(char *progname)
+ {
index 67443d033a933b1a57c85615c86f859df66bfa74..370c6384288c128dc678484e9de00064b01c1f02 100644 (file)
@@ -5,6 +5,10 @@
                <email>ia64@gentoo.org</email>
                <name>Gentoo Linux IA-64 Development</name>
        </maintainer>
+       <maintainer type="person">
+               <email>slyfox@gentoo.org</email>
+               <name>Sergei Trofimovich</name>
+       </maintainer>
        <upstream>
                <remote-id type="sourceforge">prctl</remote-id>
        </upstream>
diff --git a/sys-apps/prctl/prctl-1.6.ebuild b/sys-apps/prctl/prctl-1.6.ebuild
new file mode 100644 (file)
index 0000000..f20ddd7
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Tool to query and modify process behavior"
+HOMEPAGE="http://sourceforge.net/projects/prctl/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="sys-apps/groff"
+
+PATCHES=("${FILESDIR}"/${P}-no-implicits.patch)
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       dobin prctl
+       doman prctl.1
+       dodoc ChangeLog
+}