usbip: fixed scm build and repository path

for/master
Mike Kazantsev 2011-10-03 16:31:36 +06:00 committed by Daniel Mierswa
parent eea3e116f7
commit c7dfc8d91b
3 changed files with 15 additions and 3 deletions

View File

@ -6,3 +6,5 @@ require usbip
SLOT="0"
PLATFORMS="~amd64"
WORK="${WORK}/src"

View File

@ -1,7 +1,7 @@
# Copyright 2008 Daniel Mierswa <impulze@impulze.org>
# Distributed under the terms of the GNU General Public License v2
SCM_REPOSITORY="https://${PN}.svn.sourceforge.net/svnroot/${PN}/linux"
SCM_REPOSITORY="https://${PN}.svn.sourceforge.net/svnroot/${PN}/obsolete/linux"
require usbip scm-svn
@ -9,3 +9,15 @@ DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64"
DEFAULT_SRC_CONFIGURE_PARAMS+=( --includedir=/usr/include )
src_prepare() {
edo sed \
-e "/^AM_CFLAGS = /s:= := -DUSBIDS_FILE='\"@USBIDS_DIR@/usb.ids\"' :" \
-i Makefile.am
edo sed \
-e '/usbip_stub_driver_name =/s:usbip-host:usbip:' \
-i libsrc/stub_driver.c
autotools_src_prepare
}

View File

@ -28,8 +28,6 @@ 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' )
WORK="${WORK}/src"
src_prepare() {
edo sed \
-e "/^AM_CFLAGS = /s:= := -DUSBIDS_FILE='\"@USBIDS_DIR@/usb.ids\"' :" \