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/libpcap/files/, net-libs/libpcap/
Date: Sat, 24 Aug 2019 10:11:42
Message-Id: 1566641492.a14f74fb4da41d0c6ac8ff511a33b3209fb56fd1.jer@gentoo
1 commit: a14f74fb4da41d0c6ac8ff511a33b3209fb56fd1
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 24 10:10:50 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 24 10:11:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14f74fb
7
8 net-libs/libpcap: pcap-config: Do not hardcode includedir
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.17
11 Bug: https://bugs.gentoo.org/692772
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 .../libpcap-1.9.0-pcap-config-includedir.patch | 36 ++++++++++++++++++++++
15 ...libpcap-9999.ebuild => libpcap-1.9.0-r1.ebuild} | 27 ++++++++++------
16 net-libs/libpcap/libpcap-9999.ebuild | 1 +
17 3 files changed, 55 insertions(+), 9 deletions(-)
18
19 diff --git a/net-libs/libpcap/files/libpcap-1.9.0-pcap-config-includedir.patch b/net-libs/libpcap/files/libpcap-1.9.0-pcap-config-includedir.patch
20 new file mode 100644
21 index 00000000000..cd2c9fe61f2
22 --- /dev/null
23 +++ b/net-libs/libpcap/files/libpcap-1.9.0-pcap-config-includedir.patch
24 @@ -0,0 +1,36 @@
25 +--- a/pcap-config.in
26 ++++ b/pcap-config.in
27 +@@ -59,13 +59,13 @@
28 + #
29 + if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
30 + then
31 +- echo "-I$includedir -L$libdir -lpcap $LIBS"
32 ++ echo "-L$libdir -lpcap $LIBS"
33 + elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
34 + then
35 +- echo "-I$includedir -L$libdir $LIBS"
36 ++ echo "-L$libdir $LIBS"
37 + elif [ "$show_cflags" = 1 ]
38 + then
39 +- echo "-I$includedir"
40 ++ echo ""
41 + elif [ "$show_libs" = 1 ]
42 + then
43 + echo "-L$libdir -lpcap $LIBS"
44 +@@ -80,13 +80,13 @@
45 + #
46 + if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
47 + then
48 +- echo "-I$includedir -L$libdir $RPATH -l$PACKAGE_NAME"
49 ++ echo "-L$libdir $RPATH -l$PACKAGE_NAME"
50 + elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
51 + then
52 +- echo "-I$includedir"
53 ++ echo ""
54 + elif [ "$show_cflags" = 1 ]
55 + then
56 +- echo "-I$includedir"
57 ++ echo ""
58 + elif [ "$show_libs" = 1 ]
59 + then
60 + echo "-L$libdir $RPATH -l$PACKAGE_NAME"
61
62 diff --git a/net-libs/libpcap/libpcap-9999.ebuild b/net-libs/libpcap/libpcap-1.9.0-r1.ebuild
63 similarity index 61%
64 copy from net-libs/libpcap/libpcap-9999.ebuild
65 copy to net-libs/libpcap/libpcap-1.9.0-r1.ebuild
66 index 35c308e5a2b..4d5a0121e31 100644
67 --- a/net-libs/libpcap/libpcap-9999.ebuild
68 +++ b/net-libs/libpcap/libpcap-1.9.0-r1.ebuild
69 @@ -2,25 +2,26 @@
70 # Distributed under the terms of the GNU General Public License v2
71
72 EAPI=6
73 -inherit autotools git-r3 multilib-minimal ltprune
74 +inherit autotools multilib-minimal ltprune
75
76 DESCRIPTION="A system-independent library for user-level network packet capture"
77 -EGIT_REPO_URI="https://github.com/the-tcpdump-group/libpcap"
78 HOMEPAGE="
79 http://www.tcpdump.org/
80 - ${EGIT_REPO_URI}
81 + https://github.com/the-tcpdump-group/libpcap
82 +"
83 +SRC_URI="
84 + https://github.com/the-tcpdump-group/${PN}/archive/${P/_}.tar.gz
85 "
86
87 LICENSE="BSD"
88 SLOT="0"
89 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
90 IUSE="bluetooth dbus netlink static-libs usb"
91 -KEYWORDS=""
92
93 RDEPEND="
94 bluetooth? ( net-wireless/bluez:=[${MULTILIB_USEDEP}] )
95 dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
96 netlink? ( dev-libs/libnl:3[${MULTILIB_USEDEP}] )
97 - usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
98 "
99 DEPEND="
100 ${RDEPEND}
101 @@ -29,13 +30,20 @@ DEPEND="
102 dbus? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
103 "
104
105 +S=${WORKDIR}/${PN}-${P/_}
106 +
107 PATCHES=(
108 - "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
109 + "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
110 + "${FILESDIR}"/${PN}-1.8.1-darwin.patch
111 + "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
112 + "${FILESDIR}"/${PN}-1.9.0-pcap-config-includedir.patch
113 )
114
115 src_prepare() {
116 default
117
118 + echo ${PV} > VERSION || die
119 +
120 eautoreconf
121 }
122
123 @@ -43,9 +51,10 @@ multilib_src_configure() {
124 ECONF_SOURCE="${S}" \
125 econf \
126 $(use_enable bluetooth) \
127 - $(use_enable dbus) \
128 $(use_enable usb) \
129 - $(use_with netlink libnl)
130 + $(use_enable dbus) \
131 + $(use_with netlink libnl) \
132 + --enable-ipv6
133 }
134
135 multilib_src_compile() {
136 @@ -53,7 +62,7 @@ multilib_src_compile() {
137 }
138
139 multilib_src_install_all() {
140 - dodoc CREDITS CHANGES VERSION TODO README*
141 + dodoc CREDITS CHANGES VERSION TODO README.* doc/README.*
142
143 # remove static libraries (--disable-static does not work)
144 if ! use static-libs; then
145
146 diff --git a/net-libs/libpcap/libpcap-9999.ebuild b/net-libs/libpcap/libpcap-9999.ebuild
147 index 35c308e5a2b..3e6c9db1d11 100644
148 --- a/net-libs/libpcap/libpcap-9999.ebuild
149 +++ b/net-libs/libpcap/libpcap-9999.ebuild
150 @@ -30,6 +30,7 @@ DEPEND="
151 "
152
153 PATCHES=(
154 + "${FILESDIR}"/${PN}-1.9.0-pcap-config-includedir.patch
155 "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
156 )