You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
4 years ago
|
|
||
7 years ago
|
ETYPE="sources"
|
||
|
K_NOUSENAME=1
|
||
4 years ago
|
inherit autotools kernel-2
|
||
7 years ago
|
|
||
|
DESCRIPTION="Userspace utilities for a general USB device sharing system over IP networks"
|
||
|
HOMEPAGE="https://www.kernel.org/"
|
||
|
SRC_URI="${KERNEL_URI}"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
4 years ago
|
IUSE="tcpd"
|
||
7 years ago
|
|
||
4 years ago
|
RDEPEND="
|
||
|
>=dev-libs/glib-2.6
|
||
7 years ago
|
sys-apps/hwids
|
||
|
>=sys-kernel/linux-headers-3.17
|
||
|
virtual/libudev
|
||
|
tcpd? ( sys-apps/tcp-wrappers )"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
4 years ago
|
S="${WORKDIR}/linux-${PV}/tools/usb/${PN}"
|
||
7 years ago
|
|
||
4 years ago
|
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
|
||
7 years ago
|
|
||
|
src_unpack() {
|
||
|
tar xJf "${DISTDIR}"/${A} linux-${PV}/tools/usb/${PN} || die
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
4 years ago
|
default
|
||
7 years ago
|
# remove -Werror from build, bug #545398
|
||
|
sed -i 's/-Werror[^ ]* //g' configure.ac || die
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
4 years ago
|
--disable-static \
|
||
7 years ago
|
$(use tcpd || echo --without-tcp-wrappers) \
|
||
4 years ago
|
--with-usbids-dir="${EPREFIX}"/usr/share/misc
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
4 years ago
|
find "${ED}" -name '*.la' -delete || die
|
||
7 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "For using USB/IP you need to enable USBIP_VHCI_HCD in the client"
|
||
|
elog "machine's kernel config and USBIP_HOST on the server."
|
||
|
}
|