From 84edd1a355e326ead6cd5d158ca43d4918b14d7d Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 5 Feb 2007 22:23:06 +0000 Subject: Use FreeBSD compatibility code in interface scanning routing for NetBSD and DragonFlyBSD, too. This makes the mDNS code work on systems with IPv6 (or pflog(4)?) enabled. Bump package revision because of this fix. --- audio/mt-daapd/Makefile | 4 ++-- audio/mt-daapd/distinfo | 3 ++- audio/mt-daapd/patches/patch-ad | 13 +++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 audio/mt-daapd/patches/patch-ad diff --git a/audio/mt-daapd/Makefile b/audio/mt-daapd/Makefile index c75e90aa6d1..884a21e2fea 100644 --- a/audio/mt-daapd/Makefile +++ b/audio/mt-daapd/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2007/02/04 19:57:09 adrianp Exp $ +# $NetBSD: Makefile,v 1.3 2007/02/05 22:23:06 tron Exp $ DISTNAME= mt-daapd-0.2.4 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/} diff --git a/audio/mt-daapd/distinfo b/audio/mt-daapd/distinfo index 04e3fce3ee5..71eec2e8e90 100644 --- a/audio/mt-daapd/distinfo +++ b/audio/mt-daapd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2006/12/06 16:41:26 joerg Exp $ +$NetBSD: distinfo,v 1.3 2007/02/05 22:23:06 tron Exp $ SHA1 (mt-daapd-0.2.4.tar.gz) = b8c242e5fd5d2d97010d5e09b9f02ccf9def13ab RMD160 (mt-daapd-0.2.4.tar.gz) = babb3f98a254aa4a014b5e7adb96276fafc84fac @@ -6,3 +6,4 @@ Size (mt-daapd-0.2.4.tar.gz) = 405168 bytes SHA1 (patch-aa) = e177bb33c19badb1da8638af61a3c3bfddf2a2ad SHA1 (patch-ab) = be78b7f5089d3283e0cb9ee3c64a4a53360899d7 SHA1 (patch-ac) = 820fe55a2cefb7471133ea2e9bc7bb5ddc84cbf0 +SHA1 (patch-ad) = c556f5b3aa69779c30957e3e873563be2cb8ef32 diff --git a/audio/mt-daapd/patches/patch-ad b/audio/mt-daapd/patches/patch-ad new file mode 100644 index 00000000000..b21c03d1020 --- /dev/null +++ b/audio/mt-daapd/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2007/02/05 22:23:06 tron Exp $ + +--- src/mDNSUNP.c.orig 2005-09-11 20:13:48.000000000 +0100 ++++ src/mDNSUNP.c 2007-02-05 22:16:56.000000000 +0000 +@@ -168,7 +168,7 @@ + * have the apple mDNS included, I guess it's a + * small price to pay. + */ +-#ifdef FREEBSD ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) + ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */ + // ptr += sizeof(*ifr); + #else -- cgit v1.2.3