svn commit: r354999 - in head/mail/postfix-policyd-weight: . files

Olli Hauer ohauer at FreeBSD.org
Sat May 24 08:00:33 UTC 2014


Author: ohauer
Date: Sat May 24 08:00:32 2014
New Revision: 354999
URL: http://svnweb.freebsd.org/changeset/ports/354999
QAT: https://qat.redports.org/buildarchive/r354999/

Log:
  - fix build with changed  Net::DNS API
     in version Net::DNS v0.52 netdns_dn_expand was added as replacement for dn_expand
     in version Net::DNS v0.74 dn_expand was removed
  - bump PORTREVISION
  
  Tanks to Herbert J. Skuhra for notify about the Net::DNS issue on ports@

Modified:
  head/mail/postfix-policyd-weight/Makefile
  head/mail/postfix-policyd-weight/files/patch-policyd-weight

Modified: head/mail/postfix-policyd-weight/Makefile
==============================================================================
--- head/mail/postfix-policyd-weight/Makefile	Sat May 24 07:50:40 2014	(r354998)
+++ head/mail/postfix-policyd-weight/Makefile	Sat May 24 08:00:32 2014	(r354999)
@@ -3,6 +3,7 @@
 
 PORTNAME=	policyd-weight
 PORTVERSION=	0.1.15.2
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.policyd-weight.org/releases/ \
 		LOCAL/ohauer
@@ -13,7 +14,7 @@ COMMENT=	Weighted policy daemon for post
 
 LICENSE=	GPLv2
 
-RUN_DEPENDS=	p5-Net-DNS>0:${PORTSDIR}/dns/p5-Net-DNS \
+RUN_DEPENDS=	p5-Net-DNS>=0.52:${PORTSDIR}/dns/p5-Net-DNS \
 		p5-Net-IP>0:${PORTSDIR}/net-mgmt/p5-Net-IP
 
 SUB_FILES=	pkg-message

Modified: head/mail/postfix-policyd-weight/files/patch-policyd-weight
==============================================================================
--- head/mail/postfix-policyd-weight/files/patch-policyd-weight	Sat May 24 07:50:40 2014	(r354998)
+++ head/mail/postfix-policyd-weight/files/patch-policyd-weight	Sat May 24 08:00:32 2014	(r354999)
@@ -1,5 +1,14 @@
 --- ./policyd-weight.orig	2011-09-03 15:55:02.000000000 +0200
-+++ ./policyd-weight	2014-03-15 17:15:33.000000000 +0100
++++ ./policyd-weight	2014-05-24 07:46:02.000000000 +0200
+@@ -69,7 +69,7 @@
+ use Sys::Syslog qw(:DEFAULT setlogsock);
+ use Net::DNS;
+ use Net::IP;
+-use Net::DNS::Packet qw(dn_expand);
++use Net::DNS::Packet qw(netdns_dn_expand);
+ use IO::Socket::INET;
+ use IO::Socket::UNIX;
+ use IO::Select;
 @@ -320,7 +320,7 @@
  
  my $DEBUG        = 0;               # 1 or 0 - don't comment
@@ -133,6 +142,15 @@
      {
          mylog(warning=>"cache: couldn't change GID to user $GROUP: $!");
      }
+@@ -3588,7 +3587,7 @@
+             my    ($id, $bf, $qc, $anc, $nsc, $arc, $qb) = 
+             unpack('n   n    n    n     n     n     a*', $buf);
+ 
+-            my ($dn, $offset) = dn_expand(\$qb, 0);
++            my ($dn, $offset) = netdns_dn_expand(\$qb, 0);
+ 
+             if(($id && $anc) && ($id == $oid) && ($query eq $dn))
+             {
 @@ -3842,7 +3841,7 @@
      my $helo = shift;
      my $ip   = shift;


More information about the svn-ports-all mailing list