From patchwork Wed Oct 14 00:59:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derrick Pallas X-Patchwork-Id: 1381774 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=KsyOdWLR; 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 4C9vFm3RW7z9sTv for ; Wed, 14 Oct 2020 11:59:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 72FB987918; Wed, 14 Oct 2020 00:59:33 +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 9mGs7S1nPM7F; Wed, 14 Oct 2020 00:59:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 91FF78790A; Wed, 14 Oct 2020 00:59:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 2F0141BF20B for ; Wed, 14 Oct 2020 00:59:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2B2D187BA2 for ; Wed, 14 Oct 2020 00:59:30 +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 EIxqRNQ0r1on for ; Wed, 14 Oct 2020 00:59:28 +0000 (UTC) X-Greylist: delayed 02:36:05 by SQLgrey-1.7.6 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id DD55787B9A for ; Wed, 14 Oct 2020 00:59:28 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id e10so962074pfj.1 for ; Tue, 13 Oct 2020 17:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meter-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TD4o1ANISQSY8FqIFwxtqBDRw1vovOPLqXWvrQB+Bmo=; b=KsyOdWLRoikbC5UtEcg3phzXh2gD0L2Hza4cXdlZ/X6EPJN75Gfz1sL5r9lf7oExiG /zmlcrflRaUVh5smGVrS+mB+5KS7mNcKW0abEuQwa23spU7BpZko6kn8XldyagtNbYGl Qbgg0itQdaDdONf9V8s8IrG7RNhSlEdKP+NbE+O3e7HuiJaGND9Wke4Kz8b5xMWgzTiR nCeAjafvc+s6CG5Pob4fDYYoOQAoG8ZzPeqPq47ujL/Z3z+mfWed9ig7gx2Om3l9k5fb gsGn2Btws+7VbfBWV7Xpd2XPTLX2krO2B7SF3Rnhl35n+9TY4Nr6wcIMlzWyojRBFtDJ NwAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TD4o1ANISQSY8FqIFwxtqBDRw1vovOPLqXWvrQB+Bmo=; b=JWJDpyMVCqv+VuNqM+u+xvD+PgrhJ+I+Owk2Mnxcv3HrATF/ljxNFbTbebdhJpxwTp VyIekJDsKDJpXNQRbIfAXWCq9x5IUfDBlWCTHfwqjyJCFh9bNijPVeL2dzgzC34sYz6b Ir2RdlcGhmcVhLcX47N2N0QyoaWw4/m+ifYILu7jEHDe4de+h7/xI7Zf5IoSBealeD5y d3H4q1Qcb/oxSPHI9vnBdS8p8tuQNOK/QfK43BUq3Jedf9SEOm7XRHFc2Vrwfe2I6xQI ZX3mfq/fwzIKDntPoLsmILej6wZvUnmC/PP7yoZY0KQBePoCWc09jTtuDIVDWjOmIJPk 9rfw== X-Gm-Message-State: AOAM532V2tpNoCobvqmgrokkX76S18EczunhtryMJ85NqgLvORgU94oM Ob1z0Xbc/ezBRbjSLid9S+fy1Pi77J2Abw== X-Google-Smtp-Source: ABdhPJyA8S0fRtpgguIFeUUGaw0Af0we1t67Otb5UoWk2ErK4wvFM+yltiuk29C9T5y2hcTQopZbNg== X-Received: by 2002:aa7:9a44:0:b029:155:8201:c61c with SMTP id x4-20020aa79a440000b02901558201c61cmr2154045pfj.31.1602637168129; Tue, 13 Oct 2020 17:59:28 -0700 (PDT) Received: from frank-chu.members.linode.com ([2600:3c01::f03c:92ff:fe24:9a57]) by smtp.gmail.com with ESMTPSA id 15sm965378pgt.24.2020.10.13.17.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 17:59:27 -0700 (PDT) From: Derrick Lyndon Pallas To: buildroot@buildroot.org Date: Wed, 14 Oct 2020 00:59:21 +0000 Message-Id: <20201014005921.27623-1-derrick@meter.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 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: , Cc: Derrick Lyndon Pallas 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 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))