[61531] trunk/dports/net/whois

ryandesign at macports.org ryandesign at macports.org
Sun Dec 13 17:47:56 PST 2009


Revision: 61531
          http://trac.macports.org/changeset/61531
Author:   ryandesign at macports.org
Date:     2009-12-13 17:47:55 -0800 (Sun, 13 Dec 2009)
Log Message:
-----------
whois:

 * allow long options to work (#22881)
 * indicate that bugs should be reported to MacPorts

Modified Paths:
--------------
    trunk/dports/net/whois/Portfile

Added Paths:
-----------
    trunk/dports/net/whois/files/patch-bugreport.diff
    trunk/dports/net/whois/files/patch-getopt.diff

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2009-12-14 01:38:58 UTC (rev 61530)
+++ trunk/dports/net/whois/Portfile	2009-12-14 01:47:55 UTC (rev 61531)
@@ -12,6 +12,7 @@
 
 name                    whois
 version                 4.7.37
+revision                1
 categories              net
 maintainers             ryandesign
 homepage                http://www.linux.it/~md/software/
@@ -39,10 +40,15 @@
 depends_lib \
     port:gettext
 
+# Bugs should be reported to MacPorts, not upstream.
+patchfiles-append       patch-bugreport.diff
+
 platform darwin {
     # -lcrypt cannot be used (and is unnecessary) on Mac OS X
     patchfiles-append \
         patch-lcrypt.diff
+    # Allow long options to work.
+    patchfiles-append   patch-getopt.diff
 }
 
 configure.cmd           make

Added: trunk/dports/net/whois/files/patch-bugreport.diff
===================================================================
--- trunk/dports/net/whois/files/patch-bugreport.diff	                        (rev 0)
+++ trunk/dports/net/whois/files/patch-bugreport.diff	2009-12-14 01:47:55 UTC (rev 61531)
@@ -0,0 +1,22 @@
+--- mkpasswd.c.orig	2009-08-09 19:16:39.000000000 -0500
++++ mkpasswd.c	2009-12-13 19:41:07.000000000 -0600
+@@ -430,7 +430,7 @@
+ "If no SALT is specified, a random one is generated.\n"
+ "If TYPE is 'help', available methods are printed.\n"
+ "\n"
+-"Report bugs to %s.\n"), "<md+whois at linux.it>");
++"Report bugs to %s.\n"), "<http://trac.macports.org/newticket>");
+ }
+ 
+ void display_version(void)
+--- whois.c.orig	2009-12-06 18:27:03.000000000 -0600
++++ whois.c	2009-12-13 19:31:07.000000000 -0600
+@@ -118,7 +118,7 @@
+ 	    break;
+ 	case 1:
+ 	    fprintf(stderr, _("Version %s.\n\nReport bugs to %s.\n"),
+-		    VERSION, "<md+whois at linux.it>");
++		    VERSION, "<http://trac.macports.org/newticket>");
+ 	    exit(0);
+ 	default:
+ 	    usage();

Added: trunk/dports/net/whois/files/patch-getopt.diff
===================================================================
--- trunk/dports/net/whois/files/patch-getopt.diff	                        (rev 0)
+++ trunk/dports/net/whois/files/patch-getopt.diff	2009-12-14 01:47:55 UTC (rev 61531)
@@ -0,0 +1,10 @@
+--- config.h.orig	2009-12-07 03:22:45.000000000 +0100
++++ config.h	2009-12-14 02:08:14.000000000 +0100
+@@ -38,6 +38,7 @@
+ 
+ #if defined __APPLE__ && defined __MACH__
+ # define HAVE_GETADDRINFO
++# define HAVE_GETOPT_LONG
+ #endif
+ 
+ #if defined __GLIBC__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091213/1dd66837/attachment.html>


More information about the macports-changes mailing list