From owner-freebsd-ports Wed Nov 11 08:58:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07244 for freebsd-ports-outgoing; Wed, 11 Nov 1998 08:58:31 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from phmit.demon.co.uk (phmit.demon.co.uk [194.222.15.209]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA07236 for ; Wed, 11 Nov 1998 08:58:22 -0800 (PST) (envelope-from dom@phmit.demon.co.uk) Received: from voodoo.pandhm.co.uk [10.100.35.12] by phmit.demon.co.uk with esmtp (Exim 1.82 #1) id 0zddbB-000394-00; Wed, 11 Nov 1998 16:58:29 +0000 Received: from dom by voodoo.pandhm.co.uk with local (Exim 1.92 #1) id 0zddaf-00004d-00; Wed, 11 Nov 1998 16:57:57 +0000 To: Bill Fumerola cc: ports@FreeBSD.ORG Subject: Re: GNU getopt X-Mailer: nmh v0.26 X-Colour: Green Organization: Palmer & Harvey McLane In-reply-to: Bill Fumerola's message of "Wed, 11 Nov 1998 09:41:56 EST" Date: Wed, 11 Nov 1998 16:57:56 +0000 From: Dom Mitchell Message-Id: Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 , > > 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 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