ports/63530: Update to 2.9.16

Ralf van der Enden tremere at cainites.net
Tue Mar 2 16:30:22 UTC 2004


The following reply was made to PR ports/63530; it has been noted by GNATS.

From: Ralf van der Enden <tremere at cainites.net>
To: freebsd-gnats-submit at FreeBSD.org, tremere at cainites.net
Cc:  
Subject: Re: ports/63530: Update to 2.9.16
Date: Tue, 2 Mar 2004 17:28:52 +0100

 Hello freebsd-gnats-submit,
 
   Some small fixes to startup-script (fixed by Dirk Meyer and Ralf vd Enden).
   $PREFIX no longer hardcoded (fixed by Dirk Meyer).
 
 ------------ PATCH BEGINS HERE ------------
 diff -ruN powerdns.orig/Makefile powerdns/Makefile
 --- powerdns.orig/Makefile      Tue Mar  2 17:15:18 2004
 +++ powerdns/Makefile   Tue Mar  2 17:17:24 2004
 @@ -6,6 +6,7 @@
  
  PORTNAME=      powerdns
  PORTVERSION=   2.9.16
 +PORTREVISION=  1
  CATEGORIES=    dns ipv6
  MASTER_SITES=  http://downloads.powerdns.com/releases/
  DISTNAME=      pdns-${PORTVERSION}
 @@ -127,7 +128,10 @@
  .endif
  .if !exists(${STARTUP_SCRIPT})
         ${ECHO_MSG} "Installing ${STARTUP_SCRIPT} startup file."
 -       ${INSTALL_SCRIPT} ${FILESDIR}/pdns.sh.sample ${STARTUP_SCRIPT}
 +       ${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
 +               ${FILESDIR}/pdns.sh.sample  \
 +               > ${WRKSRC}/pdns.sh.sample
 +       ${INSTALL_SCRIPT} ${WRKSRC}/pdns.sh.sample ${STARTUP_SCRIPT}
  .endif
  
  .include <bsd.port.post.mk>
 diff -ruN powerdns.orig/files/pdns.sh.sample powerdns/files/pdns.sh.sample
 --- powerdns.orig/files/pdns.sh.sample  Tue Mar  2 17:15:18 2004
 +++ powerdns/files/pdns.sh.sample       Tue Mar  2 17:22:04 2004
 @@ -2,11 +2,7 @@
  
  rc_file=${0##*/}
  
 -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
 -        echo "${rc_file}: Cannot determine PREFIX." >&2
 -        echo "Please use the complete pathname." >&2
 -        exit 64
 -fi
 +PREFIX=%%PREFIX%%
  
  pdns=${PREFIX}/sbin/pdns_server
  pdnscontrol=${PREFIX}/bin/pdns_control
 @@ -18,6 +14,7 @@
   if [ -f $pdns ]; then
    echo -n ' PowerDNS'
    if [ -f $pdnsrecursor ]; then
 +   rm $recursorpid >/dev/null 2>&1
     $pdnsrecursor >/dev/null 2>&1
    fi
    $pdns
 ------------- PATCH ENDS HERE -------------
 
 
 -- 
 Best regards,
  Ralf                          mailto:tremere at cainites.net
 



More information about the freebsd-ports-bugs mailing list