diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pypcap | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pypcap')
| -rw-r--r-- | dev-python/pypcap/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pypcap/files/pypcap-1.2.3-mktemp.patch | 19 | ||||
| -rw-r--r-- | dev-python/pypcap/metadata.xml | 18 | ||||
| -rw-r--r-- | dev-python/pypcap/pypcap-1.2.3.ebuild | 30 |
4 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/pypcap/Manifest b/dev-python/pypcap/Manifest new file mode 100644 index 000000000000..8ac8623068fe --- /dev/null +++ b/dev-python/pypcap/Manifest @@ -0,0 +1 @@ +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 <string.h> + # include <signal.h> + # include <unistd.h> ++# include <stdlib.h> + #endif + + #include <pcap.h> +@@ -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/metadata.xml b/dev-python/pypcap/metadata.xml new file mode 100644 index 000000000000..de78e08e1892 --- /dev/null +++ b/dev-python/pypcap/metadata.xml @@ -0,0 +1,18 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="google-code">pypcap</remote-id> + <remote-id type="pypi">pypcap</remote-id> + <remote-id type="github">pynetwork/pypcap</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> 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..f6efc21e2f99 --- /dev/null +++ b/dev-python/pypcap/pypcap-1.2.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{6,7} ) +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" + +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 +} |
