pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/29854: Please update package net/mDNSResponder



>Number:         29854
>Category:       pkg
>Synopsis:       Please update package net/mDNSResponder
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 01 06:58:00 +0000 2005
>Originator:     Ian Zagorskih
>Release:        NetBSD-current
>Organization:
NGEDC
>Environment:
etBSD NBSD1 3.99.2 NetBSD 3.99.2 (GENERIC-$Revision: 1.628 $) #2: Thu Mar 31 
15:17:53 NOVST 2005  toor@NBSD1:/usr/src/sys/arch/i386/compile/NBSD1 i386

>Description:

Package net/nDNSResponder now is v98. I'v made an update patches. Please review 
it and if all is fine commit into pkgsrc. Thanks.

PS: This is *not* first april joke.. :)
PPS: KDE 3.4.0 can use mDNSResponder API in kdelibs. But currently available 
version of package is too old.

>How-To-Repeat:

>Fix:

---cut---
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/mDNSResponder/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    13 Jan 2005 08:22:58 -0000      1.1.1.1
+++ Makefile    1 Apr 2005 06:49:56 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.1.1.1 2005/01/13 08:22:58 itojun Exp $
 
-DISTNAME=      mDNSResponder-62
+DISTNAME=      mDNSResponder-98
 CATEGORIES=    net
 MASTER_SITES=  http://darwinsource.opendarwin.org/tarballs/apsl/
 
@@ -9,15 +9,29 @@
 COMMENT=       Apple's mDNS repsonder
 
 USE_GNU_TOOLS= make
-MAKE_ARGS+=    os=netbsd
-WRKSRC=                ${WRKDIR}/${DISTNAME}/mDNSPosix
+MAKE_ENV+=     os=netbsd
+ROOTSRC=       ${WRKDIR}/${DISTNAME}
+WRKSRC=                ${ROOTSRC}/mDNSPosix
 
 BINARY=        mDNSClientPosix mDNSIdentify mDNSNetMonitor 
mDNSProxyResponderPosix \
-       mDNSResponderPosix mdnsd
+       mDNSResponderPosix mdnsd dnsextd
+MAN8= mDNSShared/dnsextd mDNSShared/mDNSResponder
+
+# Fix hard coded pathes
+SUBST_CLASSES=         pref
+SUBST_STAGE.pref=      post-patch
+SUBST_FILES.pref=      ${ROOTSRC}/mDNSShared/mDNSResponder.8
+SUBST_SED.pref=                -e "s,@PREFIX@,${PREFIX},g"
+SUBST_MESSAGE.pref=    "Fix hard coded prefix."
 
 do-install:
        for i in ${BINARY}; do \
                ${INSTALL_PROGRAM} ${WRKSRC}/build/prod/$$i ${PREFIX}/bin; \
        done
+       for i in ${MAN8}; do \
+               ${INSTALL_DATA} ${ROOTSRC}/$$i.8 ${PREFIX}/man/man8; \
+       done
 
+# Note: dnsextd requires pthread API
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/mDNSResponder/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- PLIST       13 Jan 2005 08:22:58 -0000      1.1.1.1
+++ PLIST       1 Apr 2005 06:49:56 -0000
@@ -1,7 +1,10 @@
 @comment       $NetBSD: PLIST,v 1.1.1.1 2005/01/13 08:22:58 itojun Exp $
+bin/dnsextd
 bin/mDNSClientPosix
 bin/mDNSIdentify
 bin/mDNSNetMonitor
 bin/mDNSProxyResponderPosix
 bin/mDNSResponderPosix
 bin/mdnsd
+man/man8/dnsextd.8
+man/man8/mDNSResponder.8
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/mDNSResponder/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo    24 Feb 2005 12:13:52 -0000      1.2
+++ distinfo    1 Apr 2005 06:49:56 -0000
@@ -1,5 +1,7 @@
 $NetBSD: distinfo,v 1.2 2005/02/24 12:13:52 agc Exp $
 
-SHA1 (mDNSResponder-62.tar.gz) = 977519f3bf883f8c8271917586242f81efca8145
-RMD160 (mDNSResponder-62.tar.gz) = a9f99daf252507a5f8726cd3ef106367f16e2909
-Size (mDNSResponder-62.tar.gz) = 767255 bytes
+SHA1 (mDNSResponder-98.tar.gz) = 15d7df2271ee6819440a86deba991200c7b079fc
+RMD160 (mDNSResponder-98.tar.gz) = 369f7ab471c982ffddfd9d6d2ad3a5208e1bd365
+Size (mDNSResponder-98.tar.gz) = 1369226 bytes
+SHA1 (patch-aa) = 58bd5fda5e0a599ee35b4ea03fcecbe3e4818dd3
+SHA1 (patch-ab) = b933510b4a2672834f4969121330128fdce08856
---cut---

---patch-aa---
$NetBSD$

--- ../mDNSShared/PlatformCommon.c.orig 2005-01-20 01:19:21.000000000 +0600
+++ ../mDNSShared/PlatformCommon.c
@@ -41,7 +41,10 @@ Move ReadDDNSSettingsFromConfFile() from
 #include <stdio.h>                             // Needed for fopen() etc.
 #include <unistd.h>                            // Needed for close()
 #include <string.h>                            // Needed for strlen() etc.
-#include <sys/errno.h>                 // Needed for errno etc.
+// According to POSIX errno is defined in <errno.h>
+// Same as there's no <sys/errno.h> in POSIX at all.
+//#include <sys/errno.h>               // Needed for errno etc.
+#include <errno.h>                             // Needed for errno etc.
 #include <sys/socket.h>                        // Needed for socket() etc.
 #include <netinet/in.h>                        // Needed for sockaddr_in
---patch-aa---

---patch-ab---
$NetBSD$

--- ../mDNSShared/mDNSResponder.8.orig  2004-06-29 09:41:38.000000000 +0700
+++ ../mDNSShared/mDNSResponder.8
@@ -79,7 +79,7 @@ of its internal state to
 .Pp
 .Dl sudo killall -INFO mDNSResponder
 .Sh FILES
-.Pa /usr/sbin/mDNSResponder \" Pathname
+.Pa @PREFIX@/bin/mDNSResponder \" Pathname
 .\"
 .Sh SEE ALSO
 .Xr mDNS 1
---patch-ab---




Home | Main Index | Thread Index | Old Index