From 2d6a620e5f2844112eb5987b7cef72c044965dbc Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Wed, 3 Dec 2008 19:35:24 +0100 Subject: [PATCH] add usbip --- packages/sys-apps/usbip/usbip-0.1.6.exheres-0 | 7 +++ packages/sys-apps/usbip/usbip-scm.exheres-0 | 10 ++++ packages/sys-apps/usbip/usbip.exlib | 48 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 packages/sys-apps/usbip/usbip-0.1.6.exheres-0 create mode 100644 packages/sys-apps/usbip/usbip-scm.exheres-0 create mode 100644 packages/sys-apps/usbip/usbip.exlib diff --git a/packages/sys-apps/usbip/usbip-0.1.6.exheres-0 b/packages/sys-apps/usbip/usbip-0.1.6.exheres-0 new file mode 100644 index 0000000..4056bf5 --- /dev/null +++ b/packages/sys-apps/usbip/usbip-0.1.6.exheres-0 @@ -0,0 +1,7 @@ +# Copyright 2008 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +require "${PN}" + +SLOT="0" +PLATFORMS="~amd64" diff --git a/packages/sys-apps/usbip/usbip-scm.exheres-0 b/packages/sys-apps/usbip/usbip-scm.exheres-0 new file mode 100644 index 0000000..e0e0fc3 --- /dev/null +++ b/packages/sys-apps/usbip/usbip-scm.exheres-0 @@ -0,0 +1,10 @@ +# Copyright 2008 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +SCM_REPOSITORY="https://${PN}.svn.sourceforge.net/svnroot/${PN}/linux" + +require "${PN}" scm-svn + +DOWNLOADS="" +SLOT="0" +PLATFORMS="~amd64" diff --git a/packages/sys-apps/usbip/usbip.exlib b/packages/sys-apps/usbip/usbip.exlib new file mode 100644 index 0000000..0df3065 --- /dev/null +++ b/packages/sys-apps/usbip/usbip.exlib @@ -0,0 +1,48 @@ +# Copyright 2008 Daniel Mierswa +# Distributed under the terms of the GNU General Public License v2 + +SUPPORTED_AUTOCONF=( 2.5 ) +SUPPORTED_AUTOMAKE=( 1.10 ) +require autotools + +SUMMARY="Share USB devices over IP" +DESCRIPTION="Userspace tools for the new USB over IP kernel feature" +HOMEPAGE="http://${PN}.sourceforge.net/" +DOWNLOADS="mirror://sourceforge/${PN}/${PNV}.tar.gz" + +LICENCES="GPL-2" +MYOPTIONS="tcpd" + +DEPENDENCIES=" + build+run: + dev-libs/glib + tcpd? ( sys-apps/tcp_wrappers ) + sys-fs/sysfsutils + run: + sys-apps/usbutils-data +" + +REMOTE_IDS="freshmeat:usbip" + +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' ) + +WORK="${WORK}/src" + +src_prepare() { + sed \ + -e "/^AM_CFLAGS = /s:= := -DUSBIDS_FILE='\"@USBIDS_DIR@/usb.ids\"' :" \ + -i cmd/Makefile.am \ + || die "sed cmd/Makefile.am failed" + autotools_src_prepare +} + +src_install() { + default + + rmdir "${IMAGE}/usr/share/usbip" +}