From patchwork Mon Jan 2 15:45:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Bachelart X-Patchwork-Id: 710214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tshHz5Gn1z9t15 for ; Tue, 3 Jan 2017 02:46:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B4C7D8681D; Mon, 2 Jan 2017 15:45:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7sHB+z4+UU3q; Mon, 2 Jan 2017 15:45:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C1F6885787; Mon, 2 Jan 2017 15:45:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F13AE1C16C3 for ; Mon, 2 Jan 2017 15:45:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id ED29222DAB for ; Mon, 2 Jan 2017 15:45:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iuaHRq2h0V7F for ; Mon, 2 Jan 2017 15:45:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.bretagnetelecom.com (smtp.bretagnetelecom.fr [77.74.208.202]) by silver.osuosl.org (Postfix) with ESMTP id BA5C323177 for ; Mon, 2 Jan 2017 15:45:36 +0000 (UTC) Received: from david.intranet.bbright.com (unknown [37.157.230.201]) by smtp.bretagnetelecom.com (Postfix) with ESMTP id 1E5FD81904; Mon, 2 Jan 2017 16:45:35 +0100 (CET) From: David Bachelart To: buildroot@buildroot.org Date: Mon, 2 Jan 2017 16:45:28 +0100 Message-Id: <1483371929-13907-7-git-send-email-david.bachelart@bbright.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1483371929-13907-1-git-send-email-david.bachelart@bbright.com> References: <1483371929-13907-1-git-send-email-david.bachelart@bbright.com> Cc: david.bachelart@bbright.com, Eric Le Bihan Subject: [Buildroot] [PATCH v2] throttle: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" From: Eric Le Bihan Signed-off-by: David Bachelart --- Changes v1 -> v2: - Fix url in .mk file - Fix comment in hash file, use MD5 sum from upstream --- package/Config.in | 1 + package/throttle/Config.in | 7 +++++++ package/throttle/throttle.hash | 3 +++ package/throttle/throttle.mk | 12 ++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 package/throttle/Config.in create mode 100644 package/throttle/throttle.hash create mode 100644 package/throttle/throttle.mk diff --git a/package/Config.in b/package/Config.in index 59fa851..608ba0c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1768,6 +1768,7 @@ menu "System tools" source "package/systemd-bootchart/Config.in" source "package/sysvinit/Config.in" source "package/tar/Config.in" + source "package/throttle/Config.in" source "package/tpm-tools/Config.in" source "package/unscd/Config.in" source "package/util-linux/Config.in" diff --git a/package/throttle/Config.in b/package/throttle/Config.in new file mode 100644 index 0000000..30f9308 --- /dev/null +++ b/package/throttle/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_THROTTLE + bool "throttle" + help + Throttle copies the standard input to the standard output while limiting + bandwidth to the specified maximum. + + http://rpms.famillecollet.com/rpmphp/zoom.php?rpm=throttle diff --git a/package/throttle/throttle.hash b/package/throttle/throttle.hash new file mode 100644 index 0000000..460b421 --- /dev/null +++ b/package/throttle/throttle.hash @@ -0,0 +1,3 @@ +# md5 from http://pkgs.fedoraproject.org/repo/pkgs/throttle/throttle-1.2.tar.gz/md5, sha256 locally calculated +md5 bb8abf5a9a63ed7d80951f056543a88c throttle-1.2.tar.gz +sha256 6d90e4dcd6c604846020d60e82df1576e0a022cb96716a709db4ebfa143d6772 throttle-1.2.tar.gz diff --git a/package/throttle/throttle.mk b/package/throttle/throttle.mk new file mode 100644 index 0000000..8fb694e --- /dev/null +++ b/package/throttle/throttle.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# throttle +# +################################################################################ + +THROTTLE_VERSION = 1.2 +THROTTLE_SITE = http://pkgs.fedoraproject.org/repo/pkgs/throttle/throttle-$(THROTTLE_VERSION).tar.gz/bb8abf5a9a63ed7d80951f056543a88c +THROTTLE_LICENSE = GPLv2+ +THROTTLE_LICENSE_FILES = COPYING + +$(eval $(autotools-package))