package/perl-netaddr-ip: New package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 19 Apr 2015 10:16:58 +0000 (12:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 19 Apr 2015 11:43:44 +0000 (13:43 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/perl-netaddr-ip/Config.in [new file with mode: 0644]
package/perl-netaddr-ip/perl-netaddr-ip.hash [new file with mode: 0644]
package/perl-netaddr-ip/perl-netaddr-ip.mk [new file with mode: 0644]

index 6f79bb530c81ae6c128245a45e785d0a843d63c4..1f9c9085bc97936763657009bda37c290174142c 100644 (file)
@@ -514,6 +514,7 @@ menu "Perl libraries/modules"
        source "package/perl-json-tiny/Config.in"
        source "package/perl-mojolicious/Config.in"
        source "package/perl-net-ssleay/Config.in"
+       source "package/perl-netaddr-ip/Config.in"
        source "package/perl-path-tiny/Config.in"
        source "package/perl-try-tiny/Config.in"
        source "package/perl-xml-libxml/Config.in"
diff --git a/package/perl-netaddr-ip/Config.in b/package/perl-netaddr-ip/Config.in
new file mode 100644 (file)
index 0000000..4f082f1
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PERL_NETADDR_IP
+       bool "perl-netaddr-ip"
+       depends on !BR2_STATIC_LIBS
+       help
+         NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets
+
+         https://metacpan.org/release/NetAddr-IP
+
+comment "perl-netaddr-ip needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS
diff --git a/package/perl-netaddr-ip/perl-netaddr-ip.hash b/package/perl-netaddr-ip/perl-netaddr-ip.hash
new file mode 100644 (file)
index 0000000..37d17fa
--- /dev/null
@@ -0,0 +1,3 @@
+# retrieved by scancpan from http://cpan.metacpan.org/
+md5    b72b91ebd228b096fd3b0acc87df877e NetAddr-IP-4.075.tar.gz
+sha256 ab8275bb8f306f780cd029a6dc48764461f4d1ef3a106b99fe5a90cbf2968839 NetAddr-IP-4.075.tar.gz
diff --git a/package/perl-netaddr-ip/perl-netaddr-ip.mk b/package/perl-netaddr-ip/perl-netaddr-ip.mk
new file mode 100644 (file)
index 0000000..e8ace9d
--- /dev/null
@@ -0,0 +1,16 @@
+################################################################################
+#
+# perl-netaddr-ip
+#
+################################################################################
+
+PERL_NETADDR_IP_VERSION = 4.075
+PERL_NETADDR_IP_SOURCE = NetAddr-IP-$(PERL_NETADDR_IP_VERSION).tar.gz
+PERL_NETADDR_IP_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MI/MIKER
+PERL_NETADDR_IP_DEPENDENCIES = perl
+PERL_NETADDR_IP_LICENSE = Artistic or GPLv1+
+PERL_NETADDR_IP_LICENSE_FILES = Artistic Copying
+
+PERL_NETADDR_IP_CONF_OPTS = -noxs
+
+$(eval $(perl-package))