Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnet/
Date: Mon, 30 Sep 2019 07:18:57
Message-Id: 1569827930.30cadf328c285f1d333c03269f326a0dd610233d.jer@gentoo
1 commit: 30cadf328c285f1d333c03269f326a0dd610233d
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 30 07:18:08 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 30 07:18:50 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30cadf32
7
8 net-libs/libnet: Add live ebuild
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/libnet/libnet-1.2.9999.ebuild | 46 ++++++++++++++++++++++++++++++++++
14 1 file changed, 46 insertions(+)
15
16 diff --git a/net-libs/libnet/libnet-1.2.9999.ebuild b/net-libs/libnet/libnet-1.2.9999.ebuild
17 new file mode 100644
18 index 00000000000..1059f3a86ce
19 --- /dev/null
20 +++ b/net-libs/libnet/libnet-1.2.9999.ebuild
21 @@ -0,0 +1,46 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit autotools git-r3
27 +
28 +DESCRIPTION="library providing an API for commonly used low-level network functions"
29 +HOMEPAGE="http://libnet-dev.sourceforge.net/ https://github.com/sam-github/libnet"
30 +EGIT_REPO_URI="https://github.com/sam-github/libnet"
31 +
32 +LICENSE="BSD BSD-2 HPND"
33 +SLOT="1.1"
34 +KEYWORDS=""
35 +IUSE="doc static-libs"
36 +
37 +DOCS=(
38 + README.md doc/{CHANGELOG,CONTRIB,DESIGN_NOTES,MIGRATION}
39 + doc/{PACKET_BUILDING,PORTED,RAWSOCKET_NON_SEQUITUR,TODO}
40 +)
41 +S=${WORKDIR}/${P/_/-}
42 +PATCHES=(
43 + "${FILESDIR}"/${PN}-1.2-socklen_t.patch
44 +)
45 +
46 +src_prepare() {
47 + default
48 +
49 + eautoreconf
50 +}
51 +
52 +src_configure() {
53 + econf $(use_enable static-libs static)
54 +}
55 +
56 +src_install() {
57 + default
58 +
59 + if use doc ; then
60 + docinto html
61 + dodoc -r doc/html/*
62 + docinto sample
63 + dodoc sample/*.[ch]
64 + fi
65 +
66 + find "${D}" -name '*.la' -delete || die
67 +}