pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/md-whois Fix build problem on NetBSD 4.0. Should ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d01be1eac5d9
branches: trunk
changeset: 399706:d01be1eac5d9
user: taca <taca%pkgsrc.org@localhost>
date: Sat Sep 26 05:48:02 2009 +0000
description:
Fix build problem on NetBSD 4.0. Should be fix PR pkg/41721.
diffstat:
net/md-whois/Makefile | 8 +++++++-
net/md-whois/distinfo | 4 +++-
net/md-whois/patches/patch-aa | 17 +++++++++++++++++
net/md-whois/patches/patch-ab | 18 ++++++++++++++++++
4 files changed, 45 insertions(+), 2 deletions(-)
diffs (77 lines):
diff -r 4727667be61d -r d01be1eac5d9 net/md-whois/Makefile
--- a/net/md-whois/Makefile Sat Sep 26 05:44:39 2009 +0000
+++ b/net/md-whois/Makefile Sat Sep 26 05:48:02 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2008/11/19 14:35:34 taca Exp $
+# $NetBSD: Makefile,v 1.22 2009/09/26 05:48:02 taca Exp $
#
# todo: set location of [md-]whois.conf and fix in man page too
# todo: build and install the po/ files and add to PLIST
@@ -22,6 +22,12 @@
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
PKG_DESTDIR_SUPPORT= user-destdir
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M4.*))
+MAKE_ENV+= NEED_OPTARG=YES
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/whois ${DESTDIR}${PREFIX}/bin/md-whois
${INSTALL_MAN} ${WRKSRC}/whois.1 \
diff -r 4727667be61d -r d01be1eac5d9 net/md-whois/distinfo
--- a/net/md-whois/distinfo Sat Sep 26 05:44:39 2009 +0000
+++ b/net/md-whois/distinfo Sat Sep 26 05:48:02 2009 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.9 2008/11/19 14:35:34 taca Exp $
+$NetBSD: distinfo,v 1.10 2009/09/26 05:48:02 taca Exp $
SHA1 (whois_4.7.28.tar.gz) = 22b29d24e511114be0b5ffded325dedf3d9beaa6
RMD160 (whois_4.7.28.tar.gz) = 988fd7ddd0d5ff5ad5451a1f6fa211c5d075a310
Size (whois_4.7.28.tar.gz) = 68070 bytes
+SHA1 (patch-aa) = 304488d58850ae60a643884d3f0f7c207c3b319f
+SHA1 (patch-ab) = 558dcf05381b637582eb10df6ec27e976773be96
diff -r 4727667be61d -r d01be1eac5d9 net/md-whois/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/md-whois/patches/patch-aa Sat Sep 26 05:48:02 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2009/09/26 05:48:02 taca Exp $
+
+* Fix for NetBSD 4.*.
+
+--- Makefile.orig 2008-05-06 18:41:16.000000000 +0900
++++ Makefile
+@@ -31,6 +31,10 @@ else
+ mkpasswd_LDADD += -lcrypt
+ endif
+
++ifdef NEED_OPTARG
++DEFS += -DNEED_OPTARG
++endif
++
+ all: Makefile.depend whois mkpasswd #pos
+
+ whois_OBJECTS := whois.o utils.o
diff -r 4727667be61d -r d01be1eac5d9 net/md-whois/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/md-whois/patches/patch-ab Sat Sep 26 05:48:02 2009 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 2009/09/26 05:48:02 taca Exp $
+
+* Fix for NetBSD 4.*.
+
+--- mkpasswd.c.orig 2008-07-17 07:43:47.000000000 +0900
++++ mkpasswd.c
+@@ -56,6 +56,11 @@ static const struct option longopts[] =
+ };
+ #endif
+
++#ifdef NEED_OPTARG
++extern char *optarg;
++extern int optind;
++#endif
++
+ static const char valid_salts[] = "abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
+
Home |
Main Index |
Thread Index |
Old Index