From af91e9f691fbfc15e33d596de97a9c213f23dc42 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Tue, 23 Jul 2019 11:25:47 +0200 Subject: [PATCH] dev-python/pypcap: Version 1.2.3 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Jeroen Roovers --- dev-python/pypcap/Manifest | 1 + .../pypcap/files/pypcap-1.2.3-mktemp.patch | 19 ++++++++++++ dev-python/pypcap/pypcap-1.2.3.ebuild | 30 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 dev-python/pypcap/files/pypcap-1.2.3-mktemp.patch create mode 100644 dev-python/pypcap/pypcap-1.2.3.ebuild diff --git a/dev-python/pypcap/Manifest b/dev-python/pypcap/Manifest index eb6afd8a2382..0974563ddf0b 100644 --- a/dev-python/pypcap/Manifest +++ b/dev-python/pypcap/Manifest @@ -1,2 +1,3 @@ DIST pypcap-1.2.1.tar.gz 141506 BLAKE2B 66fb9e96f0e7741b4c1b22a54b2d42a952742315b3e054680ca03b7e4f3761331f62b96eee759a4c2419c256cc2e909e040046522c43ed80cc31d19bb98927ab SHA512 987ae06b8aa53047c31bb316d5301a03ab86fe7882394b07cbfd22da78a2f515706485f39b07c0073c549159616605fe2b03ace33e2067c7cdaa4ba9c4f33ae6 DIST pypcap-1.2.2.tar.gz 141606 BLAKE2B 7611a7c61e23d2a20a0575dca5404e5c1edd6ba84f072ef0bdc303f35a6b26e69f1e0cf29f6d1a75c6934a84956f57cbc3fdffb39d6122882dc93231e243e3b2 SHA512 fa5b2ba37cafa83b9586d52345bba62ab6203c46a97a7b114ce166864be0e0947737d5bb79d9c12e054255aa9cb9f675a152c78b7e7b1c5a63dd6b54575b7282 +DIST pypcap-1.2.3.tar.gz 151087 BLAKE2B c40e83d46b37deb4064877dfcf64582ff5da272a0d416b51faa43c4bd20625b473c624818aad70238f9429fac2455ae5b0516279faf1612f76f289b53d55417e SHA512 e4f701b6637fbcaf847d72eddc1ed344438008c2f8cbd334c9ce5fe17c9ec36f1f2cb1a146a218b8e464a7eb9a57217a8834a82a035ee96c3c1b56ec70e53bff diff --git a/dev-python/pypcap/files/pypcap-1.2.3-mktemp.patch b/dev-python/pypcap/files/pypcap-1.2.3-mktemp.patch new file mode 100644 index 000000000000..8cf41ec28974 --- /dev/null +++ b/dev-python/pypcap/files/pypcap-1.2.3-mktemp.patch @@ -0,0 +1,19 @@ +--- a/pcap_ex.c ++++ b/pcap_ex.c +@@ -11,6 +11,7 @@ + # include + # include + # include ++# include + #endif + + #include +@@ -300,7 +300,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.2.3.ebuild b/dev-python/pypcap/pypcap-1.2.3.ebuild new file mode 100644 index 000000000000..77cb7235a0f5 --- /dev/null +++ b/dev-python/pypcap/pypcap-1.2.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} pypy ) +inherit distutils-r1 + +DESCRIPTION="Simplified object-oriented Python extension module for libpcap" +HOMEPAGE="https://github.com/pynetwork/pypcap https://pypi.org/project/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.2.3-mktemp.patch +) + +python_compile() { + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} -- 2.26.2