2009-02-13 02:34:20 +01:00
|
|
|
# Copyright 2008,2009 Daniel Mierswa <impulze@impulze.org>
|
2008-12-03 19:35:24 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2010-12-09 07:35:36 +01:00
|
|
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.10 1.11 ] ]
|
2010-02-26 00:05:46 +01:00
|
|
|
require sourceforge [ suffix=tar.gz ]
|
2008-12-03 19:35:24 +01:00
|
|
|
|
|
|
|
SUMMARY="Share USB devices over IP"
|
|
|
|
DESCRIPTION="Userspace tools for the new USB over IP kernel feature"
|
|
|
|
|
|
|
|
LICENCES="GPL-2"
|
|
|
|
MYOPTIONS="tcpd"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
dev-libs/glib
|
|
|
|
tcpd? ( sys-apps/tcp_wrappers )
|
|
|
|
sys-fs/sysfsutils
|
|
|
|
run:
|
|
|
|
sys-apps/usbutils-data
|
|
|
|
"
|
|
|
|
|
2012-05-26 19:21:59 +02:00
|
|
|
REMOTE_IDS+=" freecode:usbip"
|
2008-12-03 19:35:24 +01:00
|
|
|
|
|
|
|
UPSTREAM_CHANGELOG="http://sourceforge.net/project/shownotes.php?group_id=122798&release_id=595689"
|
|
|
|
UPSTREAM_DOCUMENTATION="${HOMEPAGE}#documentation"
|
|
|
|
UPSTREAM_RELEASE_NOTES="${UPSTREAM_CHANGELOG}"
|
|
|
|
|
|
|
|
DEFAULT_SRC_CONFIGURE_PARAMS+=( '--with-usbids-dir=/usr/share/misc' '--disable-usbids-install' )
|
|
|
|
DEFAULT_SRC_CONFIGURE_OPTION_WITHS+=( 'tcpd tcp-wrappers' )
|
|
|
|
|
|
|
|
src_prepare() {
|
2010-03-11 11:37:00 +01:00
|
|
|
edo sed \
|
2008-12-03 19:35:24 +01:00
|
|
|
-e "/^AM_CFLAGS = /s:= := -DUSBIDS_FILE='\"@USBIDS_DIR@/usb.ids\"' :" \
|
2010-03-11 11:37:00 +01:00
|
|
|
-i cmd/Makefile.am
|
2008-12-03 19:35:24 +01:00
|
|
|
autotools_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
2012-06-04 19:22:55 +02:00
|
|
|
ever is_scm || edo rmdir "${IMAGE}/usr/share/usbip"
|
2008-12-03 19:35:24 +01:00
|
|
|
}
|
2009-07-29 12:55:27 +02:00
|
|
|
|