pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/hs-network-info Import network-info-0.2.0.10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c2daff71735
branches:  trunk
changeset: 452052:3c2daff71735
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed May 05 09:29:16 2021 +0000

description:
Import network-info-0.2.0.10

This library provides simple read-only access to the local computer's
networking configuration. It is currently capable of getting a list of
all the network interfaces and their respective IPv4, IPv6 and MAC
addresses.

diffstat:

 net/hs-network-info/DESCR                              |   4 ++++
 net/hs-network-info/Makefile                           |  11 +++++++++++
 net/hs-network-info/buildlink3.mk                      |  13 +++++++++++++
 net/hs-network-info/distinfo                           |   7 +++++++
 net/hs-network-info/patches/patch-cbits_network-unix.c |  17 +++++++++++++++++
 5 files changed, 52 insertions(+), 0 deletions(-)

diffs (72 lines):

diff -r 7e45f8d85974 -r 3c2daff71735 net/hs-network-info/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hs-network-info/DESCR Wed May 05 09:29:16 2021 +0000
@@ -0,0 +1,4 @@
+This library provides simple read-only access to the local computer's
+networking configuration. It is currently capable of getting a list of
+all the network interfaces and their respective IPv4, IPv6 and MAC
+addresses.
diff -r 7e45f8d85974 -r 3c2daff71735 net/hs-network-info/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hs-network-info/Makefile      Wed May 05 09:29:16 2021 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2021/05/05 09:29:16 pho Exp $
+
+DISTNAME=      network-info-0.2.0.10
+CATEGORIES=    net
+
+MAINTAINER=    pho%cielonegro.org@localhost
+COMMENT=       Access basic network configuration of the local computer
+LICENSE=       modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7e45f8d85974 -r 3c2daff71735 net/hs-network-info/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hs-network-info/buildlink3.mk Wed May 05 09:29:16 2021 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/05/05 09:29:16 pho Exp $
+
+BUILDLINK_TREE+=       hs-network-info
+
+.if !defined(HS_NETWORK_INFO_BUILDLINK3_MK)
+HS_NETWORK_INFO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-network-info+=        hs-network-info>=0.2.0
+BUILDLINK_ABI_DEPENDS.hs-network-info+=        hs-network-info>=0.2.0.10
+BUILDLINK_PKGSRCDIR.hs-network-info?=  ../../net/hs-network-info
+.endif # HS_NETWORK_INFO_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-network-info
diff -r 7e45f8d85974 -r 3c2daff71735 net/hs-network-info/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hs-network-info/distinfo      Wed May 05 09:29:16 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/05/05 09:29:16 pho Exp $
+
+SHA1 (network-info-0.2.0.10.tar.gz) = a277470d6fbfb56bd0da7f1100017a87c525711a
+RMD160 (network-info-0.2.0.10.tar.gz) = 8f27eb6c92ef8a61a97dfee71df84367372ff669
+SHA512 (network-info-0.2.0.10.tar.gz) = d578f64860fb3c04d11a444d9636bde57402b6728529e73c7741b056ef0d8f68cb0958118212f2d47826dc28ba9b2bfcc9aef8b5b2e9fc3da8eaadc796160895
+Size (network-info-0.2.0.10.tar.gz) = 6278 bytes
+SHA1 (patch-cbits_network-unix.c) = 78769aa78e4e61b3dd9488e5c0d2337d1f69a946
diff -r 7e45f8d85974 -r 3c2daff71735 net/hs-network-info/patches/patch-cbits_network-unix.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hs-network-info/patches/patch-cbits_network-unix.c    Wed May 05 09:29:16 2021 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-cbits_network-unix.c,v 1.1 2021/05/05 09:29:16 pho Exp $
+
+Support NetBSD: https://github.com/jacobstanley/network-info/pull/21
+
+--- cbits/network-unix.c.orig  2021-05-05 09:25:02.528519803 +0000
++++ cbits/network-unix.c
+@@ -36,6 +36,10 @@
+ #   include <netinet/in.h>
+ #endif
+ 
++#ifdef __NetBSD__
++#   include <netinet/in.h>
++#endif
++
+ #include "network.h"
+ #include "common.h"
+ 



Home | Main Index | Thread Index | Old Index