From owner-freebsd-ports Tue Nov 24 02:39:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04457 for freebsd-ports-outgoing; Tue, 24 Nov 1998 02:39:26 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA04435 for ; Tue, 24 Nov 1998 02:39:24 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA05813; Tue, 24 Nov 1998 02:40:02 -0800 (PST) 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 CAA04300 for ; Tue, 24 Nov 1998 02:37:33 -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 0ziFrW-0000vh-00; Tue, 24 Nov 1998 10:38:26 +0000 Received: from dom by voodoo.pandhm.co.uk with local (Exim 1.92 #1) for FreeBSD-gnats-submit@freebsd.org id 0ziFqH-0005YM-00; Tue, 24 Nov 1998 10:37:09 +0000 Message-Id: Date: Tue, 24 Nov 1998 10:37:09 +0000 From: Dom Mitchell Reply-To: dom@phmit.demon.co.uk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/8838: New port of GNU getopt. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8838 >Category: ports >Synopsis: New port of GNU getopt. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 24 02:40:02 PST 1998 >Last-Modified: >Originator: Dominic Mitchell >Organization: Palmer & Harvey McLane Ltd. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD voodoo.pandhm.co.uk 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Nov 16 05:09:28 GMT 1998 root@voodoo.pandhm.co.uk:/usr/src/sys/compile/VOODOO i386 Full src tree installed. >Description: This port pulls GNU getopt out of our src tree and installs it as a library in ${PREFIX}. This is useful for a number of ports which need this, but do not include it with their source. I do not have an authoritative source for "Just the getopt files", so I have pulled them from our src tree. I don't want to pull down the entire glibc tarball just for three files! >How-To-Repeat: The usual. >Fix: Here's the port: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # getopt # getopt/Makefile # getopt/files # getopt/files/Makefile # getopt/pkg # getopt/pkg/DESCR # getopt/pkg/COMMENT # getopt/pkg/PLIST # echo c - getopt mkdir -p getopt > /dev/null 2>&1 echo x - getopt/Makefile sed 's/^X//' >getopt/Makefile << 'END-of-getopt/Makefile' X# New ports collection makefile for: getopt X# Version required: ? X# Date created: 13 Nov 1998 X# Whom: Dom Mitchell X# X# $Id$ X# X X# Assumed version. I've no idea what it really is. Somebody should X# probably grab the latest version from glibc and install it in a standard X# place. XDISTNAME= getopt-1.0 XCATEGORIES= devel XDISTFILES= # none X XMAINTAINER= dom@myrddin.demon.co.uk X XWRKSRC= ${WRKDIR}/${DISTNAME} X X# Sample program in the source tree containing getopt_long. XGETOPTSRC?= /usr/src/contrib/cpio X Xdo-extract: X @if [ ! -d ${GETOPTSRC} ]; then \ X ${ECHO} "You need the getopt source in"; \ X ${ECHO} "${GETOPTSRC}"; \ X ${ECHO} "to build this port."; \ X exit 1; \ X fi X @${RM} -rf ${WRKDIR} X @${MKDIR} ${WRKSRC} X ${CP} ${GETOPTSRC}/getopt* ${WRKSRC} X ${CP} ${FILESDIR}/Makefile ${WRKSRC} X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/libgetopt.a ${PREFIX}/lib X ${INSTALL_DATA} ${WRKSRC}/getopt.h ${PREFIX}/include X X.include END-of-getopt/Makefile echo c - getopt/files mkdir -p getopt/files > /dev/null 2>&1 echo x - getopt/files/Makefile sed 's/^X//' >getopt/files/Makefile << 'END-of-getopt/files/Makefile' X# X# $Id$ X# X XLIB= getopt XSRCS= getopt.c getopt1.c XNOPIC= true XNOPROFILE= true X X.include END-of-getopt/files/Makefile echo c - getopt/pkg mkdir -p getopt/pkg > /dev/null 2>&1 echo x - getopt/pkg/DESCR sed 's/^X//' >getopt/pkg/DESCR << 'END-of-getopt/pkg/DESCR' XThe GNU Getopt library. This is from the GNU C library. It handles Xlong options of the form --option. END-of-getopt/pkg/DESCR echo x - getopt/pkg/COMMENT sed 's/^X//' >getopt/pkg/COMMENT << 'END-of-getopt/pkg/COMMENT' XThe GNU Getopt library. END-of-getopt/pkg/COMMENT echo x - getopt/pkg/PLIST sed 's/^X//' >getopt/pkg/PLIST << 'END-of-getopt/pkg/PLIST' Xinclude/getopt.h Xlib/libgetopt.a END-of-getopt/pkg/PLIST exit >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message