From patchwork Thu Dec 13 21:47:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 206226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 308932C0089 for ; Fri, 14 Dec 2012 08:49:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B71A58C1E3; Thu, 13 Dec 2012 21:49:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xldkmGlC8NRb; Thu, 13 Dec 2012 21:48:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 564F88CD62; Thu, 13 Dec 2012 21:48:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id ACBB28F74B for ; Thu, 13 Dec 2012 21:48:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 38E018C883 for ; Thu, 13 Dec 2012 21:47:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cLn+ZIeP3MPH for ; Thu, 13 Dec 2012 21:47:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id E537D8C865 for ; Thu, 13 Dec 2012 21:47:29 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id ds1so63194wgb.4 for ; Thu, 13 Dec 2012 13:47:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=QyyCQQiyMrLi9UhbaF1T7FLwdJthZ1OS5iBZ2S3cSM8=; b=Dpz+NPtgnZQHHmacnhdDj30jDdvmW1r5jGbdTmfE03wc3nfBA9u/fZudoXCbi2Ee81 n7aBVSBBUBVxTmjVCKa41mAMdBU6rvQcooT4PPZrqpCmYJ6SFOT6TINmKWff87vi5FjG qqUngUJMtjhiOVjSrkm1VIdcQFSUwzcbGGdwA1s9O6V2Yj9xu4RWjk2UEFW8ExOBujwB Bn/fkltsUfNli392qlhgoVWkge3QOCcVVhvVlVzaDXdw61s7dKlfiLaADeIJQnsX89OX PkrPb/bU1cCxFSZhj30kaVK3DIbuUCfRE7Ba0KIOsAtqrms9s80QfWdWwdJrHhCg3NED Gdqg== Received: by 10.194.86.72 with SMTP id n8mr512510wjz.19.1355435248271; Thu, 13 Dec 2012 13:47:28 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-41-119.w90-32.abo.wanadoo.fr. [90.32.24.119]) by mx.google.com with ESMTPS id h19sm9673341wiv.7.2012.12.13.13.47.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Dec 2012 13:47:27 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Thu, 13 Dec 2012 22:47:03 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 03/20] package/usbredir: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle --- package/Config.in | 1 + package/usbredir/Config.in | 28 ++++++++++++++++++++++++++++ package/usbredir/usbredir.mk | 31 +++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 package/usbredir/Config.in create mode 100644 package/usbredir/usbredir.mk diff --git a/package/Config.in b/package/Config.in index 8edadf9..9d68581 100644 --- a/package/Config.in +++ b/package/Config.in @@ -492,6 +492,7 @@ source "package/libupnp/Config.in" source "package/libvncserver/Config.in" source "package/nss-mdns/Config.in" source "package/ortp/Config.in" +source "package/usbredir/Config.in" source "package/zeromq/Config.in" endmenu diff --git a/package/usbredir/Config.in b/package/usbredir/Config.in new file mode 100644 index 0000000..8d8ac5a --- /dev/null +++ b/package/usbredir/Config.in @@ -0,0 +1,28 @@ +comment "usbredir requires libusb" + depends on !BR2_PACKAGE_LIBUSB + +config BR2_PACKAGE_USBREDIR + bool "usbredir" + depends on BR2_PACKAGE_LIBUSB + help + usbredir is the name of a network protocol for sending usb device + traffic over a network connection. It is also the name of the + software package offering a parsing library, a usbredirhost library + and several utilities implementing this protocol. + + Note: only the library is installed, not the utilities. Say 'y' + below if you want the server too. + + http://www.spice-space.org/page/UsbRedir + +if BR2_PACKAGE_USBREDIR + +config BR2_PACKAGE_USBREDIR_SERVER + bool "usbredirserver on target" + help + If you want to serve usbredir requests on your target, say 'y' + here to have the usbredir server on the target. + + Note: the server is not required to use the library. + +endif diff --git a/package/usbredir/usbredir.mk b/package/usbredir/usbredir.mk new file mode 100644 index 0000000..70b50c3 --- /dev/null +++ b/package/usbredir/usbredir.mk @@ -0,0 +1,31 @@ +############################################################# +# +# usbredir +# +############################################################# + +USBREDIR_VERSION = 0.4.3 +USBREDIR_SOURCE = usbredir-$(USBREDIR_VERSION).tar.bz2 +USBREDIR_SITE = http://spice-space.org/download/usbredir +USBREDIR_LICENSE = LGPLv2.1+ +USBREDIR_LICENSE_FILES = COPYING.LIB +USBREDIR_INSTALL_STAGING = YES +USBREDIR_DEPENDENCIES = libusb + +USBREDIR_DEPENDENCIES += host-pkgconf + +ifeq ($(BR2_PACKAGE_USBREDIR_SERVER),y) + +USBREDIR_LICENSE += (for the library), GPLv2+ (for the server) +USBREDIR_LICENSE_FILES += COPYING + +else # BR2_PACKAGE_USBREDIR_SERVER != y + +define USBREDIR_POST_INSTALL_TARGET_RM_SERVER + rm -f $(TARGET_DIR)/usr/sbin/usbredirserver +endef +USBREDIR_POST_INSTALL_TARGET_HOOKS += USBREDIR_POST_INSTALL_TARGET_RM_SERVER + +endif # BR2_PACKAGE_USBREDIR_SERVER + +$(eval $(autotools-package))