exherbo-impulze/packages/sys-apps/usbip/usbip-scm.exheres-0

24 lines
598 B
Bash
Raw Normal View History

2008-12-03 19:35:24 +01:00
# 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}/obsolete/linux"
2008-12-03 19:35:24 +01:00
2009-05-26 18:43:10 +02:00
require usbip scm-svn
2008-12-03 19:35:24 +01:00
DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64"
2009-07-29 12:55:27 +02:00
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
}