parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 6307d4dbce4b690dc5061796f2bb1192020a6bd6
parent 355161e63c62917fcc25a2ed7f9aceabf5eceb7b
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 17 Mar 2017 12:32:22 +0100

net-libs/libnetfilter_queue: Add 1.0.2 with musl fix.

Diffstat:
Anet-libs/libnetfilter_queue/Manifest | 1+
Anet-libs/libnetfilter_queue/files/fix-musl-build.patch | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Anet-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild | 33+++++++++++++++++++++++++++++++++
Anet-libs/libnetfilter_queue/metadata.xml | 8++++++++
4 files changed, 140 insertions(+), 0 deletions(-)

diff --git a/net-libs/libnetfilter_queue/Manifest b/net-libs/libnetfilter_queue/Manifest @@ -0,0 +1 @@ +DIST libnetfilter_queue-1.0.2.tar.bz2 354201 SHA256 838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32 SHA512 89fec4d943b85f35e7cef3b1b9071b1280c6e1b282b7e5cb97eb17d05b9ddd175194639ead986767d27152540fe8e167383a1f7bbfe3cdf874a5a42a2c096f11 WHIRLPOOL b3a47c01c6250190a5519dc1e6edd9a88cd295c38189752c2e4516676673ec956aec2c2744faa0681700ad251e94cdab146daf4c13260666194bce5b6f207ef7 diff --git a/net-libs/libnetfilter_queue/files/fix-musl-build.patch b/net-libs/libnetfilter_queue/files/fix-musl-build.patch @@ -0,0 +1,98 @@ +From 7e9abb4bcb51c20b195469c6ae832b5154e5a772 Mon Sep 17 00:00:00 2001 +From: parazyd <parazyd@dyne.org> +Date: Fri, 17 Mar 2017 12:30:20 +0100 +Subject: [PATCH] patch + +--- + src/extra/ipv4.c | 1 + + src/extra/ipv6.c | 1 + + src/extra/tcp.c | 2 ++ + src/extra/udp.c | 3 +++ + src/libnetfilter_queue.c | 1 + + src/nlmsg.c | 1 + + 6 files changed, 9 insertions(+) + +diff --git a/src/extra/ipv4.c b/src/extra/ipv4.c +index d7f1f69..015268f 100644 +--- a/src/extra/ipv4.c ++++ b/src/extra/ipv4.c +@@ -13,6 +13,7 @@ + #include <stdbool.h> + #include <arpa/inet.h> + #include <netinet/ip.h> ++#include <sys/types.h> + + #include <libnetfilter_queue/libnetfilter_queue.h> + #include <libnetfilter_queue/libnetfilter_queue_ipv4.h> +diff --git a/src/extra/ipv6.c b/src/extra/ipv6.c +index 7c5dc9b..4bd0d08 100644 +--- a/src/extra/ipv6.c ++++ b/src/extra/ipv6.c +@@ -14,6 +14,7 @@ + #include <stdbool.h> + #include <arpa/inet.h> + #include <netinet/ip6.h> ++#include <sys/types.h> + + #include <libnetfilter_queue/libnetfilter_queue.h> + #include <libnetfilter_queue/libnetfilter_queue_ipv6.h> +diff --git a/src/extra/tcp.c b/src/extra/tcp.c +index 5318b07..65d094f 100644 +--- a/src/extra/tcp.c ++++ b/src/extra/tcp.c +@@ -9,6 +9,8 @@ + * This code has been sponsored by Vyatta Inc. <http://www.vyatta.com> + */ + ++#define _GNU_SOURCE ++ + #include <stdio.h> + #include <string.h> /* for memcpy */ + #include <stdbool.h> +diff --git a/src/extra/udp.c b/src/extra/udp.c +index f0f6d2f..a2c3038 100644 +--- a/src/extra/udp.c ++++ b/src/extra/udp.c +@@ -9,12 +9,15 @@ + * This code has been sponsored by Vyatta Inc. <http://www.vyatta.com> + */ + ++#define _GNU_SOURCE ++ + #include <stdio.h> + #include <stdbool.h> + #include <arpa/inet.h> + #include <netinet/ip.h> + #include <netinet/ip6.h> + #include <netinet/udp.h> ++#include <sys/types.h> + + #include <libnetfilter_queue/libnetfilter_queue.h> + #include <libnetfilter_queue/libnetfilter_queue_udp.h> +diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c +index 9fe9dfa..f7ba1b9 100644 +--- a/src/libnetfilter_queue.c ++++ b/src/libnetfilter_queue.c +@@ -29,6 +29,7 @@ + #include <errno.h> + #include <netinet/in.h> + #include <sys/socket.h> ++#include <sys/types.h> + + #include <libnfnetlink/libnfnetlink.h> + #include <libnetfilter_queue/libnetfilter_queue.h> +diff --git a/src/nlmsg.c b/src/nlmsg.c +index 6c4a139..98e4452 100644 +--- a/src/nlmsg.c ++++ b/src/nlmsg.c +@@ -11,6 +11,7 @@ + #include <endian.h> + #include <stdlib.h> + #include <string.h> ++#include <sys/types.h> + + #include <libmnl/libmnl.h> + +-- +2.12.0 + diff --git a/net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild b/net-libs/libnetfilter_queue/libnetfilter_queue-1.0.2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools-utils linux-info eutils + +DESCRIPTION="API to packets that have been queued by the kernel packet filter" +HOMEPAGE="http://www.netfilter.org/projects/libnetfilter_queue/" +SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm arm64 hppa ~ppc ~ppc64 ~sparc x86" +IUSE="static-libs" + +RDEPEND=" + >=net-libs/libmnl-1.0.3 + >=net-libs/libnfnetlink-0.0.41 +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +CONFIG_CHECK="~NETFILTER_NETLINK_QUEUE" + +pkg_setup() { + linux-info_pkg_setup + kernel_is lt 2 6 14 && ewarn "requires at least 2.6.14 kernel version" +} + +src_prepare() { + default + epatch "${FILESDIR}"/fix-musl-build.patch +} diff --git a/net-libs/libnetfilter_queue/metadata.xml b/net-libs/libnetfilter_queue/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata>