[arch-commits] Commit in perl-net-dns-resolver-programmable/trunk (2 files)

Felix Yan felixonmars at archlinux.org
Fri Jul 14 06:50:55 UTC 2017


    Date: Friday, July 14, 2017 @ 06:50:55
  Author: felixonmars
Revision: 300524

upgpkg: perl-net-dns-resolver-programmable 0.005-1

Modified:
  perl-net-dns-resolver-programmable/trunk/PKGBUILD
Deleted:
  perl-net-dns-resolver-programmable/trunk/new-net-dns.patch

-------------------+
 PKGBUILD          |   20 ++++++--------------
 new-net-dns.patch |   23 -----------------------
 2 files changed, 6 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-14 06:04:39 UTC (rev 300523)
+++ PKGBUILD	2017-07-14 06:50:55 UTC (rev 300524)
@@ -4,8 +4,8 @@
 
 pkgname=perl-net-dns-resolver-programmable
 _realname=Net-DNS-Resolver-Programmable
-pkgver=0.003
-pkgrel=9
+pkgver=0.005
+pkgrel=1
 pkgdesc="A Net::DNS::Resolver descendant class for offline emulation of DNS"
 arch=('any')
 license=('GPL' 'PerlArtistic')
@@ -13,24 +13,16 @@
 depends=('perl-net-dns' 'perl')
 makedepends=('perl-module-build')
 options=('!emptydirs')
-source=(http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/${_realname}-v${pkgver}.tar.gz
-        new-net-dns.patch)
-md5sums=('8d44bf331d6115e7fb4ea21f6cf4b96b'
-         '490dedc18d2ac97b945d9d8ddb9039a2')
+source=(http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/${_realname}-${pkgver}.tar.gz)
+sha512sums=('1fe6070d21b1f8d6baaecf6c0f75569a15895e97f4ae232ac1cd518f01ca9d5d44b636fa7b619501bd09d9a91432fce6292ff000d2572a9f1cec08bcc97322ed')
 
-prepare() {
-  cd ${srcdir}/${_realname}-v${pkgver}
-  # https://rt.cpan.org/Public/Bug/Display.html?id=95901
-  patch -Np1 -i ../new-net-dns.patch
-}
-
 build() {
-  cd ${srcdir}/${_realname}-v${pkgver}
+  cd ${srcdir}/${_realname}-${pkgver}
   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
 package() {
-  cd ${srcdir}/${_realname}-v${pkgver}
+  cd ${srcdir}/${_realname}-${pkgver}
   make install DESTDIR=${pkgdir} || return 1
 }

Deleted: new-net-dns.patch
===================================================================
--- new-net-dns.patch	2017-07-14 06:04:39 UTC (rev 300523)
+++ new-net-dns.patch	2017-07-14 06:50:55 UTC (rev 300524)
@@ -1,23 +0,0 @@
-Description: deal with changes in Net::DNS >= 0.75
-Origin: CPAN RT
-Bug: https://rt.cpan.org/Public/Bug/Display.html?id=95901
-Bug-Debian: https://bugs.debian.org/752988
-Author: Willen <NLNETLABS at cpan.org>
-Reviewed-by: gregor herrmann <gregoa at debian.org>
-Last-Update: 2014-06-29
-
---- a/lib/Net/DNS/Resolver/Programmable.pm
-+++ b/lib/Net/DNS/Resolver/Programmable.pm
-@@ -204,8 +204,10 @@
-     if (defined(my $resolver_code = $self->{resolver_code})) {
-         ($result, $aa, @answer_rrs) = $resolver_code->($domain, $rr_type, $class);
-     }
--    
--    if (not defined($result) or defined($Net::DNS::rcodesbyname{$result})) {
-+
-+    if (not defined($result)
-+         or defined($Net::DNS::rcodesbyname{$result})
-+         or defined($Net::DNS::Parameters::rcodebyname{$result})) {
-         # Valid RCODE, return a packet:
-         
-         $aa     = TRUE      if not defined($aa);



More information about the arch-commits mailing list