summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-06-22 23:08:25 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2016-06-22 23:08:37 +0100
commit5c6b402ab1dbd4c2ec912597536a2b5f4d52f43b (patch)
tree0d28ef06c1b658dcba0111b89c729ca181745062 /sys-apps/prctl
parentprofiles: Update l10n.desc. (diff)
downloadgentoo-5c6b402ab1dbd4c2ec912597536a2b5f4d52f43b.tar.gz
gentoo-5c6b402ab1dbd4c2ec912597536a2b5f4d52f43b.tar.bz2
gentoo-5c6b402ab1dbd4c2ec912597536a2b5f4d52f43b.zip
sys-apps/prctl: bump up to 1.6, keyworded for x86 and amd64
Has got new mcekill knob, useful on x86/amd64 family. Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'sys-apps/prctl')
-rw-r--r--sys-apps/prctl/Manifest1
-rw-r--r--sys-apps/prctl/files/prctl-1.6-no-implicits.patch20
-rw-r--r--sys-apps/prctl/metadata.xml4
-rw-r--r--sys-apps/prctl/prctl-1.6.ebuild30
4 files changed, 55 insertions, 0 deletions
diff --git a/sys-apps/prctl/Manifest b/sys-apps/prctl/Manifest
index 5e43f5bded75..bb9b9d246356 100644
--- a/sys-apps/prctl/Manifest
+++ b/sys-apps/prctl/Manifest
@@ -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
index 000000000000..2bbf9aba69aa
--- /dev/null
+++ b/sys-apps/prctl/files/prctl-1.6-no-implicits.patch
@@ -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)
+ {
diff --git a/sys-apps/prctl/metadata.xml b/sys-apps/prctl/metadata.xml
index 67443d033a93..370c6384288c 100644
--- a/sys-apps/prctl/metadata.xml
+++ b/sys-apps/prctl/metadata.xml
@@ -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
index 000000000000..f20ddd743f29
--- /dev/null
+++ b/sys-apps/prctl/prctl-1.6.ebuild
@@ -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
+}