fritzkink
2022-09-26 ee31599bf6d57c44e87600023f0766b3b6119cf4
Add Net::DNS::Resolver::Mock perl module

5 files added
1 files modified
137 ■■■■■ changed files
components/perl/Net-DNS-Resolver-Mock/Makefile 35 ●●●●● patch | view | raw | blame | history
components/perl/Net-DNS-Resolver-Mock/Net-DNS-Resolver-Mock-PERLVER.p5m 35 ●●●●● patch | view | raw | blame | history
components/perl/Net-DNS-Resolver-Mock/manifests/sample-manifest.p5m 35 ●●●●● patch | view | raw | blame | history
components/perl/Net-DNS-Resolver-Mock/pkg5 19 ●●●●● patch | view | raw | blame | history
components/perl/Net-DNS-Resolver-Mock/test/results-all.master 12 ●●●●● patch | view | raw | blame | history
tools/perl-version-convert 1 ●●●● patch | view | raw | blame | history
components/perl/Net-DNS-Resolver-Mock/Makefile
New file
@@ -0,0 +1,35 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# This file was automatically generated using the following command:
#   $WS_TOOLS/perl-integrate-module Net::DNS::Resolver::Mock
#
BUILD_STYLE = makemaker
include ../../../make-rules/shared-macros.mk
COMPONENT_PERL_MODULE =        Net::DNS::Resolver::Mock
HUMAN_VERSION =            1.20220817
COMPONENT_SUMMARY =        Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
COMPONENT_CPAN_AUTHOR =        MBRADSHAW
COMPONENT_ARCHIVE_HASH =    \
    sha256:10d4b3f63be1bd9771d09dd8a93f62f1715073aa82cbbd2ebd27d364cd227d29
COMPONENT_LICENSE =        Artistic-1.0 OR GPL-1.0-or-later
COMPONENT_LICENSE_FILE =    LICENSE
include $(WS_MAKE_RULES)/common.mk
# Auto-generated dependencies
PERL_REQUIRED_PACKAGES += library/perl-5/net-dns
PERL_REQUIRED_PACKAGES += library/perl-5/test-exception
PERL_REQUIRED_PACKAGES += runtime/perl
components/perl/Net-DNS-Resolver-Mock/Net-DNS-Resolver-Mock-PERLVER.p5m
New file
@@ -0,0 +1,35 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# This file was automatically generated using perl-integrate-module
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PLV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/perl5/$(PERLVER)/man/man3perl/Net::DNS::Resolver::Mock.3perl
file path=usr/perl5/vendor_perl/$(PERLVER)/Net/DNS/Resolver/Mock.pm
# perl modules are unusable without perl runtime binary
depend type=require fmri=__TBD pkg.debug.depend.file=perl \
    pkg.debug.depend.path=usr/perl5/$(PERLVER)/bin
# Automatically generated dependencies based on distribution metadata
depend type=require fmri=pkg:/library/perl-5/net-dns-$(PLV)
#depend type=require fmri=pkg:/runtime/perl-$(PLV)
components/perl/Net-DNS-Resolver-Mock/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,35 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2022 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PLV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/perl5/$(PERLVER)/man/man3perl/Net::DNS::Resolver::Mock.3perl
file path=usr/perl5/vendor_perl/$(PERLVER)/Net/DNS/Resolver/Mock.pm
# perl modules are unusable without perl runtime binary
depend type=require fmri=__TBD pkg.debug.depend.file=perl \
    pkg.debug.depend.path=usr/perl5/$(PERLVER)/bin
# Automatically generated dependencies based on distribution metadata
depend type=require fmri=pkg:/library/perl-5/net-dns-$(PLV)
#depend type=require fmri=pkg:/runtime/perl-$(PLV)
components/perl/Net-DNS-Resolver-Mock/pkg5
New file
@@ -0,0 +1,19 @@
{
    "dependencies": [
        "SUNWcs",
        "library/perl-5/net-dns-534",
        "library/perl-5/net-dns-536",
        "library/perl-5/test-exception-534",
        "library/perl-5/test-exception-536",
        "runtime/perl-534",
        "runtime/perl-536",
        "shell/ksh93",
        "system/library"
    ],
    "fmris": [
        "library/perl-5/net-dns-resolver-mock-534",
        "library/perl-5/net-dns-resolver-mock-536",
        "library/perl-5/net-dns-resolver-mock"
    ],
    "name": "Net-DNS-Resolver-Mock"
}
components/perl/Net-DNS-Resolver-Mock/test/results-all.master
New file
@@ -0,0 +1,12 @@
t/00-load.t ............ ok
Net::DNS::Resolver::Mock Debugging enabled at $(@D)/blib/lib/Net/DNS/Resolver/Mock.pm line 32.
DNS Lookup 'google.com' 'A' at $(@D)/blib/lib/Net/DNS/Resolver/Mock.pm line 32.
DNS Lookup 'google.com.au' 'TXT' at $(@D)/blib/lib/Net/DNS/Resolver/Mock.pm line 32.
DNS Lookup 'google.com.au' 'TXT' at $(@D)/blib/lib/Net/DNS/Resolver/Mock.pm line 32.
t/01-debug.t ........... ok
t/01-test.t ............ ok
t/author-critic.t ...... skipped: these tests are for testing by the author
t/author-pod-syntax.t .. skipped: these tests are for testing by the author
All tests successful.
Files=5, Tests=35
Result: PASS
tools/perl-version-convert
@@ -79,6 +79,7 @@
    [[ "$DIST" == "Mail-AuthenticationResults" && "${VERSION:0:2}" == "1." ]] && ((${#VERSION} == 12)) && VER[1]=$((1${VERSION:2:4} - 10000)) && VER[2]=$((1${VERSION:6:2} - 100)) && VER[3]=$((1${VERSION:8:2} - 100)) && VER[4]=${VERSION:11:1} && VERSION=${VERSION:0:1}
    [[ "$DIST" == "Mail-AuthenticationResults" && "${VERSION:0:2}" == "2." ]] && ((${#VERSION} == 10)) && VER[1]=$((1${VERSION:2:4} - 10000)) && VER[2]=$((1${VERSION:6:2} - 100)) && VER[3]=$((1${VERSION:8:2} - 100)) && VERSION=${VERSION:0:1}
    [[ "$DIST" == "Mail-AuthenticationResults" && "${VERSION:0:2}" == "2." ]] && ((${#VERSION} == 12)) && VER[1]=$((1${VERSION:2:4} - 10000)) && VER[2]=$((1${VERSION:6:2} - 100)) && VER[3]=$((1${VERSION:8:2} - 100)) && VER[4]=${VERSION:11:1} && VERSION=${VERSION:0:1}
    [[ "$DIST" == "Net-DNS-Resolver-Mock" && "${VERSION:0:2}" == "1." ]] && ((${#VERSION} == 10)) && VER[1]=$((1${VERSION:2:4} - 10000)) && VER[2]=$((1${VERSION:6:2} - 100)) && VER[3]=$((1${VERSION:8:2} - 100)) && VERSION=${VERSION:0:1}
    [[ "$DIST" == "Module-Build" ]] && ((${#VERSION} == 6)) && VER[1]=$((1${VERSION:2:4} - 10000)) && VERSION=${VERSION:0:1}
    [[ "$DIST" == "Mozilla-CA" ]] && ((${#VERSION} == 8)) && VER[1]=$((1${VERSION:4:2} - 100)) && VER[2]=$((1${VERSION:6:2} - 100)) && VERSION=${VERSION:0:4}
    [[ "$DIST" == "PkgConfig" && "${VERSION:4:3}" == "026" ]] && ((${#VERSION} == 7)) && VER[1]=$((1${VERSION:2:2} - 100)) && VERSION=${VERSION:0:1}