pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/inn Apply IPv6 patch only if we really want IPv6 ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dbec3753e742
branches:  trunk
changeset: 475691:dbec3753e742
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun May 23 14:40:00 2004 +0000

description:
Apply IPv6 patch only if we really want IPv6 support because the patch
breaks the build on some IPv4 only platforms (e.g. IRIX). This fixes
PR pkg/25671 by Georg Schwarz.

diffstat:

 news/inn/Makefile |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r e84d12c68999 -r dbec3753e742 news/inn/Makefile
--- a/news/inn/Makefile Sun May 23 14:25:54 2004 +0000
+++ b/news/inn/Makefile Sun May 23 14:40:00 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2004/05/22 18:58:29 jschauma Exp $
+# $NetBSD: Makefile,v 1.56 2004/05/23 14:40:00 tron Exp $
 
 DISTNAME=              inn-${INN_VERSION}
 PKGREVISION=           1
@@ -7,10 +7,6 @@
                        ftp://ftp.sunet.se/pub/news/nntp/inn/ \
                        ftp://ftp.fu-berlin.de/unix/news/inn/
 
-PATCH_SITES=           ftp://ftp.north.ad.jp/pub/IPv6/INN/
-PATCHFILES=            inn-${INN_VERSION}-v6-20030327.diff.gz
-PATCH_DIST_STRIP=      -p1
-
 MAINTAINER=            tron%NetBSD.org@localhost
 HOMEPAGE=              http://www.isc.org/inn.html
 COMMENT=               The public release of InterNet News (INN)
@@ -74,10 +70,17 @@
 .include "../../mk/bsd.prefs.mk"
 
 # IPv6 support
+#
+# The IPv6 patch is somewhat broken unfortunately. It uses APIs which often
+# are not available under operating systems without IPv4 support. We therefore
+# apply it only if we really want IPv6 support.
+
 .if defined(USE_INET6) && ${USE_INET6} == YES
+PATCH_SITES=           ftp://ftp.north.ad.jp/pub/IPv6/INN/
+PATCHFILES=            inn-${INN_VERSION}-v6-20030327.diff.gz
+PATCH_DIST_STRIP=      -p1
+
 CONFIGURE_ARGS+=       --enable-ipv6
-.else
-CONFIGURE_ARGS+=       --disable-ipv6
 .endif
 
 .if ${OPSYS} == "SunOS"



Home | Main Index | Thread Index | Old Index