Code: Select all
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit linux-mod
#MY_P=${PN/-ng/}-${PV}
S="${WORKDIR}"/usb-server
DESCRIPTION="Server-Side of USB Port Sharing Solution for Linux from INCENTIVES Pro"
HOMEPAGE="http://www.incentivespro.com/"
SRC_URI="http://incentivespro.com/usb-server.tar.gz"
LICENSE="|| ( GNU GPL-2 )"
SLOT="0"
KEYWORDS="x86"
RDEPEND=""
pkg_setup() {
linux-mod_pkg_setup
MODULE_NAMES='tusbd(tusbd:"${S}"/modules/src/tusbd)'
BUILD_PARAMS="KERNELPATH=${KV_OUT_DIR}"
}
src_unpack() {
unpack ${A}
cd "${S}/modules/src/tusbd"
convert_to_m Makefile
sed -i 's:default:module:g' Makefile
}
src_install() {
linux-mod_src_install
dosbin "${S}/usbsrvd"
dobin "${S}/usbsrv"
}
pkg_postinst() {
local moddir="${ROOT}/lib/modules/${KV_FULL}/tusbd/"
linux-mod_pkg_postinst
}Code: Select all
* QA Notice: Pre-stripped files found:
* /var/tmp/portage/media-gfx/usbsrvd-1.7.1/image/usr/bin/usbsrv
/var/tmp/portage/media-gfx/usbsrvd-1.7.1/image/usr/sbin/usbsrvd
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
lib/modules/2.6.25-gentoo-r8/tusbd/tusbd.ko
* checking 3 files for package collisions
* This package will overwrite one or more files that may belong to other
* packages (see list below). Add "collision-protect" to FEATURES in
* make.conf if you would like the merge to abort in cases like this. You
* can use a command such as `portageq owners / <filename>` to identify
* the installed package that owns a file. If portageq reports that only
* one package owns a file then do NOT file a bug report. A bug report is
* only useful if it identifies at least two or more packages that are
* known to install the same file(s). If a collision occurs and you can
* not explain where the file came from then you should simply ignore the
* collision since there is not enough information to determine if a real
* problem exists. Please do NOT file a bug report at
* http://bugs.gentoo.org unless you report exactly which two packages
* install the same file(s). Once again, please do NOT file a bug report
* unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /lib/modules/2.6.25-gentoo-r8/tusbd/tusbd.ko
