Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 16:57:56 +0000
From:      Dom Mitchell <dom@phmit.demon.co.uk>
To:        Bill Fumerola <billf@chc-chimes.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: GNU getopt 
Message-ID:  <E0zddaf-00004d-00@voodoo.pandhm.co.uk>
In-Reply-To: Bill Fumerola's message of "Wed, 11 Nov 1998 09:41:56 EST" <Pine.HPP.3.96.981111093940.29395C-100000@hp9000.chc-chimes.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 November 1998, Bill Fumerola proclaimed:
> On Wed, 11 Nov 1998, Dom Mitchell wrote:
> > Is there a standard way to include GNU getopt with a port?  I'm trying
> > to port npadmin <URL:http://www.penguincomputing.com/prtools/npadmin.html>,
> > but it needs getopt_long.  The easiest way I can think of is to snarf a
> > copy from (say) /usr/src/contrib/cpio, but that's certainly not
> > guaranteed to work...
> 
> I have long agonized over this. The easiest way to do it would be just to
> put getopt.h in the ports files directory, but I've seen
> inconsistencies<sp!> with the Linux getopt_long(which from the word
> penguin above, I'm assuming it wants) and the FreeBSD getopt* stuff.

What, stuff getopt.c and getopt.h in the files directory, and then patch
them into place?  Fair enough...  I'll try that and see how it goes.
The cpio ones seem like a good choice as I can't be bothered to download
the entire glibc just for two files...

What a pain, it seemed like such a useful little tool to start with.  I
shall mail the author and ask him to include those files with the
distribution, because I'm sure that FreeBSD isn't the only Unix which
has problems with getopt_long.
-- 
Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator
"Xerox studies suggest that most people print out electronic mail
 that is longer than half a page; paper use rises by 40 percent in
 offices that introduce E-mail." -- CCM

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0zddaf-00004d-00>