From patchwork Tue Oct 13 22:23:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derrick Pallas X-Patchwork-Id: 1381743 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=meter.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=meter-com.20150623.gappssmtp.com header.i=@meter-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=S+o5WOmY; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C9rL04zYlz9ryj for ; Wed, 14 Oct 2020 09:48:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 686CB8777D; Tue, 13 Oct 2020 22:48:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S5tmuZXZW9Hx; Tue, 13 Oct 2020 22:48:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A814387776; Tue, 13 Oct 2020 22:48:03 +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 8122B1BF5A5 for ; Tue, 13 Oct 2020 22:48:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 644D72E1F4 for ; Tue, 13 Oct 2020 22:48:02 +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 UnJLwjwQCm0v for ; Tue, 13 Oct 2020 22:48:01 +0000 (UTC) X-Greylist: delayed 00:19:23 by SQLgrey-1.7.6 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by silver.osuosl.org (Postfix) with ESMTPS id 0F2E52E1F3 for ; Tue, 13 Oct 2020 22:48:01 +0000 (UTC) Received: by mail-io1-f53.google.com with SMTP id g7so2357569iov.13 for ; Tue, 13 Oct 2020 15:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meter-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=757eL3Gge/JLU5BUZ0ns1MlPRC/wizhJfvsJyPlx57E=; b=S+o5WOmYFSZM8GAkmu5eDn6zc31czYBhZQDS8KPRfOkqgvgKcG9cQjfRlAdcZfFpFB dttJQ/O8cXKPs/oULWa4k8cyfZGdcxHCOq96kw2I3e88nC2+q7Cwi/AmMjW+bLzEVLJG Ijl7reL/3b2aS+YEf1e4qFV0qHAbCSik7n5oF3Xi0WOLzL9j7BGLllti5rzvXtGzG1S4 eYW7oSoD/0Yp7oZZk+oueFTxe5foQ72NCqkKjzqRxwNlDEcC0YzS94xdzTQz0QL/qpAZ a3nktAwvAEOs/VzLIRO4yDyP8YV+aUMIVRzNI/LFl8YT9+L1sfKcFtSfenkV71R1CD7D DJYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=757eL3Gge/JLU5BUZ0ns1MlPRC/wizhJfvsJyPlx57E=; b=LzYzy6FSnikZZ/sYKIt4V7fddEDQytNG58qTOMUvkEskp7hLJz0X88KsxKVglnffI0 RCf2Tm5ZtVzN9vJAGKs1EdO2r6ewUGsZITtBV/gUD563CBV0W1hDHWmw0DK0dIIXpHJS Krmw8+G/JnYStPYv7vCkeJdP9Ndr9izEuys8iXW/vhTKgNt1W8Llt5kpnwVT7Y3omOTf kaGnr2yOzMd2bdD3tzwpaqK5CgZV6LNMBccLxCcj/MJVwwTdp4GM9z6fqWUXGZpMtXOr +ZMbMQR718y9bNUrTNAg4HOJAwjWAPlpx7mw53pus8azUGV18w5nZA2tGNcB0htseVAf 6gfQ== X-Gm-Message-State: AOAM5310oiBXfEOWuRhtEGtNPBXpOUwuI/ElgYF2oVBUbjnFiJDaByvJ 0PHoALlVt9QT4r9UQXARJ9f2qSC6y8VHLg== X-Google-Smtp-Source: ABdhPJzSS44rnJ9glgSljSJrCSCQLA26/EcnhmAidv+G32Rjv+WpF8lGgTiKomSTQdzrflRqAdDWag== X-Received: by 2002:a63:f015:: with SMTP id k21mr1369850pgh.422.1602627802423; Tue, 13 Oct 2020 15:23:22 -0700 (PDT) Received: from [192.168.127.224] (184-23-8-77.dsl.static.fusionbroadband.com. [184.23.8.77]) by smtp.gmail.com with ESMTPSA id g85sm718581pfb.4.2020.10.13.15.23.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Oct 2020 15:23:22 -0700 (PDT) To: buildroot@buildroot.org From: Derrick Pallas Message-ID: <11d2e50c-7cdb-fbcd-f833-4d8f3da9c979@meter.com> Date: Tue, 13 Oct 2020 15:23:20 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 Content-Language: en-US Subject: [Buildroot] [PATCH 1/1] package: add ipcalc at version 1.0.0 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ipcalc is an ancient and venerable tool for manipulating IP addresses, networks, & interfaces from shell scripts. There is a subtool in busybox, but it does not support everything the upstream tool [1] supports. [1] https://gitlab.com/ipcalc/ipcalc Signed-off-by: Derrick Lyndon Pallas --- package/Config.in | 1 + package/ipcalc/0001-disable-man-build.patch | 33 +++++++++++++++++++++ package/ipcalc/Config.in | 7 +++++ package/ipcalc/ipcalc.hash | 3 ++ package/ipcalc/ipcalc.mk | 17 +++++++++++ 5 files changed, 61 insertions(+) create mode 100644 package/ipcalc/0001-disable-man-build.patch create mode 100644 package/ipcalc/Config.in create mode 100644 package/ipcalc/ipcalc.hash create mode 100644 package/ipcalc/ipcalc.mk -- 2.28.0 diff --git a/package/Config.in b/package/Config.in index 09a332e3b9..56508bbc46 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1702,6 +1702,7 @@ menu "Networking" source "package/gupnp-dlna/Config.in" source "package/ibrcommon/Config.in" source "package/ibrdtn/Config.in" + source "package/ipcalc/Config.in" source "package/libcgi/Config.in" source "package/libcgicc/Config.in" source "package/libcoap/Config.in" diff --git a/package/ipcalc/0001-disable-man-build.patch b/package/ipcalc/0001-disable-man-build.patch new file mode 100644 index 0000000000..767b78162a --- /dev/null +++ b/package/ipcalc/0001-disable-man-build.patch @@ -0,0 +1,33 @@ +diff --git a/meson.build b/meson.build +index a2169fc..4ac9f46 100644 +--- a/meson.build ++++ b/meson.build +@@ -72,16 +72,17 @@ ipcalc = executable('ipcalc', + install : true + ) + +-ronn = find_program('ronn', required: true) +- +-ipcalc_1 = custom_target( +- 'ipcalc.1', +- output : 'ipcalc.1', +- input : 'ipcalc.1.md', +- command : [ronn, '--pipe', '-r', '@INPUT@'], +- capture: true, +- install_dir: join_paths(get_option('mandir'), 'man1'), +- install: true +-) ++ronn = find_program('ronn', required: false) ++if ronn.found() ++ ipcalc_1 = custom_target( ++ 'ipcalc.1', ++ output : 'ipcalc.1', ++ input : 'ipcalc.1.md', ++ command : [ronn, '--pipe', '-r', '@INPUT@'], ++ capture: true, ++ install_dir: join_paths(get_option('mandir'), 'man1'), ++ install: true ++ ) ++endif + + subdir('tests') diff --git a/package/ipcalc/Config.in b/package/ipcalc/Config.in new file mode 100644 index 0000000000..74cf84f4a4 --- /dev/null +++ b/package/ipcalc/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_IPCALC + bool "ipcalc" + help + A modern IPv4/IPv6 ipcalc tool, assisting in network calculations + in command line and as a tool for scripts. + + https://gitlab.com/ipcalc/ipcalc diff --git a/package/ipcalc/ipcalc.hash b/package/ipcalc/ipcalc.hash new file mode 100644 index 0000000000..df610eb693 --- /dev/null +++ b/package/ipcalc/ipcalc.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 d7aca371335ab3e35364bcfe34cd0229db005be8bebb9236608ec318cb3f7748 ipcalc-1.0.0.tar.bz2 +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING diff --git a/package/ipcalc/ipcalc.mk b/package/ipcalc/ipcalc.mk new file mode 100644 index 0000000000..c4ce8b9ceb --- /dev/null +++ b/package/ipcalc/ipcalc.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# ipcalc +# +################################################################################ + +IPCALC_VERSION = 1.0.0 +IPCALC_SITE = https://gitlab.com/ipcalc/ipcalc/-/archive/$(IPCALC_VERSION) +IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2 +IPCALC_LICENSE = GPL-2.0+ +IPCALC_LICENSE_FILES = COPYING + +IPCALC_CONF_OPTS = \ + -Duse_maxminddb=disabled \ + -Duse_geoip=disabled + +$(eval $(meson-package))