public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypcap/files/, dev-python/pypcap/
Date: Fri,  5 May 2017 12:34:57 +0000 (UTC)	[thread overview]
Message-ID: <1493987676.01a804d9f20a17d7a48eaace87ca1dea15ceb2e0.jer@gentoo> (raw)

commit:     01a804d9f20a17d7a48eaace87ca1dea15ceb2e0
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri May  5 12:34:36 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri May  5 12:34:36 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01a804d9

dev-python/pypcap: Version bump.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-python/pypcap/Manifest                        |  1 +
 dev-python/pypcap/files/pypcap-1.1.6-mktemp.patch | 19 ++++++++++++++
 dev-python/pypcap/pypcap-1.1.6.ebuild             | 31 +++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-python/pypcap/Manifest b/dev-python/pypcap/Manifest
index 51569537dc0..9ce3f7da7cd 100644
--- a/dev-python/pypcap/Manifest
+++ b/dev-python/pypcap/Manifest
@@ -1 +1,2 @@
 DIST pypcap-1.1.5.tar.gz 47978 SHA256 04f289783f4920baab4a2144821d0be7e8a2bde7259284dd4a7e775d0016ced0 SHA512 15df8f966abb6e29f3dfbd0c7f39bb2c3616b4352667e62dc08da287c427e611ec32ac543103d0e5864e5beb86bb9353bf1417bc6680a46e79e06496d4bba353 WHIRLPOOL 4d3473ef08faa9a5e4e53e8518187071fc4b4be4a51cf1fe7ddab871501d03c44d7e88b7c21a80cbf9b4dfb653225b600b0c1651ba6a83d92a2970bc59513934
+DIST pypcap-1.1.6.tar.gz 57984 SHA256 c81a16091191c0931a9a39125d7f2cc5c0ebbf04745d970fbafc7d70c9c1dd61 SHA512 3d81364202256b19300b45b570537eead9835d8d58f54f51ed8ae43df1a270c0753c16b2050a999fa0f281e46ac66f71b96b6b4c910f2c18a5efae29a3b4e854 WHIRLPOOL d3d559de1ceb4fd14ef2aea040d4c37de07b2e1d385f992f6d5ac2e277994ded95caaef0bbcc9dfec6eb2c915915ff521f8b770200c4e26d03b1c76936796418

diff --git a/dev-python/pypcap/files/pypcap-1.1.6-mktemp.patch b/dev-python/pypcap/files/pypcap-1.1.6-mktemp.patch
new file mode 100644
index 00000000000..9bc3f3639c9
--- /dev/null
+++ b/dev-python/pypcap/files/pypcap-1.1.6-mktemp.patch
@@ -0,0 +1,19 @@
+--- a/pcap_ex.c
++++ b/pcap_ex.c
+@@ -11,6 +11,7 @@
+ # include <string.h>
+ # include <signal.h>
+ # include <unistd.h>
++# include <stdlib.h>
+ #endif
+ 
+ #include <pcap.h>
+@@ -290,7 +291,7 @@
+ 	char ebuf[PCAP_ERRBUF_SIZE];
+ 	int ret = -1;
+ 	
+-	mktemp(path);
++	mkstemp(path);
+ 	if ((f = fopen(path, "w")) != NULL) {
+ 		hdr.magic = 0xa1b2c3d4;
+ 		hdr.version_major = PCAP_VERSION_MAJOR;

diff --git a/dev-python/pypcap/pypcap-1.1.6.ebuild b/dev-python/pypcap/pypcap-1.1.6.ebuild
new file mode 100644
index 00000000000..66b6ff129a7
--- /dev/null
+++ b/dev-python/pypcap/pypcap-1.1.6.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Simplified object-oriented Python extension module for libpcap"
+HOMEPAGE="https://github.com/pynetwork/pypcap https://pypi.python.org/pypi/pypcap"
+SRC_URI="https://github.com/pynetwork/pypcap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+RDEPEND="
+	net-libs/libpcap
+"
+DEPEND="
+	${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]
+"
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.1.6-mktemp.patch
+)
+
+python_compile() {
+	local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+	distutils-r1_python_compile
+}


             reply	other threads:[~2017-05-05 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 12:34 Jeroen Roovers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-07-23  9:33 [gentoo-commits] repo/gentoo:master commit in: dev-python/pypcap/files/, dev-python/pypcap/ Jeroen Roovers
2020-03-28 18:26 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493987676.01a804d9f20a17d7a48eaace87ca1dea15ceb2e0.jer@gentoo \
    --to=jer@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox