Gentoo Archives: gentoo-commits

From: "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/usbip/
Date: Tue, 30 Nov 2021 00:20:58
Message-Id: 1638231624.2583fe786439a55fd4f6517388a2eb4f0118870b.chithanh@gentoo
1 commit: 2583fe786439a55fd4f6517388a2eb4f0118870b
2 Author: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 30 00:02:54 2021 +0000
4 Commit: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 00:20:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2583fe78
7
8 net-misc/usbip: bump to 5.15
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo.org>
12
13 net-misc/usbip/Manifest | 1 +
14 net-misc/usbip/usbip-5.15.ebuild | 57 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/net-misc/usbip/Manifest b/net-misc/usbip/Manifest
18 index a25d0457052b..9d29974f4086 100644
19 --- a/net-misc/usbip/Manifest
20 +++ b/net-misc/usbip/Manifest
21 @@ -1 +1,2 @@
22 DIST linux-4.13.tar.xz 100579888 BLAKE2B 2f8be07d403071b097b019c43fa332bc7d4805dee633a6fdffe5a99d5475015ca9e4881e7f4cbfd36f8c451bacf423436364ea3d9f25b8723a29a178dededb2b SHA512 a557c2f0303ae618910b7106ff63d9978afddf470f03cb72aa748213e099a0ecd5f3119aea6cbd7b61df30ca6ef3ec57044d524b7babbaabddf8b08b8bafa7d2
23 +DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
24
25 diff --git a/net-misc/usbip/usbip-5.15.ebuild b/net-misc/usbip/usbip-5.15.ebuild
26 new file mode 100644
27 index 000000000000..3fcee65007b6
28 --- /dev/null
29 +++ b/net-misc/usbip/usbip-5.15.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +ETYPE="sources"
37 +K_NOUSENAME=1
38 +inherit autotools kernel-2
39 +
40 +DESCRIPTION="Userspace utilities for a general USB device sharing system over IP networks"
41 +HOMEPAGE="https://www.kernel.org/"
42 +SRC_URI="${KERNEL_URI}"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="tcpd"
48 +
49 +RDEPEND="
50 + >=dev-libs/glib-2.6
51 + sys-apps/hwdata
52 + >=sys-kernel/linux-headers-3.17
53 + virtual/libudev
54 + tcpd? ( sys-apps/tcp-wrappers )"
55 +DEPEND="${RDEPEND}
56 + virtual/pkgconfig"
57 +
58 +S="${WORKDIR}/linux-${PV}/tools/usb/${PN}"
59 +
60 +src_unpack() {
61 + tar xJf "${DISTDIR}"/${A} linux-${PV}/tools/usb/${PN} || die
62 +}
63 +
64 +src_prepare() {
65 + default
66 + # remove -Werror from build, bug #545398
67 + sed -i 's/-Werror[^ ]* //g' configure.ac || die
68 +
69 + eautoreconf
70 +}
71 +
72 +src_configure() {
73 + econf \
74 + --disable-static \
75 + $(use tcpd || echo --without-tcp-wrappers) \
76 + --with-usbids-dir="${EPREFIX}"/usr/share/hwdata
77 +}
78 +
79 +src_install() {
80 + default
81 + find "${ED}" -name '*.la' -delete || die
82 +}
83 +
84 +pkg_postinst() {
85 + elog "For using USB/IP you need to enable USBIP_VHCI_HCD in the client"
86 + elog "machine's kernel config and USBIP_HOST on the server."
87 +}